#bohdan_terminal-generated-card-subscriptions
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1364994310071779409
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
You cannot create a Subscription that uses the Payment Method Type card_present so, in this case, you need to save the payment method with the Terminal first and then use the generated_card as the saved payment method for the Subscription
The problem you have with the payment method in this request is that it's a card_present type
You need to access the payment_method_details.card_present.generated_card property to get the ID for the card type payment method you CAN use for Subscriptions
pm_1RHPnqC1LluJiuYaeaVJl4ew in this case
Thank you!! I'll try this! Will this object be returned by this method? https://docs.stripe.com/terminal/references/api/js-sdk#confirm-setup-intent
Yes. The object we see in the request I shared is the Setup Intent object. When you call confirmSetupIntent the Promise returned will either resolve into a Setup Intent or an Error. If it does resolve into a Setup Intent, you can access the latest_attempt.payment_method_details.card_present.generated_card property
Please note this is an Expandable property so you may need to send the Setup Intent ID to your server and then make a Retrieve API call and pass latest_attempt.payment_method_details.card_present in the expand parameter
Got it! Thank you very much!
Sure thing! Happy to shed what ๐ก I can ๐