#aarti-paypal-issue

1 messages ยท Page 1 of 1 (latest)

shut swallowBOT
marble tulip
valid pagoda
#

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

marble tulip
#

Can you share the code you're working with?

valid pagoda
#

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,
},
},
};

marble tulip
#

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

valid pagoda
#

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

marble tulip
#

Can you link the docs you are referring to?

winter acorn
#

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

#

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

valid pagoda
#

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

winter acorn
#

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

valid pagoda
#

which account then? do you just take the email on the customer and check for the account?

winter acorn
#

And that they should reach out to PayPal about their account

valid pagoda
#

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

winter acorn
#

Ah hold on

#

This might be that your account has been flagged

valid pagoda
#

which account? our company Paypal account ?

winter acorn
#

I think so. Hold on, let me confirm -- moving a little too fast right now.

valid pagoda
#

ok yeah, seems like no paypal payment has gone through since 22Aug

shut swallowBOT
winter acorn
#

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

valid pagoda
#

wow ok, but why has it been blocked? and why havent we recieved any communication regarding this?

winter acorn
#

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

valid pagoda
#

yes please that error is so misleading

#

and thanks

winter acorn
#

๐Ÿ‘