#vasant-dhatrak_code

1 messages ¡ Page 1 of 1 (latest)

loud coveBOT
lofty bronzeBOT
#

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.

loud coveBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1251150351697055774

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

sacred vessel
#

hi there!

opal wraith
#

i am bit confuse in stripe documentation

let see in sepa_credit_transaction

  1. create customer
  2. create source
  3. attach source
  4. charge source

this is the old way i already develope

so now after deprecation what is flow step wise

sacred vessel
opal wraith
#

i not get clear idea about how i recode for new

sacred vessel
#

if you have some specific questions, I'm happy to help.

opal wraith
#

see 1st create customer is important

#

then after creating customer
i need to create paymentIntent

but how can i generate bank account details for customer to pass in paymentIntent

loud coveBOT
sacred vessel
#

the first question you need to ask is: do you want to use the Payment Element or Checkout Session to collect the payment?

opal wraith
#

no

#

i dont have payment element

alpine cypress
#

How do you want to accept payment method details then?

#

Generally either payment element or checkout are recommended

opal wraith
#

see i code for creating customer
creating source
attach source

and on billing

i charge

alpine cypress
#

Sure

#

But how do you collect their payment method info

#

Also you really shouldn't be using sources

#

That's an older api flow

#

Which is being phased out slowly

opal wraith
#

in webhook i handle condition for

source.chargeable

#

$charge = \Stripe\Charge::create([
'amount' => $amount,
'currency' => 'eur',
'customer' => $custId,
'source' => $sourceId,
'description'=> $invoiceVal->invoice_no,
'statement_descriptor_suffix' => ' - '.$invoiceVal->invoice_no,
'statement_descriptor' => 'gurado - '.$invoiceVal->invoice_no,
'metadata' => [ 'invoice_number' => $invoiceVal->invoice_no ]
]);

alpine cypress
#

You still haven't answered how you collect the bank details

opal wraith
#

using source id

alpine cypress
#

?

#

What I mean is how do you collect bank account number, etc from the customer

opal wraith
#

i am working on old code

alpine cypress
#

Via what surface?

opal wraith
#

so i need to make it as per new beacuse sources api deprecation

alpine cypress
#

From what surface do you collect bank account details in this old code? You have to have a way for the customer to input their bank details

#

You said you're not using payment element

#

So what is it that you use then?

#

I'm talking purely the client-side ui part

opal wraith
#

no i have customer basic details so
i create customer
create source for customer

so in new way what step after creating customer

is creating bank details ?

#

i am not using client-side ui part

alpine cypress
#

i am not using client-side ui part
How do you have their bank details then

opal wraith
#

creating source return bank details

alpine cypress
#

Oh you're referring the the virtual bank account

#

I understand now

opal wraith
#

yes exactly

#

now you got it

#

can you please help me in this

alpine cypress
#

In new flow you only need to create payment intent

#

Just follow those steps ^

#

It walks you through the process

#

Well Customer and Payment Intent

#

You still need customer

opal wraith
#

ok

#

then create customer

#

create paymentIntent

alpine cypress
#

Yep

#

Using the steps from above

opal wraith
#

and what next ?

alpine cypress
#

The guide above walks you through everything

#

You'll need to read it completely to understand

#

It has notes of small edge cases and important things too, so that's why I recommend you follow that

opal wraith
#

so i dont need to handle source.chargeable event in webhook ?

#

hello

alpine cypress
#

nope

#

please read the guide i sent you