Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Contributor
Posts: 20
Registered: ‎01-08-2013

Re: Silent Post Method

And my use case is like i am generating invoice as html and sending a link for the same to 

my customers there i'll be redirecting it to authorize.net's hosted payment form 

 

before redirecting from customer to authorize.net my customers will have my merchant account details,

i wanted to avoid having my customer access those credentials..

 

 

Kindly help..

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Silent Post Method

My question is what if we dont click the link on the hosted receipt page.?

then any code on your page will not get call.

 

And i have even gone through the silent post method which solves my above question. but, again it needs a URL which is static in my case i cant have a static URL to track done the status,

If you have a URL that get change on every orders, just DO NOT set ANY valid relay response URL on the merchant account.

 

before redirecting from customer to authorize.net my customers will have my merchant account details,

i wanted to avoid having my customer access those credentials..

Not sure what you mean. how would they have you merchant account credentials/detail?

 

Contributor
Posts: 20
Registered: ‎01-08-2013

Re: Silent Post Method

Oh! there's some confusion with ur answer.

Let me clarify,

 

 

1. We are on hosted Payment_Form (SIM API)

    - Customer fills in form and clicks submit 

    - before going to reciept page can i get details of transaction made on STATIC address.??

 

 

2. on receipt page we can have a redirect buton by clicking it am geting all details accurately..

  - No problem..

 

 

 

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Silent Post Method

1)Not sure about before(could be the same time), but silent post will get call when a transaction is created.

 

2)Only when silent post works, you might be better off with relay response.

Contributor
Posts: 20
Registered: ‎01-08-2013

Re: Silent Post Method

Ok,

 

 

I just wanted to confirm whether,

i can give silent post url on merchant interface directly, an absolute address like the following..?

 

http://localhost/ServerIntegration/ServerIntegration/TestingValues.php

As am working on local system..

 

 

Posts: 1,609
Topics: 15
Kudos: 209
Solutions: 121
Registered: ‎06-23-2011

Re: Silent Post Method

The silent post page has to be publicly accessible or Authorize.net can't get to it. Localhost isn't going to work. Get a cheapo hosting account somewhere and set up a page that logs posts. Something like this, if using PHP:

 

$logfile = "{$_SERVER['DOCUMENT_ROOT']}/logs/callback.txt";
$handle = fopen($logfile, 'a');

foreach (array('fields', 'you', 'do', 'not', 'want', 'to', 'log') as $key)
    unset($_POST[$key]);

fwrite($handle, print_r($_POST, true));

 

Contributor
Posts: 20
Registered: ‎01-08-2013

Re: Silent Post Method

Thanks Silent Post Worked!

 

Can i send Silent Post URL via form submit ?

as we do form submit for SIM ( Payment_Form ),

i wanted to add up silent post url with other SIM API hidden elements.

 

if yes, what are the parameter which i should pass via form submit.?

 

 

Regards

Qadeer