cancel
Showing results for 
Search instead for 
Did you mean: 

Passing Transaction ID as url parameter in hostedPaymentReturn URL

Hi,

 

I am using Accept Hosted. I would like to know if I can specify a url parameter in the hostedPaymentReturn URL which is the Transaction ID element value on the receipt page - something like:

 

"settingValue": "{\"url\":\"https://www.mysite.com/continue?receiptID=receiptTransactionId\",\"urlText\":\"Continue\",\"cancelUr..."}"

 

Ideally, I would like to pass the invoicenumber as well - so something like:

 

"settingValue": "{\"url\":\"https://www.mysite.com/continue?invoiceID=receiptInvoiceNumber&receiptID=receiptTransactionId\",\"ur..."}"

 

 

Thanks,

Jayaram

bjayaram1
Member
5 REPLIES 5

You can append your own additional customer specific transaction information values to the continue/return URL or the cancel URL.(Any name-value pairs embedded in the URL should be URL-encoded to ensure correct processing in the form request.) This customer specific information will be passed back to your server, where you can use it to identify the specific customer and transaction that has been processed, when the customer returns.  However, as these setting values are used to obtain a token, which is then used to request a secure form to process a transaction, the Transaction Id, doesn't exist at the time when your name-value pairs were submitted.

 

In addition to or as an alternative you can use Webhooks.

Powered by NexWebSites.com -
Certified Authorize.net developers
NexusSoftware
Trusted Contributor

Yes, I understand what you are saying.

 

My point is, why can't the values be treated as variables and then substituted to construct the URL (and urlencoded) for the Continue button since the elements are present in that same receipt page as the button?

 

"settingValue": "{\"url\":\"https://www.mysite.com/continue?invoiceID=[$receiptInvoiceNumber]&receiptID=[$receiptTransactionId]\......"}"

 

Should I submit this as an enhancement request?

 

Thanks,

Jayaram

Yes, I can see the value of what you are suggesting. You should submit it as an enhancement request.

Powered by NexWebSites.com -
Certified Authorize.net developers

Thanks. Sorry, new user here. How do I do that? Post it in the Ideas forum?

 

Jayaram

Yes, exactly. https://community.developer.authorize.net/t5/Ideas/idb-p/ideas

Powered by NexWebSites.com -
Certified Authorize.net developers