#Reyansh Sharma

1 messages ยท Page 1 of 1 (latest)

halcyon wrenBOT
worldly knoll
odd quarry
#

You actually need to pass payment_behavior: 'default_incomplete'

#

allow_incomplete is the default value

topaz sapphire
#

@worldly knoll Thanks, I know though in my case my module partially depends on TerminalJS where I need paymentintent before actually charging the card (Card swipe).

#

@odd quarry Thanks

#

So what I am trying is:

  1. Create the subscritption with the amount + stripe customer using email.
  2. Get the first invoice --> Charge --> PaymentIntent --> Client secret --> return to TerminalJS do operations etc.
  3. Then card swipe & charge the first payment.
#

Kind of experimenting ๐Ÿ˜ฆ & finding a way to get it working somehow.

odd quarry
#

So you want to collect and save an in-person card for an online subscription?

topaz sapphire
#

Yes @odd quarry

odd quarry
#

You'd save the card first via Terminal, and then create the subscription with the resulting pm_xxx object

topaz sapphire
#

Thanks will check. We had an existing app that is working fine so was trying to accommodate now changes with the existing module ๐Ÿ™‚

Select Amount --> Create PaymentIntent (Send ClientSecret to terminalJS this is where I was creating sub) --> Swipe Card --> Capture payment.

odd quarry
#

Yeah, that's a different one-time payment flow

#

That could work for subscriptions too:

  • Create subscription with payment_behavior: 'default_incomplete'
  • Send latest_invoice.payment_intent.client_secret to Terminal
  • Collect card payment