#Galax-metadata
1 messages · Page 1 of 1 (latest)
yes that's it
That's not possible I'm afraid. Needs to be done with secret keys in a server environment when creating/updating an object
So does it mean that I have to handle the form server side ?
could it be possible to retrieve payment_method_data once I send it ?
Which form?
What APIs are you using? What are you trying to build?
I created a paymentIntent in php
Then I use payment element in stripe js to render the basic card form,
in adddition, I added some custom fields and I need to store them into my database
confirmParams: {
// Make sure to change this to your payment completion page
return_url: "https://127.0.0.1:8000/commande/merci/"+stripeSessionId,
payment_method_data: {
billing_details: {
name: 'Jenny Rosen',
email: 'jenny.rosen@example.com',
phone: '0695411',
}
}
},
I'm wondering if can use the parameter in confirmPayment to retrieve thoses info
ah, like you have your own HTML inputs and want to pass it into the PaymentIntent. And the information you collect is something else that is not just billing details?
makes total sense but it's not something we support unfortunately( there are security concerns with allowing updates to metadata from the client side like that )
you'd have to send the information to your server separately
There is no payment element billing input available yet ?
there is but unfortunately you can't use it
you can use https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails but it only shows up for certain payment methods, and not cards, so it doesn't help
It's showing for bank statement if remember correctly.
As a suggestion, I think it would be cool to have the choice to use some of thoses input to personalized even more to meet our need
Anyway, thanks you, I think I have to find another solution to store my customs fields