#abl - Metered Billing
1 messages · Page 1 of 1 (latest)
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).
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 🙂
You're confirming server-side for on-session payments? Why aren't you confirming client-side with Stripe.js?
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?
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?
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
Gotcha. You should look at this guide: https://stripe.com/docs/payments/accept-a-payment
Thanks! Is there a way so they don't have to re-enter all their payment info again?
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.
We expose various properties on the Payment Method like last4 and brand and whatnot so you can build the UI you want for selecting a saved method of payment: https://stripe.com/docs/api/payment_methods/object#payment_method_object-card-brand
thanks y'all are the best!