#conrad-paymentlinks

1 messages · Page 1 of 1 (latest)

calm topaz
#

I can't think of any solution that doesn't require using either the PaymentLinks or CheckoutSession APIs, or other custom code approaches, I'm afraid.

rotund ore
#

Does the payment link API have capability to accept extra data? I'm not seeing anything on the docs

calm topaz
#

but I guess you actually meant, you wanted the Stripe-hosted page to collect some arbitrary custom information from the customer

rotund ore
#

no I'll collect the data, I just need to submit it

calm topaz
#

which we don't support at all today(but a feature request we're keenly tracking). You'd have to have a web page that collects the info, and then redirects to Checkout/a PaymentLink

#

ok if you have the data then you could add it as metadata. If it's dynamic for each customer though you want to create CheckoutSessions directly I would think

rotund ore
#

yeah it would be unique per order

calm topaz
#

then in that case it probably makes most sense that when the customer is on your site and hits the "Pay now" button for their order, you create a CheckoutSession, pass metadata to it, and then redirect to the CheckoutSession. The metadata can be accessed in the webhooks after the payment. It's the standard integration https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout

rotund ore
#

ah ok, that looks reasonable enough