#devangbhuva97
1 messages · Page 1 of 1 (latest)
Hi there!
Pasting your other messages below:
I want to enable other payment methods/types in Payment Element
So that's why I'm passing collection method as send invoice. Without that - it's working but not showing additional payment methods which enabled in invoice settings
Perfect
I'm creating subscription with given details & first invoice is draft for 1 hour. S
Are you sure about this? The first invoice should be finalized immediately.
Oh actually your subscription has a free trial?
If the first invoice of a subscription is for a zero amount (for example because of a trial), there's no PaymentIntent on the invoice. Instead check subscription.pending_setup_intent.client_secret and use confirmSetup() on the frontend to confirm the SetupIntent.
Yes.. I'm sure - sub_1M7dCHAjORjIkyJ0d2a9iCpE can you check this subscription which I created now
invoice is in draft mode
Oh yes, if you are using collection_method: "send_invoice" then it's expected.
You can learn more about this here: https://stripe.com/docs/api/subscriptions/create#create_subscription-collection_method
So how can I show additional payment methods with that?
What is your end goal exactly? Do you want users to enter their payment method in the Payment Element and then be charger automatically, or do you want to send them invoice every month that they need to pay?
users to enter their payment method in the Payment Element and then be charger automatically
Then you should use collection_method: "charge_automatically"
& also we want to show additional payment methods to customer apart from card
You can define the payment method you want here: https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_settings-payment_method_types
Google Pay & Apple Pay are automatically included in the Payment Element if you accept card payment method.
But they will be only displayed if you use the correct browser, have a card in your wallet, and are on a httpS url.
but as per document, I don't pass anything in payment method types, then it will take from invoice settings
correct
Ok..
How can add test card in Google Pay from India?
Can you please give some document to test Google Pay & Apple Pay
Unfortunately Google/Apple Pay are not available for merchants in India: https://support.stripe.com/questions/supported-payment-methods-currencies-and-businesses-for-stripe-accounts-in-india
Actually our application will be used in US
Great! So you can see the requirements here: https://stripe.com/docs/stripe-js/elements/payment-request-button?client=html#html-js-prerequisites
If I will use Payment Element, still we have to do these all config for Apple Pay?
Yes. Note that the recommended option to create subscription with with Checkout Session, which is simpler and automatically works with Google and Apple Pay.
You can learn more about this here: https://stripe.com/docs/billing/subscriptions/build-subscriptions