0

我正在为我的一个项目使用 Cyber​​source 支付网关。

在沙盒模式下,当我以低于 2000 美元的价格付款时,会出现如下错误:

{
  "utf8": "✓",
  "req_card_number": "xxxxxxxxxxxx0004",
  "req_locale": "en",
  "signature": "CsAocZRprW4m/SZQmaFLLiG7FQ55LVOrd5oQ342Ikr0=",
  "req_card_type_selection_indicator": "1",
  "req_bill_to_surname": "test",
  "req_bill_to_address_city": "test",
  "req_card_expiry_date": "02-2020",
  "req_bill_to_address_postal_code": "12231",
  "reason_code": "203",
  "auth_response": "303",
  "req_bill_to_forename": "test",
  "req_payment_method": "card",
  "request_token": "Ahj77wSTIH0d5owGkfErEUuPy7nKACS4/LucoNII9TAgCky9JMvRiundKAOkyB9HeaMBpHxKwAAA9APe",
  "req_amount": "1200",
  "req_bill_to_email": "test@trext.com",
  "transaction_id": "5321677908746496504107",
  "req_currency": "USD",
  "req_card_type": "002",
  "decision": "DECLINE",
  "message": "We encountered a Paymentech problem: Reason: Processor Decline.",
  "signed_field_names": "transaction_id,decision,req_access_key,req_profile_id,req_transaction_uuid,req_transaction_type,req_reference_number,req_amount,req_currency,req_locale,req_payment_method,req_bill_to_forename,req_bill_to_surname,req_bill_to_email,req_bill_to_address_line1,req_bill_to_address_line2,req_bill_to_address_city,req_bill_to_address_country,req_bill_to_address_postal_code,req_card_number,req_card_type,req_card_type_selection_indicator,req_card_expiry_date,message,reason_code,auth_avs_code,auth_response,request_token,signed_field_names,signed_date_time",
  "req_transaction_uuid": "5b53064a835dd",
  "auth_avs_code": "1",
  "req_bill_to_address_country": "TW",
  "req_transaction_type": "authorization",
  "req_access_key": "b187124a88c434fd83d5c231073d3cff",
  "req_profile_id": "5AFB52E0-B68E-477C-9605-C400061D07E0",
  "req_reference_number": "35",
  "req_bill_to_address_line2": "test",
  "signed_date_time": "2018-07-21T10:09:50Z",
  "req_bill_to_address_line1": "test"
}

超过 2000 美元,它工作正常。
谁能告诉我为什么会这样??它是沙盒模式的一个特点。

4

2 回答 2

1

在 CAS 中,请求不会命中支付处理器,它们会命中模拟器。特定金额以及其他字段用于触发特定响应以进行测试。请参阅:https ://www.cybersource.com/developers/getting_started/test_and_manage/simple_order_api/

于 2018-09-01T19:38:37.070 回答
0

您需要与商家帐户提供商 Paymentech 联系,因为他们拒绝了错误消息中所述的交易。这不是编码问题。

于 2018-07-21T12:50:12.377 回答