Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Body format for Stripe POST operations

I'm accessing the stripe API directly with the REST API (not using a library) but, surprisingly, I can't find documentation on the appropriate body format post data.

Does Stripe expect JSON or form-encoded pairs?

like image 989
frigon Avatar asked Dec 27 '13 22:12

frigon


1 Answers

Form encoded pairs

The docs for cURL provide good examples. They're just feeding form encoded key/value pairs via the -d switch via cURL on the command line. Just make sure you use your test secret key so you don't screw up any live data. Then you can play around all you want.

The returned data is JSON.

like image 173
Andy Jones Avatar answered Sep 27 '22 22:09

Andy Jones