#mahraamir

1 messages · Page 1 of 1 (latest)

white crownBOT
solemn rapids
solemn rapids
#

It seems that the no PaymentMethod was sent when confirming the PaymentIntent.

ruby marsh
#

stripe.confirmCashappPayment(
client_secret,
{
payment_method: {
type: 'cashapp',
},
return_url: url
},

#

sending like this

solemn rapids
#

You should be following the guide I'm sharing above

#

const {error} = await stripe.confirmPayment({
//Elements instance that was used to create the Payment Element
elements,
confirmParams: {
return_url: 'https://example.com/order/123/complete',
},
});

ruby marsh
#

is this not correct way, I am follwing this, it is also in same link

solemn rapids
#

That's for using the Direct API, you must have collected the CashApp Payment Method before

#

In that part you are just confirming the PaymentIntent and not collecting the PaymentMethod

#

first you need to use Element or Checkout in order to collect the PaymentMethod

ruby marsh
#

ok let me try that flow and let you know

ruby marsh
#

i wonder, in this flow there is no word 'cashpay' how the flows know we are doing cashpay here?

solemn rapids
#

Because you are seeing the automatic payment methods option

#

Choose the manual payment methods listing option

#

if you want just to have cashpay

ruby marsh
#

can I use it without using payment element thing and go with my owner button and calls required functions?

#

own*

solemn rapids
#

No.

#

In order to collect the PaymentMethod you need to use Stripe Element or Checkout