#bookmypnr
1 messages · Page 1 of 1 (latest)
hi! an example of what exactly?
makes sense, so yes you can use price_data for that. What have you tried so far and what problem do you have?
success_url=xyz.com?status=success&line_items[0][price_data]=price_data: {currency: 'eur',product:'orderid_1234',unit_amount:2.00}&line_items[0][quantity]=1&mode=payment
but it doesnot work
yep it wouldn't since that is JSON and the API does not accept JSON. Why are you forming the URL-encoded POST data like that instead of using one of our client libraries?
but for example it would look like items[0][price_data][unit_amount]=200&items[0][price_data][product]=orderid_1234&items[0][price_data][currency]=eur if you were doing it this way.
client libraries?
Let me check with client libraries after sometime, as per above mention example when I used success_url=https://xyz.com?status=success&items[0][price_data][unit_amount]=2&items[0][price_data][product]=orderid_1234&items[0][price_data][currency]=eur&line_items[0][quantity]=1&mode=payment
it still gives 400 bad request