#Galax-metadata

1 messages · Page 1 of 1 (latest)

unborn hinge
#

Hey there. I assume you mean client-side with Stripe.js?

plain citrus
#

yes that's it

unborn hinge
#

That's not possible I'm afraid. Needs to be done with secret keys in a server environment when creating/updating an object

plain citrus
#

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 ?

unborn hinge
#

What APIs are you using? What are you trying to build?

plain citrus
#

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

marble nymph
#

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

plain citrus
#

There is no payment element billing input available yet ?

marble nymph
#

there is but unfortunately you can't use it

plain citrus
#

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