Errors when attempting a non-renewing membership payment
Since updating to the most recent Stripe and Civi versions, users are unable to submit a one-time membership payment through a membership contribution page. Recurring payments are successful.
When submitting the payment with "Please renew my membership automatically.", there is a js error: "Unknown error." The console shows "Failed to load resource: the server responded with a status of 402 ()" for this request: POST https://mysite.org/civicrm/stripe/confirm-payment
Enabled debugging and in the browser I see the following:
2021-02-04T21:33:17.578Z civicrmStripe: error: Unknown error
2021-02-04T21:33:17.580Z civicrmStripe: Firing Event: crmBillingFormNotValid
I am also seeing this in the CiviCRM logs; this was mentioned in #240 (closed) as a non-issue, but also supposedly as being resolved so not sure if it is relevant:
Stripe Notice: Undefined property of Stripe\StripeObject instance: plan
(Stripe 6.5.6, CiviCRM 5.33.2, Drupal 7)