Custom Checkout #577
-
Hi, I'm kind of unexperienced in this ecommerce field, so I'm asking for a little guide here, having tried to comprehend it from the developer wiki but failed. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Check out these docs: https://developers.swell.is/frontend-api/payments#stripe-klarna-ideal-bancontact-integration |
Beta Was this translation helpful? Give feedback.
-
Maybe I've been inaccurate, I'll try to explain myself better. Let's say I have a cart with some products on it, what should be the process? Update the cart with the billing info and then submit the order? I rendered a stripe card element on the summary form page, where the client gives all his infos to process the order. For example, how do I process the payment, will it process itself as the order is submitted or do I need to do anything else? |
Beta Was this translation helpful? Give feedback.
@Raigeku that's correct, you update the cart with the billing info and then create an order with the cart ID using either the frontend or backend API.
Submitting an order from a cart is done with an HTTP request like this:
Or using the frontend API, like this: https://developers.swell.is/frontend-api/orders#submit-an-order
Once the cart has the correct billing info, it will charge the card immediately or not depending on your settings