Reply
Member
Posts: 6
Registered: ‎10-10-2017

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

Posts: 416
Topics: 0
Kudos: 87
Blog Posts: 0
Ideas: 0
Solutions: 33
Registered: ‎04-28-2017

Re: Passing Transaction ID as url parameter in hostedPaymentReturn URL

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
Member
Posts: 6
Registered: ‎10-10-2017

Re: Passing Transaction ID as url parameter in hostedPaymentReturn URL

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

Posts: 416
Topics: 0
Kudos: 87
Blog Posts: 0
Ideas: 0
Solutions: 33
Registered: ‎04-28-2017

Re: Passing Transaction ID as url parameter in hostedPaymentReturn URL

[ Edited ]

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
Member
Posts: 6
Registered: ‎10-10-2017

Re: Passing Transaction ID as url parameter in hostedPaymentReturn URL

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

 

Jayaram

Highlighted
Posts: 416
Topics: 0
Kudos: 87
Blog Posts: 0
Ideas: 0
Solutions: 33
Registered: ‎04-28-2017

Re: Passing Transaction ID as url parameter in hostedPaymentReturn URL

[ Edited ]

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

Powered by NexWebSites.com -
Certified Authorize.net developers