Skip to content

Fix switching between payment processors for anonymous sessions

capo requested to merge capo/stripe:fix_multiple_processors_switch into master

Hi @mattwire,

I've found that calling the PaymentProcessor API from JavaScript was only working for opened sessions with enough credentials. So changing multiple processors was generating issues.

I've seen the issue today in a site updated to 6.3.2.

With this patch I try to remove the Ajax call by defining a new variable CRM.vars.stripe_keys that contains ids of payment processors as keys and their corresponding public keys as values.

Can you take a look at it and let me know if you'd prefer a different approach?

Thanks!

Merge request reports

Loading