msonowal
msonowal

Reputation: 1687

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

I am getting the same response for both success and fail transaction I am on a testing sandbox mode and using hosted checkout method and my order is recurring billing here is my response from 2checkout

'sid' => '101346602',
  'middle_initial' => '',
  'li_0_name' => 'Business_3_8.00',
  'key' => 'F22EBC18AB05AAC86905E706410FCF0F',
  'state' => 'AS',
  'email' => '[email protected]',
  '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',

Upvotes: 1

Views: 811

Answers (2)

Malik Umer
Malik Umer

Reputation: 64

Used this card for failed transactions

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

For more information Take a look at https://www.2checkout.com/documentation/libraries-php-tutorial

Upvotes: 1

wtrmLn
wtrmLn

Reputation: 121

The following card info will cause a failure in sandbox:

CC# 4333433343334333 MM / YYYY 10 / 2020 CVV 123

I just verified this myself, which test card data were you using?

Upvotes: 0

Related Questions