-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
Description
I have a web shop that accepts both recurring and one-time payments. One for subscriptions and one for one-time purchases. Now I wanted to activate PayPal for recurring payments. This works fine. However, I get the following error message for one-time purchases if I try to pay:
You must specify
payment_method_options[paypal][risk_correlation_id]for on-session PayPal payments. Read our integration guide for more details at https://stripe.com/docs/payments/paypal/set-up-future-payments .
This only affects logged-in users. Guest users, on the other hand, can complete one-time purchases with PayPal. Is there a way to add risk_correlation_id for logged-in users? Is this supported by your plugin?
Steps to reproduce
- Enable PayPal for recurring payments in Stripe Dasboard
- Craft Commerce: Try to buy a product with a one time payment (on-session). User is logged in and added PayPal as Payment Method.
- Getting an 400 error with cart response. Message: You must specify
payment_method_options[paypal][risk_correlation_id]for on-session PayPal payments. Read our integration guide for more details at https://stripe.com/docs/payments/paypal/set-up-future-payments .
Additional info
- Craft CMS version: 5.7.11
- Stripe for Craft Commerce version: 5.0.7
- PHP version: 8.2.19
- Database driver & version: MySQL 8.0.41
- Plugins & versions:
Craft Commerce: 5.3.13
CKEditor: 4.8.0
Formie: 3.0.28
Imager X: 5.1.3