#FasterThanFlash-PM
1 messages ยท Page 1 of 1 (latest)
Hello Soma
I was told by stripe team that ACH payments can be made via PaymentIntent API
We are currently using Charge API for ACH as of now
May you provide me some details or heads up info on how do we use PaymentIntent API to make ACH transaction? What should be the type of PaymentIntent?
ACH with the PaymentIntent API was just released a few days ago! You can learn more about it here: https://stripe.com/docs/payments/ach-debit/accept-a-payment
And happy to help if you have some specific questions.
I've already read this document. PaymentIntent accepts Payment Method token. In Payment method, there's a param called "type".
There's no type for ACH
What should we use there?
How are you integrating with Stripe? Checkout Session, PaymentIntent + PaymentElement, something else?
We have a custom implementation. We are using APIs to make callouts. We can not use Stripe JS as we need to make scheduled payments as well.
So we are storing the payment method tokens and using setup_future_usage=offsession
What should be the type of PaymentIntent?
I think it should beus_bank_account
And what should be the type of payment method?
us_bank_account
Got it
thanks @grand summit .
I think I've all my questions resolved for now, I'll ping you back in case I need any help.
Thanks for your help, appreciated ๐
Thanks @oak sail .
I'm facing this error - parameter_missing - billing_details[name]
Is it required?
If yes, then why? What is the use of collecting this data?
Which endpoint are you using?
Can you share a req_xxx?
req_zaWZ2MzCN5STZ8
Yep, certain Payment Method types might require specific billing parameters, as noted here: https://stripe.com/docs/api/payment_methods/create#create_payment_method-billing_details
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I guess we need it for ACH banks
i.e. the account holder name
Okay. Understood.
i think we are good for now
I'll get back to you if i have any questions
thanks @oak sail ๐
Np!
Hi ๐ what about it?
The request failed.
I need to know the reason. I think I passed the payment_method_types wrong way
?
Yeah, the error returned says invalid array. Looks like you passed a string for payment_method_types rather than an array of strings.
Let me check
I was sending it like this payment_method_types=us_bank_account in request body
Should I send it like payment_method_types[us_bank_account]?
I'm not exactly sure how to structure that on the salesforce side of things, so I'm not exactly sure what to recommend.
Do you have any sample code for this?
I've tried everything and it is not working ๐
๐ข
Are you writing code directly in Salesforce?
yes
Sorry, no we don't have anything for that. The value that you had in the request you shared looked right, it just needs to be in an array rather than being a string by itself.
i've tried it with array as well
req_nenPJjs2bbuedS
here
Do you have a sample code in any development language?
I think i found it
wait
We have code snippets for each of our official client libraries and for cURL in our API spec:
https://stripe.com/docs/api/payment_intents/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Here's the sample code by stripe . https://stripe.com/docs/payments/ach-debit/accept-a-payment
@stable carbon @oak sail See this request please req_FitWT9rHD43qJk
I don't see a single issue here. But it says Invalid Array
From what I'm seeing that appears to be a string trying to look like an array.
I'm passing it the same way as shown in the example
Are you making the cURL request directly, or is it using whatever the request library in Salesforce is?
Using the salesforce
Is it possible for you to provide me the same request in postman?
You can copy/paste the cURL request into Postman's import to convert it. But I think it'll be more beneficial to look for guides on how to send array objects with Salesforce's REST API framework, I believe it's called Callouts.
Let me try to mimic the same request in postman.
@stable carbon I got this error now -
The payment method type "(us_bank_account)" is invalid. Please ensure the provided type is activated in your dashboard (https://dashboard.stripe.com/account/payments/settings) and your account is enabled for any preview features that you are trying to use
Could you please activate ACH for our account? This is not a paid account and we are doing poc
Sorry, but no, we cannot make changes to accounts. You can enable it in your dashboard:
https://dashboard.stripe.com/settings/payment_methods