REQUEST 1:
accept: application/json
user-agent: Mozilla/5.0 (Linux; Android 9; CPH2077) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.152 Mobile Safari/537.36
content-type: application/x-www-form-urlencoded
origin: https://js.stripe.com
referer: https://js.stripe.com/
accept-language: vi,en-US;q=0.9,en;q=0.8
[SIZE=4][QUOTE]Sau khi request 1 xong json_decode ra "id"
Ví dụ: pm_1IgLnXKgFdgRHaCcB4zA8lGn[/QUOTE][/SIZE]
[SIZE=5][B]REQUEST 2:[/B][/SIZE]
[LIST]
[*][SIZE=4][B]Url[/B]: [/SIZE]
[/LIST]
[SIZE=4]https://payments.bigcommerce.com/api/public/v1/orders/payments
[/SIZE]
[LIST]
[*][SIZE=4][B]Header[/B]:[/SIZE]
[/LIST]
Host: payments.bigcommerce.com
Connection: keep-alive
Accept: application/json
Authorization: JWT eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MTg0NjA1OTMsIm5iZiI6MTYxODQ1Njk5MywiaXNzIjoicGF5bWVudHMuYmlnY29tbWVyY2UuY29tIiwic3ViIjoxMDAxMTkxMDYyLCJqdGkiOiI0MDg0YjY4NC0xN2RhLTQ2NzgtODBlOC1kYzI2ZWIyOTI4NGEiLCJpYXQiOjE2MTg0NTY5OTMsImRhdGEiOnsic3RvcmVfaWQiOiIxMDAxMTkxMDYyIiwib3JkZXJfaWQiOiIxMzA5NDEiLCJhbW91bnQiOjI3OTMsImN1cnJlbmN5IjoiVVNEIiwic3RvcmVfdXJsIjoiaHR0cHM6Ly92aWFzY3JlZW5zLmNvbSIsImZvcm1faWQiOiJ1bmtub3duIn19.iErKzFv9wDmLj5D74HUt3sbPLI9gjZIIH_SLdr7WENU
User-Agent: Mozilla/5.0 (Linux; Android 9; CPH2077) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.152 Mobile Safari/537.36
Content-Type: application/json
Origin: https://viascreens.com
Referer: https://viascreens.com/
Accept-Language: vi,en-US;q=0.9,en;q=0.8
[SIZE=4][/SIZE]
[LIST]
[*]Body:
[/LIST]
{"customer":{"geo_ip_country_code":"VN","session_token":"60723e89aafeaf08be1af2f183f54d7a54bed9e2"},"notify_url":"https://internalapi-1001191062.mybigcommerce.com/internalapi/v1/checkout/order/130941/payment","order":{"billing_address":{"city":"New York","country_code":"US","country":"United States","first_name":"Quan","last_name":"Mac","phone":"9123738273","state_code":"NY","state":"New York","street_1":"New York","zip":"10001","email":"[email protected]"},"coupons":[],"currency":"USD","id":"130941","items":[{"code":"ccad05de-be1c-481d-9459-117e02aa2749","variant_id":426291,"name":"Alcatel 1S (2020) Privacy Plus Screen Protector","price":2093,"unit_price":2093,"quantity":1,"sku":"N4232095"}],"shipping":[{"method":"DHL eCommerce (5-8 days)"}],"shipping_address":{"city":"New York","country_code":"US","country":"United States","first_name":"Quan","last_name":"Mac","phone":"9123738273","state_code":"NY","state":"New York","street_1":"New York","zip":"10001"},"token":"8eae852fd68f632d32dd0db12fc1bb7b","totals":{"grand_total":2793,"handling":0,"shipping":700,"subtotal":2093,"tax":0}},"payment":{"gateway":"stripev3","notify_url":"https://internalapi-1001191062.mybigcommerce.com/internalapi/v1/checkout/order/130941/payment","vault_payment_instrument":false,"method":"card","credit_card_token":{"token":"[B]id lấy ở request 1[/B]"},"confirm":false},"store":{"hash":"o9pppsyjzh","id":"1001191062","name":"ViaScreens"}}
[B][SIZE=5]Response:[/SIZE][/B]
[SIZE=4]{"status":"error","additional_action_required":null,"three_ds_result":{"token":null},"errors":[{"code":"card_declined","message":"Payment was declined. Please try a different card."},{"code":"card_error","message":"Your card details could not be verified. Please double check them and try again."}]}[/SIZE]
- Header:
accept: application/json
user-agent: Mozilla/5.0 (Linux; Android 9; CPH2077) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.152 Mobile Safari/537.36
content-type: application/x-www-form-urlencoded
origin: https://js.stripe.com
referer: https://js.stripe.com/
accept-language: vi,en-US;q=0.9,en;q=0.8
- Body:
[SIZE=4][QUOTE]Sau khi request 1 xong json_decode ra "id"
Ví dụ: pm_1IgLnXKgFdgRHaCcB4zA8lGn[/QUOTE][/SIZE]
[SIZE=5][B]REQUEST 2:[/B][/SIZE]
[LIST]
[*][SIZE=4][B]Url[/B]: [/SIZE]
[/LIST]
[SIZE=4]https://payments.bigcommerce.com/api/public/v1/orders/payments
[/SIZE]
[LIST]
[*][SIZE=4][B]Header[/B]:[/SIZE]
[/LIST]
Host: payments.bigcommerce.com
Connection: keep-alive
Accept: application/json
Authorization: JWT eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MTg0NjA1OTMsIm5iZiI6MTYxODQ1Njk5MywiaXNzIjoicGF5bWVudHMuYmlnY29tbWVyY2UuY29tIiwic3ViIjoxMDAxMTkxMDYyLCJqdGkiOiI0MDg0YjY4NC0xN2RhLTQ2NzgtODBlOC1kYzI2ZWIyOTI4NGEiLCJpYXQiOjE2MTg0NTY5OTMsImRhdGEiOnsic3RvcmVfaWQiOiIxMDAxMTkxMDYyIiwib3JkZXJfaWQiOiIxMzA5NDEiLCJhbW91bnQiOjI3OTMsImN1cnJlbmN5IjoiVVNEIiwic3RvcmVfdXJsIjoiaHR0cHM6Ly92aWFzY3JlZW5zLmNvbSIsImZvcm1faWQiOiJ1bmtub3duIn19.iErKzFv9wDmLj5D74HUt3sbPLI9gjZIIH_SLdr7WENU
User-Agent: Mozilla/5.0 (Linux; Android 9; CPH2077) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.152 Mobile Safari/537.36
Content-Type: application/json
Origin: https://viascreens.com
Referer: https://viascreens.com/
Accept-Language: vi,en-US;q=0.9,en;q=0.8
[SIZE=4][/SIZE]
[LIST]
[*]Body:
[/LIST]
{"customer":{"geo_ip_country_code":"VN","session_token":"60723e89aafeaf08be1af2f183f54d7a54bed9e2"},"notify_url":"https://internalapi-1001191062.mybigcommerce.com/internalapi/v1/checkout/order/130941/payment","order":{"billing_address":{"city":"New York","country_code":"US","country":"United States","first_name":"Quan","last_name":"Mac","phone":"9123738273","state_code":"NY","state":"New York","street_1":"New York","zip":"10001","email":"[email protected]"},"coupons":[],"currency":"USD","id":"130941","items":[{"code":"ccad05de-be1c-481d-9459-117e02aa2749","variant_id":426291,"name":"Alcatel 1S (2020) Privacy Plus Screen Protector","price":2093,"unit_price":2093,"quantity":1,"sku":"N4232095"}],"shipping":[{"method":"DHL eCommerce (5-8 days)"}],"shipping_address":{"city":"New York","country_code":"US","country":"United States","first_name":"Quan","last_name":"Mac","phone":"9123738273","state_code":"NY","state":"New York","street_1":"New York","zip":"10001"},"token":"8eae852fd68f632d32dd0db12fc1bb7b","totals":{"grand_total":2793,"handling":0,"shipping":700,"subtotal":2093,"tax":0}},"payment":{"gateway":"stripev3","notify_url":"https://internalapi-1001191062.mybigcommerce.com/internalapi/v1/checkout/order/130941/payment","vault_payment_instrument":false,"method":"card","credit_card_token":{"token":"[B]id lấy ở request 1[/B]"},"confirm":false},"store":{"hash":"o9pppsyjzh","id":"1001191062","name":"ViaScreens"}}
[B][SIZE=5]Response:[/SIZE][/B]
[SIZE=4]{"status":"error","additional_action_required":null,"three_ds_result":{"token":null},"errors":[{"code":"card_declined","message":"Payment was declined. Please try a different card."},{"code":"card_error","message":"Your card details could not be verified. Please double check them and try again."}]}[/SIZE]