#WilliamD-payments

1 messages · Page 1 of 1 (latest)

spice jasper
cobalt swallow
#

Is it possible to use my own UI for checkout and still be able to implement support for Apple and Google Pay? My platform runs a RESTful API and I plan to handle payments on my back-end using the API for Node

spice jasper
#

You can create your own UI, but we still recommend you use our elements in order to be PCI compliant

cobalt swallow
#

Okay, so what I need to do is:

  1. Create PaymentIntent as soon as the client requests to make a deposit into their virtual account
  2. Update PaymentIntent with payment instrument once the client has selected a payment method and provided the details
  3. Obtain payment status
    Is that correct?
spice jasper
#

Let me add in a bit more detail:

  1. Create the Payment Intent as soon as the client requests to make the deposit
  2. Surface the Stripe element of your choice to collect payment information
  3. When they submit their info, you will confirm the Payment Intent
  4. You'll be notified of success/failure through a webhook, or you can retrieve the Payment Intent to check the status
cobalt swallow
#

Okay, thanks

#

The diagram in the docs for creating a PaymentIntent (server-side) mentions redirection (I assume 3D password/security), how does this happen serverside?

spice jasper
#

That part of the diagram is from the confirmation of the Payment Intent, not creation. This guide does confirmation client-side, not server-side

cobalt swallow
#

The title says "Create a PaymentIntent (server-side)"

#

Do I need to redirect the client to an external website for additional confirmation?

spice jasper
#

Sorry that's misleading - that diagram is meant to represent the whole payment flow. Creating the Payment Intent just covers the top part of that diagram

#

If you use stripe.confirmPayment then we handle that redirection/surfacing the modal to ask for authentication for you

cobalt swallow
#

I see. Is it possible to use confirmPayment server-side?
E.g. client sends payment instrument information to my server -> my servers sends payment details to Stripe API

spice jasper
#

Is there a specific reason you want to do this?

#

It is possible, but there are a number of limitations, and it is a more complicated flow

cobalt swallow
#

Okay, thank you for the information. I will then most likely use your client-side library to handle payment confirmation

spice jasper
#

👍 Glad to hear it!