#mayank.kumar.

1 messages · Page 1 of 1 (latest)

spiral monolithBOT
merry knot
keen nebula
#

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

merry knot
keen nebula
#

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

merry knot
keen nebula
#

Will payment Intent ID work?

merry knot
#

yeah, that'll work too

keen nebula
#

pi_3Omsa1BDQetmWEBV16H05wAv

#

req_lK8JvFHj8kGJ2c

#

Here is the reqID as well

merry knot
#

where are you seeing that it is still charging for master account?

keen nebula
#

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

merry knot
#

This is a charge on_behalf_of, which occurs on your platform account

keen nebula
#

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

merry knot
keen nebula
#

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

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

keen nebula
#

So How can I achieve the recurring payment?

#

My account is based on Singapore

#

Is this the reason Onbehalf is also not working?

merry knot
#

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

With Connect, you can make charges directly on the connected account and take fees in the process.

keen nebula
#

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

merry knot
keen nebula
#

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

merry knot
keen nebula
#

Yes

#

And I am getting this error at attaching the intent

merry knot
#

can you share the corresponding request id or SetupIntent id?

keen nebula
#

req_Qzgz5z4VDv0uUZ?t=1708676421

#

req_Qzgz5z4VDv0uUZ

merry knot
#

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.

Save card details for online reuse from an in-person transaction.

Save card details from an in-person transaction for deferred payments.

keen nebula
#

I have not accepted the payment but yes have created payment method using pending intend

#

Is this the reason for the issue?

merry knot
#

what is pending intend?

keen nebula
#

Step 1

#

Setp2

#

Then Once I get payment method from payment intent

#

I have tried to attach it to customer

merry knot