#bohdan_terminal-generated-card-subscriptions

1 messages ยท Page 1 of 1 (latest)

bitter aspenBOT
#

๐Ÿ‘‹ 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.

tender prawn
#

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

torn holly
tender prawn
#

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

torn holly
#

Got it! Thank you very much!

tender prawn
#

Sure thing! Happy to shed what ๐Ÿ’ก I can ๐Ÿ™‚