username:password
Authorization: Basic *****************
{
"payment_method_options": {
"wechat_pay": {
"client_ip": "127.0.0.1",
"terminal_type": "WEB"
}
},
"return_url": "https://wooshpay.com",
"payment_method_data": {
"type": "wechat_pay",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36",
"referer": "https://buytest.wooshpay.com/",
"billing_details": {
"address": {
"country": "JP"
}
}
},
"currency": "CNY",
"rateId": 623,
"customer_details": {
"address": {
"country": "JP"
}
}
}
curl --location --request POST 'https://apitest.wooshpay.com/v1/checkout/sessions/web/cs_1941093084716597248/confirm' \
--header 'pragma: no-cache' \
--header 'priority: u=1, i' \
--header 'Accept;' \
--header 'Cookie: _ga=GA1.1.345540564.1748231033; ajs_anonymous_id=ac85036a-e4dd-4e2c-99a6-94b215cefce2; _ga_NTLDK3J296=GS2.1.s1748568701$o9$g0$t1748568701$j60$l0$h0; _gcl_au=1.1.2138636008.1748231033.1522643373.1749037675.1749037674; _ga_PLHJZ2KTSG=GS2.1.s1749626768$o46$g1$t1749626790$j38$l0$h0' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"payment_method_options": {
"wechat_pay": {
"client_ip": "127.0.0.1",
"terminal_type": "WEB"
}
},
"return_url": "https://wooshpay.com",
"payment_method_data": {
"type": "wechat_pay",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36",
"referer": "https://buytest.wooshpay.com/",
"billing_details": {
"address": {
"country": "JP"
}
}
},
"currency": "CNY",
"rateId": 623,
"customer_details": {
"address": {
"country": "JP"
}
}
}'
{}