【发布时间】:2020-03-27 13:39:37
【问题描述】:
2pay.js 有测试模式吗?我正在尝试建立一个集成并收到我的交易被禁止的错误,这让我相信我很遗憾需要等待他们查看 SAQ-A 调查表才能给我测试访问权限......但也许有一个魔法我只是想念的咒语。
我们有一个处于演示模式的帐户。
{
"error_code": "FORBIDDEN",
"message": "You need to contact support in order to have this feature enabled"
}
这是我们提交的请求:
curl --location --request POST 'https://api.avangate.com/rest/6.0/orders/' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'X-Avangate-Authentication: code="xxx" date="2020-03-24 23:52:45" hash="yyy"' \
--data-raw '{
"BillingDetails": {
"FirstName": "Joe",
"LastName": "Sullivan",
"Address1": "123 Easy St",
"City": "Anywhere",
"State": "GA",
"Zip": "70403",
"CountryCode": "US",
"Email": "somebody@gmail.com"
},
"Currency": "usd",
"ExternalReference": "REST_API_AVANGTE",
"Items": [
{
"Code": "xxx",
"Quantity": "1"
}
],
"Language": "en",
"PaymentDetails": {
"Currency": "USD",
"PaymentMethod": {
"EesToken": "190f2d9c-0bbc-4ad0-a902-770adb8e7f90"
},
"Type": "EES_TOKEN_PAYMENT"
}
}'
他们告诉我必须使用TEST 类型,但这会导致PaymentMethod 为空的错误:
{
"error_code": "ORDER_PAYMENT_METHOD_INVALID",
"message": "The payment method [] is not supported."
}
我非常有信心 TEST 类型只与在 PaymentMethod 中使用实际卡片数据有关,就像使用 CC 类型一样。
有人知道是否可以使用 2pay.js 测试代币支付吗?
【问题讨论】:
-
您正在回复包含 JSON 请求的评论。它位于
curl。
标签: 2checkout