#nunu
1 messages ยท Page 1 of 1 (latest)
๐ How can we help?
i have confirmed this payment intent through api pi_3M7uAUF3L9Yxs6dM0lGX35hF
but still it is incomplete
can u please check
As per your confirmation request: https://dashboard.stripe.com/test/logs/iar_Fl11AtefXkqqmk, it's still in requires_action for customer to complete 3DS authentication
Payment will only be completed if the payment is authenticated with 3DS
i am trying to do purchase of subscription paid trial , so an additional fee has to be charged along with subscribing with free trial, so along with subscription i am creating a payment intent for this additional fee before creating subscription with free trial
the 3d pop up came and i click completed authentication button
after that i am calling the api to confirm payment intent
can u please check for thi stest customer cus_MrdRGWmXMIaoo7
hi you there?
I'm looking into it
ok thanks
Why don't you charge the fee along with the subscription?
how can i do that , wit subscription we normally attach a plan right? and that plan will be actual subscription price
how the additional fee can be charged?
You can create a price on the additional fee and include the one-time charge in the first subscription invoice: https://stripe.com/docs/billing/invoices/subscription#first-invoice-extra
the api version i am using is older and the code is also a little older , will the above work?
this is the subscription post api currently i am usig
{
"metadata": {
"tax_amount": "0",
"tax_option": "Tax Over",
"course": "Test",
"tax_payer": "2",
"tax_category": "1",
"tax_rate": "0",
"tax_option_id": "1"
},
"trial_from_plan": "true",
"customer": "cus_MrdRGWmXMIaoo7",
"payment_behavior": "allow_incomplete",
"off_session": "false",
"plan": "6179",
"expand": {
"0": "pending_setup_intent"
}
}
not using "items" param
with the above api can i add an extra charge?
hi
Have you tried with recommend approach from the doc with using add_invoice_items parameter?
add_invoice_items is in addition to your current parameters to collect one-time charge
ok willl try tat
one more doubt , using this method there will be many code change
is there any way with the previous method
already created payment mmethod , but not able to confirm
If the customer is not present in the payment to authentication, you can use set off_session to true when creating the payment intent: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-off_session
However, issuer may still request 3DS, so your code should implement handling 3DS.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
hi set off_session to true
but error Your card was declined. This transaction requires authentication.
'confirmation_method' => 'automatic',
'off_session' => true,
'confirm' => true,
Yup, this is the scenario that I mentioned that issuer may still request 3DS even if you set off_session to true. Your flow still require to handle 3DS authentication: https://stripe.com/docs/payments/3d-secure
in this case user has to to be authenticated two times right? one during payment intent creation and other while creating subscription
Yes, user might be authenticated two times if the issuer requests for authentication
For better customer experience, I'd recommend using the one-time charge on subscription I suggested earlier
ok thanks
No problem! Happy to help ๐