#venkateshjsoft
1 messages · Page 1 of 1 (latest)
parameter_missing - payment_method_options[paypal][risk_correlation_id]
req_bXvsNw52iexv6G
Hello! Let me take a look...
The error is accurate. We recommend using Stripe.js to handle on-session PayPal payments with a saved PayPal Payment Method. If you're not going to do that you need to handle the risk_correlation_id yourself per the instrucitons linked to from the error. Specifically this section: https://stripe.com/docs/payments/paypal/set-up-future-payments?platform=web#pass-risk-id-manually
im not using on-session payments
for paypal
I want to use offsession payments for all my payments types
is it some configuration I have to change?
The request you provided is for an on-session payment. If this is supposed to be an off-session payment you need to set off_session to true: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-off_session
this is renewal payment
when I created payment for the same user first time I set offsession to true
req_HXQjiC1efYi1Xb
this is the first request
You need to set off_session to true for every off-session payment. It's not a sticky parameter.
Also, you did not set off_session to true in req_HXQjiC1efYi1Xb. Have a look at the request in your Dashboard: https://dashboard.stripe.com/test/logs/req_HXQjiC1efYi1Xb
I think you're confusing the paramater off_session, which has a value of true or false, with the parameter setup_future_usage, which has one possible value of off_session.
yes your correct
when I create payment for the first time I was setting the value setup_future_usage = off session
for the renewal payments im not setting off_session = true
but it was working fine for ideal payment without setting this flag
is there any issue if i set this flag true always for all payemnts types during renewal payment
You should set off_session to true anytime you create a Payment Intent for an off-session payment, where the customer is not present.
okay got it clear
but why the same was working fine for ideal payment when I didnt set off_Session
Different methods of payment have different requirements for on- and off- session payments. iDEAL doesn't have the same requirements as PayPal, so you didn't hit an error.
okay, so if I set off_session to true for ideal no issues right
or I should set this flag based on each payment type
?
You should set it based on the presence or absence of the customer in your payment flow.
Okay, so for that first one you don't set off_session to true. For the renewals you do set off_session to true.