#sovie7ic

1 messages ยท Page 1 of 1 (latest)

jaunty daggerBOT
undone plaza
#

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???
],
],
];

tiny crystal
#

hey there @undone plaza -- what have you tried so far and what is not working like you expect?

undone plaza
#

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

tiny crystal
#

Ok, and what isn't working like you expect? Can you share any errors or erroring request IDs?

undone plaza
#

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 ๐Ÿ™‚

tiny crystal
undone plaza
#

Should I save the "mandate id" somewhere or I can retreive it form a Payment method / customer?

jaunty daggerBOT
warm bone
#

Hello ๐Ÿ‘‹
Mandate ID can be retrieved from the SetupIntent that was used to save the payment method

undone plaza
#

I store the customer_id and payment method

warm bone
undone plaza
#

i see, thanks ๐Ÿ™‚