#Suren
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
Thanks!
You need to collect the Payment Method in a way that allows off-session payments.
You can follow this guide to get the idea: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
By default, off-session is enabled right?
I am seeing subscriptions being created but payment is incomplete and payment intemnt is off_session
the problem is paymentElement.mount('#payment-element'); is not working. There is no payment element mounted
also, I collect all payment details before creating the subscription. will this mount the form to ask card information again?
"is enabled" you mean where?
This sounds like 2 different issues.
Have you gone through this guide?
Payment is tried when subscription is created. I am getting a incomplete payment with payment intent off_session
yes but no success
is there a test client secret to try out the form being displayed
I am using this 'pi_3NVbGQI9xjTc4WYW0gl3oBCd_secret_j5mOGbkkEcQDbDNhysJhCOjMu' which is a client secret of a cancelled payment
Is this a reason for payment element not being mounted?
Do you see any errors in the console?
yes I saw a small JS error. I fixed it and now it displays the card information form
We have to give details of the card again and it will take to the OTP page automatically?
Yes, can you please try in Test mode?