如何在2checkout订单响应中识别失败的交易?

时间:2016-09-12 12:36:47

标签: php laravel-5.2 payment-gateway recurring-billing 2checkout

我对成功和失败的交易都得到相同的响应我正在测试沙箱模式并使用托管结账方法,我的订单是定期结算这里是我的回复来自2checkout

'sid' => '101346602',
  'middle_initial' => '',
  'li_0_name' => 'Business_3_8.00',
  'key' => 'F22EBC18AB05AAC86905E706410FCF0F',
  'state' => 'AS',
  'email' => 'manash149@gmail.com',
  'li_0_type' => 'product',
  'li_0_duration' => 'Forever',
  'order_number' => '9093731870208',
  'lang' => 'en',
  'currency_code' => 'USD',
  'invoice_id' => '9093731870217',
  'li_0_price' => '8.00',
  'total' => '8.00',
  'credit_card_processed' => 'Y',
  'zip' => '781001',
  'li_0_quantity' => '1',
  'cart_weight' => '0',
  'fixed' => 'Y',
  '_token' => 'NK7YGNjpXem5pY7JK9VlYA1rT4cIqgY4EFrv8N81',
  'last_name' => '',
  'li_0_product_id' => '',
  'street_address' => 'asd',
  'city' => 'Guwahati',
  'li_0_tangible' => 'N',
  'li_0_description' => '',
  'ip_country' => 'India',
  'country' => 'IND',
  'merchant_order_id' => '',
  'demo' => 'Y',
  'pay_method' => 'CC',
      'cart_tangible' => 'N',
      'phone' => '9706353416 9706353416',
      'li_0_recurrence' => '1 Month',
      'street_address2' => '',
      'first_name' => 'Manash',
      'card_holder_name' => 'Manash',

2 个答案:

答案 0 :(得分:1)

将此卡用于失败的交易

Credit Card Number: 4333433343334333
Expiration date: 10/2020
cvv:123

更多信息请看 https://www.2checkout.com/documentation/libraries-php-tutorial

答案 1 :(得分:0)

以下信息卡信息会导致沙箱失败:

CC#4333433343334333 MM / YYYY 10/2020 CVV 123

我自己刚验证过,您使用的是哪种测试卡数据?