Fix switching between payment processors for anonymous sessions
This fixes the following issues:
- Switching payment processors in anonymous sessions (user does not have permission for api3 call).
- Switching payment processors on drupal webform (when there are multiple Stripe processors).
- Switching payment processors on backend forms (when there are multiple Stripe processors).
- We now specify the API version when configuring Stripe on the client-side.
- We now set the language for Stripe at the Stripe.js level instead of the card element level.
Original issue !100 (closed) found by @capo
Merge request reports
Activity
changed milestone to %6.4
added bug label
@capo Please can you test and review this?
mentioned in merge request !100 (closed)
added 1 commit
- ec8d845d - Add a minimum API version so we don't have problems every time Stripe release a new API version
@mattwire Works fine to me in the same scenario where I was using the other fix.
added 1 commit
- 11645789 - Use new compatAddVars function to add Stripe vars to billing-block so multiple...
mentioned in issue #172 (closed)
@mfb Yes this went into 6.4
I can't see it either right now - we fixed it but then did a lot more refactoring so it may no longer be visible? Are you having problems with something @mfb?
@mfb What issues are you seeing? There are lot's of other reasons things could happen - also have you tried 6.4.1 branch + mjwshared 0.8 as we fixed another load of stuff on the javascript side.
I'm on 6.4.1-beta3 and 0.8-beta2
Still seeing a "You do not have permission to access this page" alert when switching to Stripe.
And the "review your contribution" button doesn't work when switching to PayPal due to javascript error:
Uncaught (in promise) IntegrationError: We could not retrieve data from the specified Element. Please make sure the Element you are attempting to use is still mounted. at new t (https://js.stripe.com/v3:1:10981) at ho (https://js.stripe.com/v3:1:53641) at e._handleMessage (https://js.stripe.com/v3:1:60058) at e._handleMessage (https://js.stripe.com/v3:1:27393) at https://js.stripe.com/v3:1:58660
Edited by mfb@mfb which version of paypal are you using? Also please test again with 6.4.1-beta4 (I fixed some issues with form submission).
I'm using Stripe 6.4.1-beta4 and PayPal Website Payments Standard.
Looks like the alert when switching back to Stripe has been fixed now.
When checking out via PayPal, I'm still getting
Uncaught (in promise) IntegrationError: We could not retrieve data from the specified Element. Please make sure the Element you are attempting to use is still mounted. at new t (https://js.stripe.com/v3:1:10981) at _o (https://js.stripe.com/v3:1:53784) at e._handleMessage (https://js.stripe.com/v3:1:60201) at e._handleMessage (https://js.stripe.com/v3:1:27512) at https://js.stripe.com/v3:1:58803
and the "Review your contribution" button no longer works.