#adil

1 messages · Page 1 of 1 (latest)

atomic vortexBOT
bold laurel
fierce gull
#

Payment Intent is not working in India

#

I only want to collect the payment

#

Why it is so complicated

#

Could you please give me a reference how to capture payments in India

bold laurel
#

Payment Intent works in India

#

Where did you see that Payment Intent doesn't work in India?

#

In fact, only Payment Intent/Setup Intent works in India. Tokens/Charges are the ones don't work in India

fierce gull
#

It gives me an error

bold laurel
#

What error? Can you share the request ID (req_xxx) with the error using Payment Intent?

fierce gull
#

Please provide me the actual link for payment Intent in india

#

payment intent gives me an exception : Stripe\Exception\InvalidRequestException {#1493 ▼
#message: "You cannot confirm this PaymentIntent because it's missing a payment method. You can either update the PaymentIntent with a payment method and then confirm it again, or confirm it again directly with a payment method. ◀"
#code: 0
#file: "C:\xampp\htdocs\paytart\vendor\stripe\stripe-php\lib\Exception\ApiErrorException.php"
#line: 38
#error: Stripe\ErrorObject {#1506 ▶}
#httpBody: """
{
"error": {
"code": "payment_intent_unexpected_state",
"doc_url": "https://stripe.com/docs/error-codes/payment-intent-unexpected-state",
"message": "You cannot confirm this PaymentIntent because it's missing a payment method. You can either update the PaymentIntent with a payment method and t ▶
"payment_intent": {
"id": "pi_3NIQWtSCq3EU2irS0UZYdv4i",
"object": "payment_intent",
"amount": 2000,
"amount_capturable": 0,
"amount_details": {
"tip": {
}
},
"amount_received": 0,
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"client_secret": "pi_3NIQWtSCq3EU2irS0UZYdv4i_secret_hLsa37ki0ML6F6BeumKhlXu9a",
"confirmation_method": "automatic",
"created": 1686636995,
"currency": "inr",
"customer": null,
"description": null,
"invoice": null,
"last_payment_error": null,

Learn more about error codes and how to resolve them.

bold laurel
fierce gull
#

I am not getting you, please guide me to collect the payments in inid

#

DOcumentation is so complex

#

I do not need $checkout_session = $stripe->checkout->sessions->create I only need to capture the amount

bold laurel
#

Are you going to collect payment with Stripe hosted page or embedded in your website?

#

The simplest way will be using Checkout Session (Stripe hosted page) to collect the payment

#

You only need to create a payment link and redirect customer to the URL to complete the payment

fierce gull
#

embedded in your website

#

I have dynamic payment amounts to fill

bold laurel
#

In this case, you should select Custom payment flow in https://stripe.com/docs/payments/quickstart for the guide and downloading example code

Learn how to embed a custom Stripe payment form in your website or application. Build a checkout form with Elements to complete a payment using various payment methods.