#abl - Metered Billing

1 messages · Page 1 of 1 (latest)

tall garnet
#

Hello! The best thing to do as far as displaying immediate feedback to the customer while they're on-session is to fetch the status of the Payment Intent from the Stripe API and display the result accordingly.

#

Webhooks are still vital in case the customer drops off before they land on your success page (meaning not all of your client-side code ran, but you still got paid, so you need to handle fulfillment).

gentle flame
#

hmm so I cannot use the status on the object returned from the POST server side? For reference I'm using the Go client so we send a paymentIntent param with confirm=true

#

Thanks for the help by the way 🙂

tall garnet
#

You're confirming server-side for on-session payments? Why aren't you confirming client-side with Stripe.js?

gentle flame
#

Currently we automatically generate invoices monthly server side, the on-session payment is supposed to be a new feature so perhaps I should look into client-side for on-session?

tall garnet
#

Yes, you should confirm on-session payments client side with Stripe.js or one of our hosted surfaces to allow for async payment flows (i.e., 3D Secure, etc.).

#

Are these new payments going to use Invoices or are you going to use Payment Intents directly?

gentle flame
#

payment intents directly

#

basically we want users to be able to pay for the services they've consumed so they can delete their account info if that makes sense

tall garnet
gentle flame
#

Thanks! Is there a way so they don't have to re-enter all their payment info again?

tall garnet
#

If they have a saved Payment Method you can show the customer those details after authentication and confirm the payment with the one they choose.

gentle flame
#

thanks y'all are the best!