Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Please find below sample of requests and responses in different languages to submit a credit card order.

10.1. cURL

Request:

Code Block
curl -d "secret=input_your_secret&pbtoken=input_your_token&order=1234567890&payment_method=C&product_name=Product+Test+(1+license)&customer_name=José+da+Silva&customer_taxid=91051605962&customer_email=josedasilvamyemail.com.br&customer_phone=113328.9999&customer_ip=255.255.255.255&address_street=AvPaulista,+100&address_zip=01311100&address_city=São+Paulo&address_state=SP&amount_brl=3950&cc_installments=1&cc_holder=joaoda+silva&cc_number=4984123412341234&cc_expiration=1219&cc_cvv=123&soft_descriptor=TEST&cc_save=0&cc_prevsaved=&cc_auth=0&param_url=customer_id12345%26newsletter=yes&visitor_id=" -X POST "https://sandbox.pagbrasil.com/api/order/add"

...