#__rob1986__
1 messages · Page 1 of 1 (latest)
Payment Links support custom amounts: https://stripe.com/docs/payments/checkout/pay-what-you-want
As for custom data, depends what you need to pass and where it needs to be persisted
its just a reference number so the client can easily link the payment to an order in the system
it needs to be stored against the transaction in stripe
looking at the link your provided, it appears that i would need to make use of the sdk, is that correct?
it also says i would need to create the product
Not for Payment Links no, you can create them in the Dashboard
You'd need to create a single 'custom amount' product, yes
does every stripe transaction require a product?
or can i just , even if its entirely via the api, just pass in an amount, or does the amount need to be attached to a product?
Yes if you're using hosted UIs
You can do that if using Payment Intents & Elements, but then there's more integration work
so if i want to pass a custom amount, and custom data to stripe for processing without the need to create products, does that mean i would need to read up on Intents and Elements?
Yep!
But again, it'd be a single reusable Product object for custom amounts
You wouldn't be creating a unique Product object each time
right ok... that helps massively! thanks! final question, what is the min php requirement for the sdk?
Depends on SDK version, but 5.6.0 for the latest: https://github.com/stripe/stripe-php#requirements
Perfect, thanks @fresh fiber help is appreciated!