Followed all instructions in the Stripe for Commerce plugin docs. When submitting a payment locally and in staging environment, I get the "Payment Method Id cannot be blank" error.
Yii Debug Tool > requests > parameters:
'action' => 'commerce/payments/pay'
'redirect' => '7de704ae79dafea4539dba5fae42b0e2476e8ac95101f5df1d07d1bc70b1e811https://test-site.ddev.site:8443/shop/checkout/order-confirmation?number=5c7b900b16fca5edc20afb301d064f43&success=true'
'cancelUrl' => 'e4c7231e9b5a0ceb5d41dd6452205412126499871d0881d527ca8e064eaf12ddhttps://test-site.ddev.site:8443/shop/checkout/payment'
'gatewayId' => '2'
'orderEmail' => '[email protected]'
'CRAFT_CSRF_TOKEN' => '••••••••••••••••'
'accept-terms' => 'on'
'firstName' => 'FIRSTNAME'
'lastName' => 'LASTNAME'
'paymentMethodId' => 'pm_1LQYCMBrPbSFOQ6o99VI3vYp'
Yii Debug Tool > requests > session:
xxxxxx__flash: 'error' => 1
error: 'Invalid payment or order. Please review.'
Can't figure out where it fails. The payment method id seems to be there, but somehow fails to get through.
Craft CMS Pro 4.2.0.1 Craft Commerce PRO 4.1.0 Stripe for Craft Commerce 3.0.1