cancel
Showing results for 
Search instead for 
Did you mean: 

Accept Hosted Redirect stuck on processing in sandbox

Hello,

We want use Authorize.net Accept hosted form in our website with redirect option i.e we want to send the customer to authorize.net hosted page and once payment is done then want the authorize.net to redirect to our success page. 

We are able to get the hosted page token in sandbox account and the authorize.net page is opening but when we enter test credit card and presses "Pay" button then it gets stuck showing "Processing...", we receive an email with a receipt but the page does not get redirected back to our webpage that we passed in  "hostedPaymentReturnOptions" .
Can some please suggest the solution for the same?

Following are the setting that e are passing to obtain the page token :

var setting0 = new ApiContracts.SettingType();
    setting0.setSettingName('hostedPaymentReturnOptions');
    setting0.setSettingValue('{\"showReceipt\": true, \"url\":\"https://f7d9-103-15-66-85.ngrok-free.app/auth/cash-in/success\", \"urlText\":\"Continue\", \"cancelUrl\":\"https://f7d9-103-15-66-85.ngrok-free.app/auth/cash-in/cancel\", \"cancelUrlText\":\"Cancel Pay\"}');

    var setting1 = new ApiContracts.SettingType();
    setting1.setSettingName('hostedPaymentButtonOptions');
    setting1.setSettingValue('{\"text\": \"Pay\"}');

    var setting2 = new ApiContracts.SettingType();
    setting2.setSettingName('hostedPaymentOrderOptions');
    setting2.setSettingValue('{\"show\": false}');

    var setting3 = new ApiContracts.SettingType();
    setting3.setSettingName('hostedPaymentBillingAddressOptions');
    setting3.setSettingValue('{\"show\": false}');

    var setting4 = new ApiContracts.SettingType();
    setting4.setSettingName('hostedPaymentStyleOptions');
    setting4.setSettingValue('{"bgColor": "red"}');
 
We are using Node.js for creating this payment flow.

 

2 REPLIES 2

thanks for sharing it

jonim
Member

Did you find a solution for this?

henrik_donuts
Member