#aistudent_code

1 messages ยท Page 1 of 1 (latest)

white solsticeBOT
#

๐Ÿ‘‹ 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/1374341528532811828

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

finite wharf
#

hi there!

#

we know nothing about the "Drupal Commerce Payment module" here.

#

so I think you would need to ask the payment modul developer directly.

dull sparrow
#

Alright, but my question is more about Stripe letting developers save Payment methods for ACH. Is it allowed to store payment information for later use? I want to present users a form where they may put their banking details and this will be saved as a payment method for a user. I read somewhere that Stripe does not allow this and may block my id because of some PCI related issues.

finite wharf
dull sparrow
#

Thanks @finite wharf. So is it called Setup Future Usage? Do you know of any tutorial which can guide me setting up ACH custom payment form rather than Stripe Elements?

finite wharf
#

why don't you want to use Stripe Element?

#

using Checkout Session or the Payment Element are our recommended integration paths

dull sparrow
#

Checkout Session? Which one would you recommend to me in my case?

dull sparrow
finite wharf
#

not sure I understand your question.

#

it's every time you create the payment on your backend that you will define if you want to save it for later or not

dull sparrow
#

Yeh, that is my question please, so should I save it via API on Stripe servers, or save it on my website?

finite wharf
#

assuming you using PaymentIntent + Payment Element, you create a PaymentIntent with setup_future_usage (or create a SetupIntent) on the backend, and that will eventually save the payment method on your Stripe account.

dull sparrow
#

Also, what is difference between Payment Intent and Setup Intent, which one should I use here in my case, if I have to manage saving customer ACH payment info on my website.

finite wharf
#

it depends. do you want to make a payment and also save the payment method for later, or only save the payment method for later?

#

if it's the first, then PaymentIntent + setup_future_usage
if it's the second, then SetupIntent

dull sparrow
#

I will like to do both, make a payment adn save it for later, but if a user creates his preferred payment method as ACH, so it should be used for later which he or admin wants to pay for something

#

I want Admin of the site to pay on the user behalf for certain payments or due payments.

finite wharf
#

I will like to do both
ok, then you should use both PaymentIntent and SetupIntent

dull sparrow
#

Okay Thanks. One last question please, sorry I have wasted a lot of your time,

finite wharf
#

no worries, happy to help!

dull sparrow
#

Thanks

#

These are my customers, is there a way to uniquely identify my site customers with customers on Stripe End. Right now each time I try a payment, a new customer with the same email is created, or it works this way?

finite wharf
#

well that's up to you. instead of creating a new customer every time, you could reuse existing customer.

#

how are you currenctly accpeting payments? Payment Link, Chekcout Session, Payment Element, something else?

dull sparrow
#

Payment Element

white solsticeBOT
finite wharf
raw burrow
#

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

dull sparrow
#

@finite wharf The Payment Element is technically Offiste Payment method right? For my further research, and i am sorry I have asked an extra question, Please refer to me any ACH onsite payment tutorial or guide. Because currently the Drupal Commerce Stripe module assumes Stripe Elements to be offsite and some part of the functionality does not permit admins using Offisite Stripe ACH payments. So my whole aim of this discussion is to create an onsite ACH payment gateway for my Drupal site, which will overcome the limitation for Admins creating admin payments. So if there is a way to create onsite ACH payment mechanisms in PHP, I will study that. And thanks for all the help so far. I am currently ready Payment Intents and Setup Intents

raw burrow
#

The Payment Element is technically Offiste Payment method right?
what do you mean by that?

#

and i am sorry I have asked an extra question,
you can ask as many questions as you need, we're here to help

#

are you referring to off_session vs on_session setup_future_usage ?

dull sparrow
#

No, In my understanding of Onsite Payments on commerce platforms, your website renders a form which collects payment info, but offsite is a payment form hosted on the payment gateway site like Stripe. If an iframe is also used, it is techinically an offsite payment gateway.

raw burrow
#

if you need to collect the information yourself you need to be PCI compliant

#

and pass in the payment_method_data

#

but I highly recommend not going that path since it's a lot of effort to build, maintain and scale it

dull sparrow
#

Thanks for the suggestion @raw burrow . I reckon this PCI compliance will also need some doing.

raw burrow
#

yes but this is for SetupIntents

dull sparrow
#

My requirement is that Admin should pay on behalf of cusomters for unpaid orders. Also customers should save ACH stripe as its payment method of choice on my website, so any subsequent purchasing will have their payment gateway preselected.

raw burrow
#

what I suggested is more for paying directly

#

you can always save the payment method while confirming a payment at the same time

dull sparrow
raw burrow
#

by passing setup_future_usage to the PaymentIntent on creation

raw burrow
#

I meant if you wanted to collect other payment method types

#

especially cards

dull sparrow
raw burrow
#

are you only concerned with ACH DD?

dull sparrow
#

Yes, I only need ACH DD

raw burrow
#

if you are, the next question would be, what your customer's flow looks like? do you want them to be able to save their PM without having to pay? or is the saving part always happening while paying?

#

I recommend the latter if that's the use case you'll be facing

#

instead of making it a 2 steps flow

#

saving then paying

dull sparrow
#

I will like to have both, so during checkout if they are purchasing a product, they should be able to give payment details for ACH and payment will be done. But on subsequent usage, they can just reuse their existing info.
On the other hand, if they want to add their payment info in their profile, they should be able to add ACH credentials, which will appear when they purchase some products.
Also there are times when admin of the site gets payment details from our customers for ACH. In such cases, admins should be able to pay for unpaid invoices for the customers or add payment details of for the customer which will appear in their profile.

raw burrow
#

I will like to have both, so during checkout if they are purchasing a product, they should be able to give payment details for ACH and payment will be done. But on subsequent usage, they can just reuse their existing info.
that's the flow I sent you in my previous mesage

dull sparrow
#

In the first one, https://docs.stripe.com/payments/ach-direct-debit/accept-a-payment?web-or-mobile=web&payments-ui-type=direct-api Does it need that PCI compliance, as it says to create a custom form.
Also I ended up on this tutorial yesterday also, but the file names are confusing. There is index.php , then checkout.php, then checkout.html and some scripts like client.js and script.js but nothing is said about where to use these scripts in which file and what role the checkout.html plays, and checkout.php has the form rather than checkout.html. Please if you can elaborate on it.

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

raw burrow
#

no

#

the PCI compliance wasn't related to ACH DD in particular

#

I wasn't aware that you were only collecting ACH DD