#devangbhuva97
1 messages ยท Page 1 of 1 (latest)
sub_1M7xi2AjORjIkyJ0bhZlc6R4
Hello! Indeed, the subscription should returning a pending_setup_intent if no immediate payment is due (as in the case of a trial): https://stripe.com/docs/api/subscriptions/object#subscription_object-pending_setup_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Looks like you're passing the seti_xxx ID when initiating the Payment Element, not the seti_xxx_secret_yyy
You will need to expand the pending_setup_intent field when creating the subscription to get the full object, and not just the ID
Oh.. got it
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
be something like:
stripe.subscriptions.create({
...params,
expand: ['pending_setup_intent']
})
Yupp.. thanks
have another question
If I click on Apple Pay, what will be next action?
Not able to see any popup in browser
You select the Apple Pay tab, and click your pay button that calls confirmPayment and the Apple Pay dialog appears!
Let me know if that's not working โ should do though if you can see the Apple Pay tab (that means your session/payment supports Apple Pay)
Ohh.. need to click here?
No, you'd click your 'pay' button in your UI (that you need to add) that calls the confirmPayment function
(or confirmSetup)
Ok.. got it
That function then triggers the Apple Pay dialog, and you submit payment from your Apple wallet
๐
Another doubt in US Bank Account payment method
How can I do micro deposits verification in same payment flow (using Payment Element)?
or i won't possible?
When I click on Pay Now... next status will be require_action to verify deposite
There'll be a hosted_verification_url in the next_action hash where you'd send users to to verify the deposits: https://stripe.com/docs/payments/ach-debit/set-up-payment?platform=web#web-verify-with-microdeposits
Hey @desert gulch
Another issue with Google Pay
what's the issue?
https://invoice.stripe.com/i/acct_1JMYI1AjORjIkyJ0/test_YWNjdF8xSk1ZSTFBak9SaklreUowLF9NcmlYcm13b0RzQVNwRDI2bWtkak45U1l1M1hFWk8xLDU5OTEyNzk30200AL9ZWel7?s=db
I'm not able to see Google Pay option for this invoice hosted page
But on same browser I can see Google Pay option for this - https://stripe.com/docs/payments/payment-element
It means Google Pay is activated in that browser
So what's issue with stripe hosted page & stripe payment element?
Can you help me to identify?
works for me at least
Any config missing?
I don't think there's any config or things for you to change, seems to work fine. Likely it's something about your Google account or Chrome profile. Bear in mind Google has a local Indian version of Google Pay that's different from the rest of the world, and we don't support that one, if that's where you are.
No I'm testing with one developer who is in Canada
Can I send you my private url where I built POC?
not sure what you mean or what link I need other than the one you shared above
that one is stripe hosted invoice
I built one demo application... actually where I'm trying to see
So for that first i'm checking in stripe hosted invoice, if their I can see those options, then I'll check in my application
Demo application built using Stripe Payment Element
https://0951-103-238-107-175.ngrok.io/
Click on Onetime (Invoice)
will you able to see Google Pay option?
works for me
thanks @honest egret for confirming
do you know any reason why it's not working for our canadian developer
because for him - https://stripe.com/docs/payments/payment-element, he can see google pay option in this doc but not in other 2 links?
there's tons of reasons but ultimately it doesn't matter since it's not like you can do anything or change code , it works for customers who have a working set up
common reasons are being in India; being 'rate-limited' by Chrome if you check a lot of sites with Google Pay in a short period of time; only having non Visa/Mastercard cards in your wallet; the page not being hosted on HTTPS; having the settings on chrome://settings/autofill to let sites see saved payment methods turned off
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!