#FasterThanFlash-PM

1 messages ยท Page 1 of 1 (latest)

cosmic trellis
#

Hi! What are your questions/concerns?

rare bear
#

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?

cosmic trellis
rare bear
#

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?

cosmic trellis
#

How are you integrating with Stripe? Checkout Session, PaymentIntent + PaymentElement, something else?

rare bear
#

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

cosmic trellis
#

What should be the type of PaymentIntent?
I think it should be us_bank_account

rare bear
#

And what should be the type of payment method?

grand summit
#

us_bank_account

rare bear
#

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

rare bear
#

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?

oak sail
#

Which endpoint are you using?

rare bear
#

PaymentIntent

#

for ACH

oak sail
#

Can you share a req_xxx?

rare bear
#

req_zaWZ2MzCN5STZ8

oak sail
#

I guess we need it for ACH banks

#

i.e. the account holder name

rare bear
#

Okay. Understood.

rare bear
#

i think we are good for now

#

I'll get back to you if i have any questions

#

thanks @oak sail ๐Ÿ™‚

oak sail
#

Np!

rare bear
#

hey @stable carbon

#

please check this request for me - req_Iwt6ZGOkrz6J9L

stable carbon
#

Hi ๐Ÿ‘‹ what about it?

rare bear
#

The request failed.

#

I need to know the reason. I think I passed the payment_method_types wrong way

#

?

stable carbon
#

Yeah, the error returned says invalid array. Looks like you passed a string for payment_method_types rather than an array of strings.

rare bear
#

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

stable carbon
#

I'm not exactly sure how to structure that on the salesforce side of things, so I'm not exactly sure what to recommend.

rare bear
#

Okay thanks

#

Let me try few things

rare bear
#

Do you have any sample code for this?

#

I've tried everything and it is not working ๐Ÿ˜‚

#

๐Ÿ˜ข

stable carbon
#

Are you writing code directly in Salesforce?

rare bear
#

yes

stable carbon
#

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.

rare bear
#

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

stable carbon
rare bear
#

@stable carbon @oak sail See this request please req_FitWT9rHD43qJk

I don't see a single issue here. But it says Invalid Array

stable carbon
#

From what I'm seeing that appears to be a string trying to look like an array.

rare bear
#

I'm passing it the same way as shown in the example

stable carbon
#

Are you making the cURL request directly, or is it using whatever the request library in Salesforce is?

rare bear
#

Using the salesforce

#

Is it possible for you to provide me the same request in postman?

stable carbon
#

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.

rare bear
#

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

stable carbon
rare bear
#

Got it. Thanks

#

Not getting through this today ๐Ÿ™‚

#

I'll try tomorrow.

#

Thanks for your help