#sudhanshu4365
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- sudhanshu4365, 1 hour ago, 38 messages
Be helpful if you shared the error
invalid_request_error - mandate_data[customer_acceptance][online]
Can you share the ID (req_xxx) of the API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_wRcNeXvsvR43oa
Error seems pretty verbose:
{
error: {
message: "Invalid object",
param: "mandate_data[customer_acceptance][online]",
request_log_url: "https://dashboard.stripe.com/test/logs/req_wRcNeXvsvR43oa?t=1708083273",
type: "invalid_request_error",
},
}
online needs to be a hash: https://docs.stripe.com/api/payment_intents/create#create_payment_intent-mandate_data-customer_acceptance-online
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
a hash means an object in PHP, like [ ...]
aahh okay i thought hash the encryption
no it's hash as in hashmap, as in key-value store, as in object
"online" => ["ip_address"=>"52.51.40.39" , "user_agent"=>"Chrome v100"] etc.
okay okay
Your account is not configured to allow passing mandate_data directly when confirming PaymentIntents for Bacs Direct Debits. getting this error now
yep, you have to use Checkout or PaymentElement for BACS.
can't use with api?
building your own payment page and presenting the mandate is a paid feature : https://docs.stripe.com/payments/payment-methods/bacs-debit#custom-branding