#vasant-dhatrak_api
1 messages ยท Page 1 of 1 (latest)
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.
- vasant-dhatrak_api, 2 hours ago, 10 messages
- vasant-dhatrak_code, 5 days ago, 64 messages
- vasant-dhatrak_code, 5 days ago, 10 messages
๐ 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.
is possible to create payment method for customer_balance
hi! sorry, I don't understand what you're trying to ask, can you elaborate?
yes sure
in stripe sepa_credit_transfer payment
- create customer
- create source
- attach source to customer
4 charge source
so after source api deprecation
is possible to
- create customer
- create payment method for customer_balance (return iban, bic details)
- attach payment method
- create payment intent
- confirm payment intent
hello
hello.
AFAIK, no, the IBAN is only created when you confirm an Intent with the PaymentMethod.
so every time i create payment intent for same customer
generates new iban and bic
i think it is not feasible
hello
sorry, not sure what your question is?
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 ?
yep!
hello any solution
Are you not using the Subscriptions API to handle recurring payments?
hi
i have some idea is
- 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
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
yes need to reusable
OK, so have you tried what I described?
yes
is possible create payment method for customer_balance (return iban, bic details)
Not without a Payment Intent no
What happened? What was the error? Can you share some example API requests
$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.
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
ok sure
What are you trying to achieve exactly, on high level?
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
hello
You can just create a PaymentIntent with payment_method_types: ['customer_balance'], no need to create a PaymentMethod object
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?
I assume you're using customer_balance for bank transfers: https://docs.stripe.com/invoicing/bank-transfer
You can see how to do this in the guide I shared above โ๏ธ
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?
Maybe you want to use Subscriptions for this?
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
yes
In that case, yeah, the above guide on using Bank Transfers without Invoices is the way to do this, specifically: https://docs.stripe.com/payments/bank-transfers/accept-a-payment?invoices=without
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
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
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
Yes as long as you use the same Customer it will be the same IBAN