#devAgam
1 messages · Page 1 of 1 (latest)
Yes, generally speaking, but with the caveat that you need to adhere to guidance for the individual wallets
Could you please link me to appropriate docs, im having a hard time finding those
Apple's docs about this are a bit hard to find
one moment
Yea i found that doc on stripe but it doesn't seem to point to what to do programmatically unlike the card element guide
not even sure what is an Apple Pay token
I've implemented the recurring payments on the card element not sure how much of that code can be copied over for buttons
I mean details like this: https://developer.apple.com/app-store/review/guidelines/#subscriptions
https://developer.apple.com/design/human-interface-guidelines/technologies/apple-pay/subscriptions-and-donations
They seem to have reorganized their docs so I'm not sure if/where the various recurring payment models are listed
Righttt
for now could you point me to docs that are specific to google pay
since im in India i will only be able to test with that
and usually google docs are a lot more forgiving compared to Appl
Currently Google Pay and Apple Pay are not supported for customers in India: https://support.stripe.com/questions/supported-payment-methods-currencies-and-businesses-for-stripe-accounts-in-india
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Well that is rather unexpected
well could you still point me to the docs i'll just have someone in the states test it for me
since the application is set to be used in the US
I'm not aware of any specific docs for google pay recurring payments
well any doc that has the details of the functions and api which need be used for creating a sub on the wallets
cause i cannot find any one which specifies what functions to call
In general the way this works is using the payment method you get back from the PRB and either attaching it to a customer or confirming a setup intent instead of a payment intent if you have no up-front payment (and using setup future usage if you do have a payment up front)
PRB ?
Payment Request Button
ah
So whereas we create a customer, a subscriptions and then collect payment info in Card Element
we have to create a payment method and pass it to the PRB ?
wait no
No the payment request button produces the payment method
righttt
If you are creating the subscription following our doc, you should be able to use the payment method you get to confirm the first invoice payment intent
yea im able to get the payment intent for the card element
im just not sure where to pass it here
for cards its confirmCardPayment(clientSecret)
not sure how it translates for button elements
its still a card 🙂
google pay / apple pay payment methods are just representations of the underlying card
right
The doc here shows the confirm snippet using the PRB-produced PM
ahhhhh
paymentRequest.on('paymentmethod', async (ev) => {
// Confirm the PaymentIntent without handling potential next actions (yet).
const {paymentIntent, error: confirmError} = await stripe.confirmCardPayment(
clientSecret,
{payment_method: ev.paymentMethod.id},
{handleActions: false}
);
...
NP!