#mayank.kumar.
1 messages · Page 1 of 1 (latest)
hello! Have you taken a look at this guide? https://docs.stripe.com/terminal/features/saving-cards/save-cards-directly
Is this the only way to implement for recurring or we can create customer and attach Payment method manually ?
I would like to charge as well as keep it to be used for recurring payments
I do not want to save without charging
Then i think what you're looking for is this guide : https://docs.stripe.com/terminal/features/saving-cards/save-after-payment
Ok
I will review and try this
Can you also help me understand why in payment intent created by terminal
not accepting on Behalf of
I did 1 payment by passing account ID of connected account in OnBehalfof
but it is still charging for master account
can you share the request id [0]? it'd look like req_xxx
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Will payment Intent ID work?
yeah, that'll work too
where are you seeing that it is still charging for master account?
I cannot see this payment in the Connected account
So it would be going into master
See this there is no payment in this account
This is a charge on_behalf_of, which occurs on your platform account
if you want the payment to be created on the connected account, you'll want to create a Direct Charge : https://stripe.com/docs/connect/direct-charges
The flow I would like to build is
Create Payment intent from Terminal
Attach the customer with the payment method for the payment done using tap of card
Accept payment for a connected account
and Then reuse this customer for recurring
How could I achieve this
I do not want to go to server for payment
As I am using terminal the payment has to happen on the device using card present
@merry knot Can you please help how I can achieve this in terminal
Have you taken a look at the guide shared previously? https://docs.stripe.com/terminal/features/saving-cards/save-after-payment?terminal-sdk-platform=ios
Yes I was trying this
Getting this error
com.stripe.stripeterminal.external.models.TerminalException: `setup_future_usage` cannot be used with one or more of the values you specified in `payment_method_types`. Please remove `setup_future_usage` or remove these types from `payment_method_types`: [card_present].
Does it not allow for card_present?
@merry knot
hrm, this flow is currently only available in the US and it looks like your Stripe account isn't based in the US
So How can I achieve the recurring payment?
My account is based on Singapore
Is this the reason Onbehalf is also not working?
I don't think there's a good way to save a card after payment if your Stripe account isn't based in the US. Can you write in to Stripe Support and ask if there's a way to save after payment if your Stripe account is based in Singapore? Also mention this guide : https://docs.stripe.com/terminal/features/saving-cards/save-after-payment
on_behalf_of is working as expected i.e. the Charge is expected to be created on your Platform account. If you want the payment to be created on the connected account, you'll want to create a Direct Charge : https://stripe.com/docs/connect/direct-charges
Can I use the Payment Intent of Card_Present for Direct charge?
As this is the case of Card_present Intent cannot be created on server
Hi @merry knot
I have reviewed the link
At this stage I got success for onbehalf of
While for recurring payment
When I am trying to attach the payment method to a customer
I am getting this error
"message": "PaymentMethods of type 'card_present' cannot be saved to customers.",
Can you help
which flow are you trying out - is it this guide? https://docs.stripe.com/terminal/features/saving-cards/save-cards-directly
can you share the corresponding request id or SetupIntent id?
If you're following this guide : https://docs.stripe.com/terminal/features/saving-cards/save-cards-directly - it mentions that you should create a PaymentMethod using SetupIntents. Based off what I see from the request ids you've provided, you're attempting to attach a PaymentMethod (created from a PaymentIntent) to a Customer
If you want to save a card after payment and your Stripe account isn't based in the US : https://docs.stripe.com/terminal/features/saving-cards/save-after-payment. You will need to write in to Stripe Support to check if there's a way to save after payment if your Stripe account is based in Singapore.
I have not accepted the payment but yes have created payment method using pending intend
Is this the reason for the issue?
what is pending intend?
Step 1
Setp2
Then Once I get payment method from payment intent
I have tried to attach it to customer
If you're following this guide : https://docs.stripe.com/terminal/features/saving-cards/save-cards-directly, you should create a PaymentMethod using SetupIntents