Reply
Member
Posts: 9
Registered: ‎03-30-2017

Re: Accept Hosted form return options

Hi @denlopez88

 

When I am using this json and gerating a token for hosted form which is used in an iframe. I am bassing the billTo info same as you mentioned here but same is not appearing on Transaction Details section in authorize.net.

 

Please check this message :

 
 
Thanks in advance for your help!

 

Member
Posts: 8
Registered: ‎06-13-2017

Re: Accept Hosted form return options

@"'hostedPaymentSettings': {
'setting': [{
'settingName': 'hostedPaymentBillingAddressOptions',
'settingValue': '{\'show\': true, \'required\':false}'
}, {
'settingName': 'hostedPaymentButtonOptions',
'settingValue': '{\'text\': \'Pay\'}'
}, {
'settingName': 'hostedPaymentCustomerOptions',
'settingValue': '{\'showEmail\':false,\'requiredEmail\':false}'
}, {
'settingName': 'hostedPaymentPaymentOptions',
'settingValue': '{\'cardCodeRequired\':true}'
}, {
'settingName': 'hostedPaymentReturnOptions',
'settingValue': '{\'url\':\'" + _returnToStoreUrl + @"\',\'urlText\':\'" + _returnButtonText + "\',\'cancelUrl\':\'" + _cancelUrl + @"\',\'cancelUrlText\':\'Cancel\'}'
}, {
'settingName': 'hostedPaymentSecurityOptions',
'settingValue': '{\'captcha\': false}'
}, {
'settingName': 'hostedPaymentShippingAddressOptions',
'settingValue': '{\'show\':false,\'required\':false}'
}, {
'settingName': 'hostedPaymentStyleOptions',
'settingValue': '{\'bgColor\': \'EE00EE\'}'
}]
}";

 

Why am I getting this error?:

System.Exception: Response Code: E00003 - The element 'setting' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'cancelUrl' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.

 

As far as I can tell I am following the specs but it's telling me that cancelUrl is not valid

All Star
Posts: 699
Registered: ‎11-03-2016

Re: Accept Hosted form return options

Hi @innosoft2fusion,

 

Why do you have both the single quotes and double quotes in the URL settings? Only double quotes are valid in a JSON string.

Member
Posts: 9
Registered: ‎07-11-2019

Re: Accept Hosted form return options

This method is great. However, If I have 3 orders going through at the same time, and I create 3 webhooks, even if I record the webhookIDs, and 2 users cancel their order on the payment page or just close the window, the auth.net system sends the webhook notification of success to ALL three webhooks.

so, there is still no definite way to identify for which merchan the notificaiton is for.

New Member
Posts: 1
Registered: ‎08-01-2019

Re: Accept Hosted form return options

Hi, I have been using the iFrame approach. The showReceipt value was set to false. After 'pay' it does not proceed further and just stay there. Is it that after pay it is sending a response which has transaction details?

Member
Posts: 6
Registered: ‎08-07-2019

Re: Accept Hosted form return options

This is my situation exactly.  I'm sure there's something that I'm not understanding... just not sure what it is right now.

 

Thanks.

Highlighted
Member
Posts: 6
Registered: ‎08-07-2019

Re: Accept Hosted form return options

Thought maybe I should be more specific / clearer.

 

  • I'm using iframe
  • hostedPaymentReturnOptions.showReceipt is set to false, therefore no url defined
  • hostedPaymentIFrameCommunicatorUrl.url is defined

 

When I click on the "Pay" button it changes to a muted "Processing..." and just hangs there like that. 

 

This seems like it should be so simple.  Suggestions / hints / advice would be oh so greatly appreciated.

 

Thanks.