#sovie7ic
1 messages ยท Page 1 of 1 (latest)
Hi there ๐
Thats my code
$data = [
'payment_method_types' => $payment_method_types,
'customer' => $stripe_customer_id,
'payment_method' => $payment_method,
'amount' => $amount,
'confirm' => true,
'currency' => $this->currency,
'application_fee_amount' => $this->calculateFeeInCents($amount),
'metadata' => [
'organization_id' => $this->organization_id,
'organization_name' => isset($this->organization) ? $this->organization->name ?? '?' : '?',
],
'payment_method_options' => [
'acss_debit' => [
'mandate_options' => [
'payment_schedule' => 'combined',
'interval_description' => 'One time payment or a monthly payment depending on the choice.',
'transaction_type' => 'business',
],
'verification_method' => 'instant', // instant so payment will be instant???
],
],
];
hey there @undone plaza -- what have you tried so far and what is not working like you expect?
the mandate options is there
Im trying to create a "live" charge
from a saved payment method
used for a recurring payment
Is it possible to send you the URL
Ok, and what isn't working like you expect? Can you share any errors or erroring request IDs?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Getting this: A mandate is required. Please either provide the id of an existing mandate on confirmation, or provide payment_method_options[acss_debit][mandate_options]
thank you for any help ๐
Ok, so the related request for this payment is here: https://dashboard.stripe.com/test/logs/req_7qkxxmjhUTI7E2
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Should I save the "mandate id" somewhere or I can retreive it form a Payment method / customer?
Hello ๐
Mandate ID can be retrieved from the SetupIntent that was used to save the payment method
I store the customer_id and payment method
You can use the list API to find the specific SetupIntent
https://stripe.com/docs/api/setup_intents/list
and expand the mandate
i see, thanks ๐