#ji._.nx

1 messages · Page 1 of 1 (latest)

real kindleBOT
snow herald
#

Sure, wallets work for recurring payments

minor iron
#

I tried to find a way to do this but couldn't find any resources! Any code help or resources that can help me here?

snow herald
#

Which payment UIs/surfaces are you using?

minor iron
#

React with node.

snow herald
#

Checkout? Payment Element?

minor iron
#

Payment Elements

snow herald
#

Otherwise Google Pay should just work

minor iron
#

When creating the payment intent on the server or payment request on the client, how will I add the plan_id and the customer id with the payment?

snow herald
#

I thought you were doing recurring payments?

minor iron
#

Yes, I want to do it but the only stripe doc I found was about single payments.

#

I am doing recurring payments but they currently use subscription API on nodejs and saved payment methods.

snow herald
#

Sorry, I thought you were using the Payment Element?

minor iron
#

I think this page that you mentioned in using the payment elements. Isn't it?

This is my code.

#

I am using stripe elements here to create the payment request button.
For the payment request button, it's creating a payment request with an amount of 3999.
Then mounting the button on the DOM.

snow herald
#

That's not the Payment Element. That's the Payment Request Button

#

What's the exact issue?

minor iron
#

Issue is:
I want to subscribe a user to a subscription plan (Stripe Product) and the user wants to pay by google/apple pay.

#

But I couldn't figure out a way, how to do it!

snow herald
#

Ok, take Apple Pay out of the equation. How are they paying currently?

minor iron
#

They are paying currently using Visa/Master cards.
What we do currently is create the payment methods (cards), attach the payment methods to the customer and then subscribe the user to a subscription using the default payment method.

snow herald
#

Yes, but I mean which UIs are you using

#

Card Element? Payment Element?

minor iron
#

Card element to add the payment method

#

And then subscribe using

#

Payment method creation

snow herald
#

You shouldn't really be using createPaymentMethod either

minor iron
#

Oh

snow herald
minor iron
#

I think so. Thanks.
I'll check this out and get back to you if I have any questions.

Thanks for your time and the help!!!

snow herald
#

np!