#Mossy
1 messages · Page 1 of 1 (latest)
Which specific part of that are you struggling with?
I want the ability within payment elements to declare that my payment is gift aidable.
But what does that mean? Just some kind of flag on the payment? Or are you increasing the amount?
Sorry it'll be a boolean value at the point of payment
I understand we can capture metadata within the payment intent, but can you update the payment intent without forcing a re-render of the payment elements?
Ok, and what does your Stripe integration look like? Do you create an intent before you render the Payment Element?
That's correct
Sure, you can do that fine if you're simply updating metadata. If you were updating payment critical params like currency, amount then you can reload the PE: https://stripe.com/docs/js/elements_object/fetch_updates
Then you likely just need to trigger a backend call to update the PI when the checkbox is checked etc
OK and we are still PCI compliant?
Unless you're passing some card details over the API, yep