#CoderBee-PaymentIntent

1 messages · Page 1 of 1 (latest)

rare lintel
languid pendant
#

whats the issue?

rare lintel
#

👋 I am back. @ocean kite can you elaborate on your issue?

ocean kite
#

Good day all

#

I am trying to pass the name and email of the user making that payment in the metadata.

For example I make a payment on the platform, I want to send my name and email to stripe alongside the transaction details

rare lintel
#

You should be able to do that! If you can provide the request id (req_xxx) I can take a look!

ocean kite
#

I don't get sir

rare lintel
ocean kite
#

Ok

#

On that now

#

That's what I got from the link

rare lintel
#

That /v1/prices is the API you called?

#

I believe it should be a /v1/payment_intents

ocean kite
#

No it's not that, it's the first under the 7th January

rare lintel
#

If you select it, find me the request id (req_xxx) on the screen

#

Ctrl+F and search for "req_"

ocean kite
#

When clicked on, it brought out the json response as sent above

#

There was no req but instead a pi

rare lintel
#

okie, just pate here the pi_xxx

ocean kite
#

pi_3KF4pBEWmv2fdqcq1dq4DRhR

#

From my code above, you can see receipt email which is the customer email, now I want to pass the customer name too

rare lintel
#

well you haven't passed in metadata yet

ocean kite
#

Exactly

#

I can't find how to do that

rare lintel
ocean kite
#

And what key is expected to capture name

rare lintel
#

for PHP

"metadata" => ["customer_name" => "a_string_here"]
#

you can name the key whatever name you want. Here is an example of "customer_name"

ocean kite
#

Exactly what I needed, I will try this out

#

Thank you sir ☺️