#nunu

1 messages ยท Page 1 of 1 (latest)

narrow capeBOT
tame condor
#

๐Ÿ‘‹ How can we help?

sharp hound
#

i have confirmed this payment intent through api pi_3M7uAUF3L9Yxs6dM0lGX35hF
but still it is incomplete
can u please check

tame condor
#

Payment will only be completed if the payment is authenticated with 3DS

sharp hound
#

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?

tame condor
#

I'm looking into it

sharp hound
#

ok thanks

tame condor
#

Why don't you charge the fee along with the subscription?

sharp hound
#

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?

tame condor
sharp hound
#

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

tame condor
#

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

sharp hound
#

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

tame condor
#

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.

sharp hound
#

hi set off_session to true

#

but error Your card was declined. This transaction requires authentication.

#

'confirmation_method' => 'automatic',
'off_session' => true,
'confirm' => true,

tame condor
sharp hound
#

in this case user has to to be authenticated two times right? one during payment intent creation and other while creating subscription

tame condor
#

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

sharp hound
#

ok thanks

tame condor
#

No problem! Happy to help ๐Ÿ˜„