#vibha-sharma_api
1 messages ¡ Page 1 of 1 (latest)
đ 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/1288805345141067798
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- vibha-sharma_api, 22 hours ago, 45 messages
- vibha-sharma_api, 3 days ago, 23 messages
- vibha-sharma_api, 5 days ago, 26 messages
Hi, let me help you with this.
You need to confirm the PaymentIntent first: https://docs.stripe.com/payments/bank-transfers/accept-a-payment?payment-ui=elements&invoices=without#element-submit-payment-to-stripe
got this error
You cannot confirm this PaymentIntent because it's missing a payment method. To confirm the PaymentIntent with cus_Qv1QlD2b0Vdxw9, specify a payment method attached to this customer along with the customer ID."
}
Could you please share the Request ID req_xxx? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Where do you see the error exactly? It doesn't seem to relate to this PI.
Ok, looking at your account...
payment indent created successfully but there is next_action is null
If you want to confirm via backend, you will need to add an extra parameter - payment_method_data[type]="customer_balance": https://docs.stripe.com/payments/bank-transfers/accept-a-payment?payment-ui=direct-api#web-create-and-confirm-payment-intent
I have created payment indent like that
$this->stripe->paymentIntents->create([
'amount' => $request['amount'] * 100, // Amount in the smallest currency unit
'currency' => $request['currency_code'],
'payment_method_types' => ['customer_balance'], // Use customer balance for bank transfers
'payment_method_options' => [
'customer_balance' => [
'funding_type' => 'bank_transfer',
'bank_transfer' => [
'type' => 'gb_bank_transfer', // Correct type for UK bank accounts
],
],
],
'customer' => $customer->id,
]);
is there any issue??
Yes, please read my previous message.