#vasant-dhatrak_api

1 messages ยท Page 1 of 1 (latest)

noble scarabBOT
coral bluffBOT
#

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.

noble scarabBOT
#

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

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

cunning ledge
#

is possible to create payment method for customer_balance

daring prairie
#

hi! sorry, I don't understand what you're trying to ask, can you elaborate?

cunning ledge
#

yes sure

in stripe sepa_credit_transfer payment

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

so after source api deprecation

#

is possible to

  1. create customer
  2. create payment method for customer_balance (return iban, bic details)
  3. attach payment method
  4. create payment intent
  5. confirm payment intent
#

hello

daring prairie
#

hello.

daring prairie
cunning ledge
#

so every time i create payment intent for same customer
generates new iban and bic

i think it is not feasible

#

hello

daring prairie
#

sorry, not sure what your question is?

cunning ledge
#

means i am charging my customers monthly

so every month i need to create paymentintent

so for every invoice create new iban bic with current paymentintent flow

#

hello

#

any solution for this case ?

noble scarabBOT
cunning ledge
#

hello any solution

indigo raptor
#

Are you not using the Subscriptions API to handle recurring payments?

cunning ledge
#

no

#

from webhook i create

cunning ledge
#

hi

#

i have some idea is

  1. create customer
  2. create payment method for customer_balance (return iban, bic details) i store this details in my database
  3. attach payment method
  4. create payment intent
  5. confirm payment intent
indigo raptor
#

Are you not able to pass the pm_XXX ID from the previously created intent when generating a new intent? I understand that they should be reusable

cunning ledge
#

yes need to reusable

indigo raptor
#

OK, so have you tried what I described?

cunning ledge
#

yes

#

is possible create payment method for customer_balance (return iban, bic details)

indigo raptor
#

Not without a Payment Intent no

indigo raptor
noble scarabBOT
cunning ledge
#

$paymentMethod = \Stripe\PaymentMethod::create([

'type' => 'customer_balance',

'billing_details' => [
'name' => 'C 3',
'email' => 'c3@example.com',
],
]);

echo '<pre>';
print_r($paymentMethod);
die;

not return iban and bic details

#

$payment_method = \Stripe\PaymentMethod::retrieve('pm_1PTi5bLDi2gy2gxoBXzc7n9o');
$payment_method->attach([
'customer' => 'cus_QKMmZwhrTNN8JX', ]);

PaymentMethods of type "'customer_balance'" cannot be saved to customers.

shrewd olive
#

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

cunning ledge
#

ok sure

shrewd olive
#

What are you trying to achieve exactly, on high level?

cunning ledge
#

create customer
create payment method for customer_balance (return iban, bic details) i store this details in my database
attach payment method
create payment intent
confirm payment intent

#

hi

shrewd olive
#

You can just create a PaymentIntent with payment_method_types: ['customer_balance'], no need to create a PaymentMethod object

cunning ledge
#

can you share me a code

#

$paymentIntent = \Stripe\PaymentIntent::create([
'amount' => 2000, // amount in cents (EUR)
'currency' => 'eur',
'customer' => 'cus_QKOpDCxlnwN3Bs',
'payment_method_types' => ['customer_balance'],
'confirm' => false,
]);

echo '<pre>';
print_r($paymentIntent);
die;

this code also not giving any iban bic details

#

can we do call

is possible?

shrewd olive
cunning ledge
#

yes

#

because sepa_credit_transfer soruce api is no more

#

hello

shrewd olive
cunning ledge
#

see i want to create iban and boc details only once per customer

and with the help of this i can send invoices from my system i can send invoice to customer every month

#

clear?

coral bluffBOT
shrewd olive
#

Maybe you want to use Subscriptions for this?

cunning ledge
#

no dont want to use

#

create customer
create payment method for customer_balance (return iban, bic details) i store this details in my database
attach payment method
create payment intent
confirm payment intent

rough patrol
#

๐Ÿ‘‹ stepping in here

#

So you want to manage the recurring monthly charge yourself?

cunning ledge
#

yes

rough patrol
cunning ledge
#

yes

#

exactly

#

want to create iban and boc details only once per customer

#

and link you share

iban bic create per paymentintent

if i create paymentintent per month for per customer

then

evenry month creates new ibn bic

#

it is difficult for customer

rough patrol
#

No that should not be the case

#

Have you tested? It will use the same IBAN per Customer each PaymentIntent

#

Unless you are creating duplicate Customer objects

cunning ledge
#

yes i tested

#

ok means

#

if i create 2 payment intent

#

for same customer

#

then iban bic details same

#

i tested

#

so i think my problem is going to solve

rough patrol
#

Yes as long as you use the same Customer it will be the same IBAN