Issue with Payment Plans Add On
-
Hello again,
I’m using the Payment Plans Add-On plugin with Stripe and encountering an issue with the PaymentRequestButton.
While the manual payment option works perfectly on Stripe, the PaymentRequestButton does not update the payment amount correctly when using Apple Pay or Google Pay. It only captures the base level amount, not the selected plan amount.
For example, if the base level is set at $20, but the user selects an option for $30 or $50, the PaymentRequestButton still captures the initial $20 instead of updating to the chosen amount, like $30.
This issue only occurs with the PaymentRequestButton, as Stripe itself functions correctly.
paid-memberships-pro/js/pmpro-stripe.js
PaymentRequestButton:
paymentRequest = stripe.paymentRequest({
country: pmproStripe.accountCountry,
currency: pmproStripe.currency,
total: {
label: pmproStripe.siteName,
amount: Math.round( data.initial_payment * 100 ),
},
requestPayerName: true,
requestPayerEmail: true,
});In initial_payment, the logic is capturing the level initial_payment, not the plan initial_payment
Stripe Manual payment works fine.
PayPal express works fine.
The only issue is on PaymentRequestButton
- You must be logged in to reply to this topic.