#adil
1 messages · Page 1 of 1 (latest)
You should not collect the raw card number and their information yourself as part of PCI compliance: https://stripe.com/docs/security/guide
You should use Payment Intent with Payment Element to collect card information: https://stripe.com/docs/payments/accept-a-payment
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
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
It gives me an error
What error? Can you share the request ID (req_xxx) with the error using Payment Intent?
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,
You only create payment intent the amount to be charged, but didn't collect the payment method details. I'd recommend following this guide to collect the payment method details: https://stripe.com/docs/payments/accept-a-payment
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
You can go to https://stripe.com/docs/payments/quickstart to download the example code
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
In this case, you should select Custom payment flow in https://stripe.com/docs/payments/quickstart for the guide and downloading example code