Skip to content

Instantly share code, notes, and snippets.

@1ou
Created October 11, 2019 09:52
Show Gist options
  • Save 1ou/d807ef46d3d2a18ddb4cd1911245f98a to your computer and use it in GitHub Desktop.
Save 1ou/d807ef46d3d2a18ddb4cd1911245f98a to your computer and use it in GitHub Desktop.
Curl
curl -X POST \
https://dev.pay.viralpay.es/api/v1/transaction/payment \
-H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJtZXJjaGFudCJdLCJleHAiOjE1NzA4MDQ4MjksImF1dGhvcml0aWVzIjpbIlJPTEVfTUVSQ0hBTlQiXSwianRpIjoiYjVlM2RhNTctY2NhNS00YzFkLWFkNGYtMTI5YjcxNGViNWQzIiwiY2xpZW50X2lkIjoiZ1hlVHhRcHlMVG13UGI3dCJ9.gENgdyLH43gZSgGiW1SGg5eadGyjvw9ylrEIFwVj86ndhlwPwn69xDRHJvu1cTjEFMNQNMoUCuvgTCq04X9ZJCgMI-DwCIwVk4u-lmoV3PHdNdz8qqNQSXA8eP2mUwupZFyZcIHuLX3RslfF-MzS5OoF3dheGCBwWewAcHMDbNL75yNH9rOKXAv9nSJnPGYfDNY_ZMgtkrBfTECoIemuYmu0DPhfnfVFdTTtUvh5mp1tefgOLIhwnTNnn4f53mr8EtwgihhPyWz2CErc_-wUL283Vzwq33H9NNHapH_OItD_g1LExMVT_qJK-Ew4awh9wv08AFHiPkrXQz58tygFwQ' \
-H 'Content-Type: application/json' \
-d '{"address":{"addressLine1":"Address","city":"City","country":"AR","state":"R","zipCode":"630092"},"amount":36000,"card":{"cardPrintedName":"Anton Putin","creditCardNumber":"4242424242424242","cvv2":"123","expireMonth":"10","expireYear":"2019"},"contact":{"cellPhone":"","email":"[email protected]","phone":""},"currency":"EUR","customerId":"13","customerInfo":{"birthday":"","firstName":"","lastName":""},"ipAddress":"127.0.0.1","merchantId":1,"merchantOrderId":"815","orderDescription":"","paymentSystem":"stripe","paymentType":"card"}'
Response: 200
{
"status": "SUCCEEDED",
"message": "Successful transfer",
"orderId": "644",
"paymentIntentSecretId": "pi_1FSKibFzsdn1sx6TmcfIGOf3_secret_niWd8Qa2OkUvJQ9sJNjH786pP",
"paymentIntentId": "pi_1FSKibFzsdn1sx6TmcfIGOf3",
"url": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment