#Hritik_9
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- Hritik_9, 17 minutes ago, 17 messages
Hi! I'd start by looking at general Stripe docs for taking payments, and then you can create databases for representing customer balances in your system that get updated when you take a payment.
Its Ok for Customer Balance we are using Customer credit balance APIs
That's fine .but for depositing the custom amount did we have any checkout session for that?
for ex. on click of deposite we have to open session/payment sheet to pay by card or bank account
not sure what you're asking but you can completely control the amount you charge your users by passing appropriate parameters in the specific APIs you use.
I want to use wallet System for my website.
means customer can have their amount in their creadit balance ..
and that amount they can use while PAY.
makes sense. Did you have specific technical questions about specific parts of Stripe or specific code or products?
Yes!
Can we Pay Only Amount using checkout-session ?
also how can we pay amount by already added card/bank account
Can we Pay Only Amount using checkout-session ?
not sure what that means. What does "pay only amount" mean. Don't understand you sorry.
also how can we pay amount by already added card/bank account
https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements#charge-saved-payment-method
for deposting the amount of customer -
which api i need to use for website..??
any of the approaches on https://stripe.com/docs/payments/accept-a-payment work for accepting a payment from a customer. I think that is what you're asking?
Okay will use checkout->session() but how i can pass already added bankaccount or card of that customer
you can't, not with Checkout.
but chatgpt has provide me this code
$checkoutSession = $stripe->checkout->sessions->create([
'success_url' => route('deposit.success'), // Define your success route
'cancel_url' => route('deposit.cancel'), // Define your cancel route
'payment_method_types' => ['card'], // Use 'card' for credit/debit card payments
'mode' => 'payment', // Set mode to 'payment'
'customer' => $customer_id, // The customer's Stripe ID
'payment_method' => $card_id, // Use the saved card's ID
'line_items' => [
[
'price_data' => [
'currency' => 'usd', // Replace with your desired currency
'unit_amount' => $depositAmount, // Amount in the smallest currency unit (e.g., cents)
'product_data' => [
'name' => 'Deposit', // Name for the deposit
],
],
'quantity' => 1, // Quantity is 1 for a single payment
],
],
]);
If not then how can i overcome this.. how i can use already added card/bankaccount while depositing the money using checkout session
that code doesn't work, it's a hallucination from ChatGPT. There is no such thing as 'payment_method' => $card_id, // Use the saved card's ID in the Checkout API.
yes correct
how i can use already added card/bankaccount while depositing the money using checkout session
you don't. Instead you create a PaymentIntent directly and have a UI on your site to confirm the payment with the customer. See https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements#charge-saved-payment-method which explains that.
what modifications i can do in my checkout session api
see above.
Yes solved the issue with client . Now what if i want to pay with indian bank account.?
then which changes i need to do in checkout session api
Taking over here, but Stripe doesn't support bank transfers for IN merchants: https://stripe.com/docs/payments/bank-transfers
Oh no!
How about UPI payment for indian customers only?
You'd need to speak to support about UPI: https://support.stripe.com/contact
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
It goes to your Stripe balance, and then is paid out according to the schedule and external accounts on your account: https://stripe.com/docs/payouts
Okay!
as a customer How i can withdraw the paid amount of customer and it should withdraw to customer account who had paid
I don't understand what you mean
in above image suppose i have deposited 100$ and used 20$
then how i can withdraw the remaining 80$
(look as a customer point of view)
You'd need to use Connect to facilitate payouts to 'customers'
oh okay.
how it works?
(As per user view)->So if i have $80 in my deposited balance and i clicks on withdraw money by whcih api the amount will get transfer to my account?
You need to take a step back here and understand how this will work. You will need to onboard your 'customer' as a Stripe account to your Connect platform in order for them to withdraw funds like that
The above URL is a starting point
Which part specifically?
withdraw
First you need to create and onboard accounts to your platform that would represent your customers: https://stripe.com/docs/connect/standard-accounts
The withdraw amount that customer paid..
to withdraw amount that customer paid..
Yeah there are few required steps you need to do before you can get to that point. Link above is the first