#hendr1x
1 messages · Page 1 of 1 (latest)
I am working on processing a payment form that has additional form data on the same page.
I was advised I could attach this data to billing_details however I have "address data" that doesn't fit in your fields.
I need to capture this data while dealing with the forced redirect you guys have when running confirmPayment()
Hello 👋
Have you tried setting metadata under confirmParams already?
elements,
confirmParams: {
metadata: {
foo: bar
},
return_url: 'https://example.com',
},
})```
Received unknown parameter: metadata
error from your system
I tried attaching to payment_method_data and got : A processing error occured
Attaching to billing_details = Received unknown parameter: payment_method_data[billing_details][metadata]
Hmm, I see. I guess the only option then would be to call the API to update PaymentIntent to include the metadata before OR after you call confirmPayment
Let me repeat what I said before please...when I started this issue
I have a form that has additional fields I need to capture data from. Currently I lose that data because you guys do a redirect with confirmPayment. I think my only option is to save all data via an ajax call then run confirmPayment. Can you please confirm this is the best approach?
I was told to send that additional data to you and then fetch it...but it seems like you can't accept it
I think my only option is to save all data via an ajax call then run confirmPayment. Can you please confirm this is the best approach?
That's correct. Let me ask a colleague to make sure there aren't any alternatives here that I don't know of.
thank you. Please let me know
Yup just confirmed, metadata is considered a sensitive field. When you call confirmPayment client-side, you're using your public API key.
Since metadata is considered a sensitive field, you can only update metadata with the Secret API key.