techead
Honorary Master
**Dummy info used below**
Hi
I'm busy with an exercise which involves creating a payment flow with 4 POST requests.
1. Create Token
2. Create Payment
3. Create Auth
4. Create Capture
I've setup the 4 individual post requests, and in their current form it all works, but it turns out the requirement in more complicated than I thought and need some help.
I'm calling an API in the first request to create a token, based on the supplied credit card details,
I get a green 201 response, so all good in the hood. Response below,
That token is referenced in the 3rd request (which requires some copy-paste) but that isnt an issue right now....
I'm just passing on the info in the 1st request, but it turns out that I actually need to post that request (persons details/credit card info) through a webpage with a Javascript SDK and a secure fields form.
Can someone tell me how I go about posting that same request, but through a web page?
Information for reference
https://developers.paymentsos.com/docs/using-the-secure-fields-form.html
Hi
I'm busy with an exercise which involves creating a payment flow with 4 POST requests.
1. Create Token
2. Create Payment
3. Create Auth
4. Create Capture
I've setup the 4 individual post requests, and in their current form it all works, but it turns out the requirement in more complicated than I thought and need some help.
I'm calling an API in the first request to create a token, based on the supplied credit card details,
Code:
{
"token_type": "credit_card",
"credit_card_cvv": "123",
"card_number": "4111111111111111",
"expiration_date": "10/29",
"holder_name": "John Mark",
"billing_address": {
"country": "USA",
"state": "NY",
"city": "NYC",
"line1": "fifth avenue 10th"
}
}
I get a green 201 response, so all good in the hood. Response below,
Code:
{
"token": "aa89d44f-db79-4d0d-9562-a5b1745255a0",
"created": "1551805228973",
"pass_luhn_validation": true,
"encrypted_cvv": "YmI1MTQ3ZjctYWU2Zi00Mjk3LThhOTYtOTQ5NjcwNjEyYWMwY3Z2X2RlbGltaXRlcnZhdWx0OnYxOm9HeDdpaWxicVV4YU5mVEtqU05zMFYyYWphenhIZUwreDV6M3V6YldSU2VvTWtjZ2pkUkdFN2RWSUhmdDVGcThsUXRaTyt4U3FUU3BrV1NCc25TYUFud0FmOFN6NXpTclVQTkdFV2hN",
"token_type": "credit_card",
"type": "tokenized",
"state": "created",
"bin_number": "411111",
"vendor": "VISA",
"card_type": "CREDIT",
"issuer": "JPMORGAN CHASE BANK, N.A.",
"level": "",
"country_code": "USA"
}
That token is referenced in the 3rd request (which requires some copy-paste) but that isnt an issue right now....
I'm just passing on the info in the 1st request, but it turns out that I actually need to post that request (persons details/credit card info) through a webpage with a Javascript SDK and a secure fields form.
Can someone tell me how I go about posting that same request, but through a web page?
Information for reference
https://developers.paymentsos.com/docs/using-the-secure-fields-form.html