#Satya

1 messages ยท Page 1 of 1 (latest)

still sorrelBOT
errant sequoia
#

๐Ÿ‘‹ happy to help

lament grail
#

Hi Tarzan

errant sequoia
lament grail
#

I am looking for an API that I can do the recurring payment as user entered amount

errant sequoia
#

Oh sorry I misunderstood the question

#

in that case you need to create a subscription

lament grail
#

No problem. Please let me know if any API avaiable

errant sequoia
#

and pass price_data instead of price id

#

you can specify the unit_amount

lament grail
#

Do I need to specify the Product details?

errant sequoia
#

yes you'd need to pass on a previously created product

#

but the price_data would give you access to "customized" amounts

lament grail
#

but it will debit monthly?

#

if we pass the customized amount

errant sequoia
#

yes

lament grail
#

thanks for you help

#

I will try this and if any queries will ping here

errant sequoia
#

sure

lament grail
#

Hi Tarzan, If we are making monthly subscriptions how stripe can do or capture the bank or card details?

frail bay
#

Hi there ๐Ÿ‘‹ I'm jumping in as my teammate needed to step away.

Can you elaborate on what you're trying to accomplish?

lament grail
#

Hi Toby. We are trying to do the recurring option but how the stripe will know the payment method either a bank or card details which the recurring payment is taken. According to the API we provide the amount but the payment method is not known in stripe

frail bay
#

Can you share the request ID (req_xxx) of the request that generated that error?

lament grail
#

req_E8KKfOr03XIQi6

frail bay
#

Thank you, and sincere apologies for the delay.

#

When you create a Subscription, you can provide the Payment Method that it should use via the default_payment_method field:
https://stripe.com/docs/api/subscriptions/object#subscription_object-default_payment_method
If you don't, then we try to fall back onto information on the Customer record, in the order shown in the description for that field.

In this case we tried to fall back to the Customer information, but the fields we looked in were blank, so an error was raised as no Payment Method could be found to use.