#Reyansh Sharma
1 messages ยท Page 1 of 1 (latest)
Hi
Yes you can, but it's not recommended.
To do so, you can set payment_behavior=allow_incomplete
https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_behavior
You actually need to pass payment_behavior: 'default_incomplete'
allow_incomplete is the default value
@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:
- Create the subscritption with the amount + stripe customer using email.
- Get the first invoice --> Charge --> PaymentIntent --> Client secret --> return to TerminalJS do operations etc.
- Then card swipe & charge the first payment.
Kind of experimenting ๐ฆ & finding a way to get it working somehow.
So you want to collect and save an in-person card for an online subscription?
Yes @odd quarry
You want to look at this: https://stripe.com/docs/terminal/features/saving-cards/save-cards-directly
You'd save the card first via Terminal, and then create the subscription with the resulting pm_xxx object
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.