PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, November 11, 2022

[FIXED] How to get order id or any reference id on successful payment authorize.net SIM Method

 November 11, 2022     authorize.net, payment-gateway, php     No comments   

Issue

I am integrating Authorize.net Payment gateway (SIM Method) to my website. I have actually integrated it. But I am facing some problem in verifying the successful payment in relay response. As in most of the payment we pass an orderid or a reference number which in turn we can use to verify the particular order is complete. But how we can implement this on Authorized.net SIM method? I am using relay response to get the details of transaction.


Solution

The Authorize.net SIM API that you are referring to is deprecated and is replaced by the Accept Hosted method.

Using ths SIM API, the Payment Gateway Response contains the x_response_code, the value of which indicates the overall status of the transaction.

  • 1 - Approved
  • 2 - Declined
  • 3 - Error
  • 4 - Held for Review

There are also the following SIM API Payment Gateway fields returned in the response:

  • x_trans_id: The payment-gateway-assigned identification number for the transaction
  • x_invoice_num: The merchant-assigned invoice number for the transaction. Format: 20-character maximum (no symbols)
  • x_po_num: The merchant-assigned purchase order number. Format: 25-character maximum (no symbols)


Answered By - Nexus Software Systems
Answer Checked By - David Goodson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing