#aarti-paypal-issue
1 messages ยท Page 1 of 1 (latest)
Hello ๐
If you look at the confirmation request on the PaymentIntent involved
https://dashboard.stripe.com/logs/req_ntZKxLhw54YZMa
You can see why it was declined
this call is made on the FE https://api.stripe.com/v1/paypal/configuration/pi_3NkSP5Fa6nOwNUem0sUdwLvY?key=<key>
Is this call being made by your code?
no from the stripe js lib we have integrated
but the failure happens before the paypal screen is even loaded, so there's no input from the user with their email even. how does stripe know this paypal account is blocked?
I think its not the right error
Can you share the code you're working with?
sure, so we create a subscription at the BE which returns the client secret
and then the FE calls
stripe.confirmPayPalPayment(
mhSubscriptionResponse.clientSecret,
{
return_url: paypalReturnUrl,
payment_method: paymentMethod,
}
);
const paymentMethod = {
billing_details: {
name: formData.accountHolderName,
address: {
line1: formData.addressLine1,
line2: formData.addressLine2,
postal_code: formData.postcode,
city: formData.city,
country: formData.country,
},
},
};
this shows the POST subs call we do from the BE
https://dashboard.stripe.com/logs/req_6WfzOgNaG6dOom
Are you following any guides for this? I don't really understand how you're passing payment_method with confirmPayPalPayment call
According to the reference
https://stripe.com/docs/js/payment_intents/confirm_paypal_payment
It is supposed to be the id of an existing payment method and you're passing an object with billing_details
the doc says In addition to confirming the PaymentIntent, this method can automatically create and attach a new PaymentMethod for you.
we rely on not passing the ID so it creates one for us
and the weird thing is : it works for some customers, but for some it doesnt
Can you link the docs you are referring to?
Hey there
I'm taking a look
Give me a moment
Do you have an example of a successful Paypal set up in this manner?
Ah okay
So the error you actually want to be looking at is https://dashboard.stripe.com/logs/req_ntZKxLhw54YZMa
Looks like you are catching our internal error right now. Were you looking at your network requests for req_CDUFS3zKXQ3Wc6?
You should have seen this error about the customer's PayPal account being locked returned from your confirmPayPalPayment promise
yes but that says the customer account is blocked whereas I did not even get a chance to put the paypal address, it fails even before the popup to start paypal flow comes up
yes but that says the customer account is blocked whereas I did not even get a chance to put the paypal address, it fails even before the popup to start paypal flow comes up
Right that is expected as far as I know.
The flow would not start if the account is blocked
You would return an error to your customer indicating they can't use PayPal here
which account then? do you just take the email on the customer and check for the account?
And that they should reach out to PayPal about their account
User wants to use a different email for paypal than what is on the customer email
I think my first basic Q is: Which account is Stripe using to verify if Paypal can be used
which account? our company Paypal account ?
I think so. Hold on, let me confirm -- moving a little too fast right now.
ok yeah, seems like no paypal payment has gone through since 22Aug
Yeah that is extremely confusing as the error message seems to indicate it is your customer's Paypal account but I'm pretty sure it is your business account
So I'll need to file feedback on that so we improve that error message
wow ok, but why has it been blocked? and why havent we recieved any communication regarding this?
We are just an intermediary here so we really don't have any more information.
You are going to have to reach out to Paypal about this.
Let me know if I can help any further but your best next step is to reach out to Paypal and provide them the Debug ID referenced in the error message
I'll file feedback about the error message from our end
๐