Skip to content

Missing payment_method_options[paypal][risk_correlation_id] for On-Session PayPal Payments #358

@gddotorg

Description

@gddotorg

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

  1. Enable PayPal for recurring payments in Stripe Dasboard
  2. Craft Commerce: Try to buy a product with a one time payment (on-session). User is logged in and added PayPal as Payment Method.
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions