如何在2checkout订单响应中识别失败的事务


How to identify a Failed transaction on 2checkout order response?

对于成功和失败的交易,我得到了相同的响应。我在测试沙盒模式并使用托管结帐方法,我的订单是循环计费,这是我从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',

使用该卡进行失败的交易

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

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

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

CC # 4333433343334333年10月/2020年CVV 123

我刚刚自己验证了一下,你用的是哪个测试卡数据?