#matthias-adenin-purse_api

1 messages · Page 1 of 1 (latest)

sick tulipBOT
#

👋 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/1343504269726191700

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

devout pendant
#

Hello !

I'm trying to implement CIT/MIT with 0 euros amount when first authorizing in createpayment but I have this error

#

{
"error": {
"code":
"parameter_invalid_integer",
"doc_url":
"https://stripe.com/docs/error-codes/parameter-invalid-integer",
"message":
"The amount must be greater than or equal to the minimum charge amount allowed for your account and the currency set (https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). If you want to save a Payment Method for future use without an immediate payment, use a Setup Intent instead: https://docs.stripe.com/payments/setup-intents",
"param":
"amount",
"request_log_url":
"https://dashboard.stripe.com/test/logs/req_G6iouowQyQgMxT?t=1740386646",
"type":
"invalid_request_error",
},
}

Learn more about Stripe API error codes and how to resolve them.

See what currencies you can use for making charges and for paying out to your bank account.

silent lark
#

No you can't create a PaymentIntent with amount less than minimum charge amount

devout pendant
#

Okay so basically I need to pass a setupintent instead ?

#

And call CreateSetupIntentAPI ,

silent lark
#

If the objective is to save a payment method, yes you should use setupIntent

sick tulipBOT
tawny bluff
#

hi! I'm taking over this thread. let me know if you have other questions!

devout pendant
#

My objective is to first do an authorize payment of 0 euros then in our workflow we call the off_session_authorize endpoint which is authorizing for example 10 euros amount

#

And capture it etc

#

Is it possible to do this with setupintent

tawny bluff
#

if you want to save a payment method without making a charge, then yes you should use SetupIntents

devout pendant
#

By charge u meant a refund ?

tawny bluff
#

I mean make a payment (like 10€)

#

once the SetupIntent is successful, you'll get a PaymentMethod object that you can reuse to charge toe customer 10€ for example

devout pendant
#

So if I'm not misunderstanding

#

I should create a SetupIntent

#

In my "init" step in my workflow

#

Then when it's time to Authorize and Capture I should use the createpaymentintent API with the paymentmethod returned by SetupIntent API ?

tawny bluff
#

correct

devout pendant
#

Perfect !

#

Thank you for your answers