#deepak_code

1 messages ยท Page 1 of 1 (latest)

sturdy fieldBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1265558891366715442

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

frigid ivy
#

Hi, do you implement using Stripe Elements or via a 3rd party plugin? I am not familar with the stripeProcessPayment() method.

tiny yarrow
#

Thanks for your reply.
I used the Composer PHP Library only

  • composer require stripe/stripe-php
    & not any third party plugin. This is my method name in controller stripeProcessPayment(). for processing the payment.
frigid ivy
#

Okie, and which Doc are you following?

tiny yarrow
#

Stripe ACH API Documentation - https://docs.stripe.com/payments/ach-debit/accept-a-payment?web-or-mobile=web&payments-ui-type=direct-api
Custom Payment form where I am going to provide Credit Card & ACH (Bank Account) option.
Via Credit Card - I am able to make the payment (PaymentIntent with return Url).
For ACH - I will need the "Instant" verification. Also get the payment

Build a custom payment form or use Stripe Checkout to accept payments with ACH Direct Debit.

frigid ivy
#

Thanks. The flow does require the micro deposit verification AFAIK

tiny yarrow
#

Okay but using "Instant" verification (for Test account) can we not make the payment successful?
How the ACH actually works or can you let me know the Process flow (consider my implementation - form, controller etc)

frigid ivy
#

I mean if the customer opt out of instant verify, you will still need to eventually implement the microdeposit verification

#

And you can follow the steps on the Doc for the flow ๐Ÿ™‚ We can help if you could clarify which step/code the error come from? And the errored request id req_xxx

tiny yarrow
#

As a Start I wanted to go ahead & make the payment successful with the "Instant" verification. This is current error I am getting

Payment failed: Error processing ACH payment: PaymentMethods of type us_bank_account must be verified before they can be attached to a customer.

frigid ivy
tiny yarrow
#

Yes this error logged under Logs -
invalid_request_error
PaymentMethods of type us_bank_account must be verified before they can be attached to a customer.

POST /v1/payment_methods/pm_xxxxxxxx/attach
Response body
{
"error": {
"message": "PaymentMethods of type us_bank_account must be verified before they can be attached to a customer.",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_xxxxxxxxx",
"type": "invalid_request_error"
}
}

sturdy fieldBOT
charred crescent
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

charred crescent
#

Why are you attaching the PaymentMethod directly? What flow are you trying to achieve?

tiny yarrow
#

Might be I am confused or wrongly implementing the ACH method. Could you please guide me?
Here I want to achieve or my understanding: (please correct me if I am wrong)

  1. Payment From - Card or ACH options.
  2. Card - credit card details option. (I am able to successfully implemented the payment via card.)
  3. ACH - provide Bank account details to enter
  4. Verify Bank Account Details -- client side
  5. Submit the payment form & redirect to success/result page - with show status message "Verification Required" or "Payment Pending verification."ย  etc

This is my Initial requirement. For This How I proceed & implement in my Laravel 8+ using Stripe JS V3.
Next Process for - Verify the Micro Deposits by User to Verify Bank Account.

charred crescent
#

In your case that would be card and us_bank_account.

#

Have you looked into this option, and if yes, why it is not working for you?

sturdy fieldBOT
tiny yarrow
charred crescent
#

Do you have a requirement to perform micro-deposits verification?

tiny yarrow
#

Might be required both Instant or Micro-deposits. Need to implement both

charred crescent
nimble walrus
#

๐Ÿ‘‹ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

tiny yarrow
#

Just wanted to confirm the flow/implementation & correct me if I am wrong:
Step 1: Payment Form with Card & ACH options
Steps 2: If ACH - enter details & Verify it at client Side.
Step 3: On submit redirect or Show/result page with status message "Verification Required" or "Payment Pending Verification."ย  etc
User Receives Microdeposits -
Step 5: On Same Payment form, Provide way to verify the account (to enter micro deposits)
Step 4: Entered deposits - send to Stripe & confirm. (Stripe verifies the micro deposit amounts against the actual deposits sent to User 1's bank account.)

nimble walrus
#

actually if you use the PaymentElement you don't really need to worry at all about the steps

tiny yarrow
#

For this need to use any additional library?

nimble walrus
nimble walrus
sturdy fieldBOT
tiny yarrow
#

For my case, how I proceed with means which is better way for me to implement?

rancid rune
#

they both work, it depends on your own requirements and use cases.

tiny yarrow
#

My requirement as I mentioned above like
Step 1: Payment Form with Card & ACH options
Steps 2: If ACH - enter details & Verify it at client Side.
Step 3: On submit redirect or Show/result page with status message "Verification Required" or "Payment Pending Verification." etc
User Receives Microdeposits -
Step 5: On Same Payment form, Provide way to verify the account (to enter micro deposits)
Step 4: Entered deposits - send to Stripe & confirm. (Stripe verifies the micro deposit amounts against the actual deposits sent to User 1's bank account.)

rancid rune
#

doesn't make sense because
a) usually microdeposits are not required and the verification is instant and done by the user logging into their bank on the page.
b) microdeposits take a few days to appear in the users' bank account, so it's not the "same payment form".

Either way any of our documented flows all fully support all of this.