adrienverge / localstripe

A fake but stateful Stripe server that you can run locally, for testing purposes.
GNU General Public License v3.0
196 stars 58 forks source link

PaymentIntent: Refactor passing of confirm and off_session #136

Closed adrienverge closed 4 years ago

adrienverge commented 4 years ago

confirm and off_session are not part of the object itself. They are read only on creation, and used only once to confirm the intent:

From https://stripe.com/docs/api/payment_intents/create:

When confirm=true is used during creation, it is equivalent to creating and confirming the PaymentIntent in the same call. You may use any parameters available in the confirm API when confirm=true is supplied.


@ImJustToNy this follows #133 and #135. Can you review it or test it? Thanks!