#B33fb0n3

1 messages ยท Page 1 of 1 (latest)

valid ironBOT
pliant merlin
#

What is a 'custom order'? What data do you need to track/store?

scenic linden
#

I custom order contains the basic item and you can order extras to it. For example an ice: you can define what size the ice cream should have (thats the basic product). Then you can choose if you want sprinkles with it, for example. Or you want to have sauce with it and so on.

pliant merlin
#

Got it. The only API that supports line items is Checkout (Payment Intents does not). You'll likely need to create your own API/use a third-party if you want to create 'orders' in that respect.

scenic linden
#

yeah, I would build my api around it, because of private keys and so on. The customer can only buy one item at once. I forgot to say this. I thought the example shows this (normaly if u go alone and buy ice cream, u only buy one xD)

#

I know, that you can define the price for a Payment Intent. If the customer choose the extras on the website and the price will be calculated in frontend. Than the paymentintent will be created for the frontend price?

pliant merlin
#

Sure, then I guess you'd use a direct Payment Intents integration with Elements where you charge for the total amount of your customer order

scenic linden
#

ah nice, thanks! ๐Ÿ˜„

#

do you have a link to the docs?

pliant merlin
scenic linden
#

where do I define the price?

pliant merlin
scenic linden
#

oh when I just use these payment elements, I can do everything around it and just on the loading from the elements I use the created paymentintent, right?

pliant merlin
#

Exactly, you pass the client_secret from your created PI to initiate the Payment Element

#

So in your scenario I guess you'd have a cart where they configure their ice cream, and then they proceed to a checkout/payment page where you create the Payment Intent with their cart total and initialise the Payment Element to take payment

scenic linden
#

alright, thats great. Thanks for the help ๐Ÿ™‚

#

๐Ÿ‘

pliant merlin
#

It's in beta right now, but you can sign up for early access

scenic linden
#

wow, that looks beautiful ๐Ÿ˜ฎ

#

I gonna test this and else I go back to the payment elements ๐Ÿ™‚

pliant merlin
#

Well you need to be given access to that (via the form on that page). But it leverages Payment Element too for the actual payment

scenic linden
#

ah ok. It's like the combination from checkout and payment elements, to provide multiple items and also easy workflow to proceed right?

pliant merlin
#

Exactly! A prebuilt cart UI that integrates with Payment Element to facilitate the payment