I am in the process of setting max character limits for fields that we will let our customers modify to meet their needs. When I send this over as a merchant name using the Java SDK for Accept Hosted:
"Dunder Mifflin How much text can we fit in here before it cannot fit anymore"
I get the following error:
Response Code: [E00013] Response Text: [Invalid Setting Value. hostedPaymentOrderOptions: maximum length is 100.]
Now correct me if I'm wrong but that is LESS than 100. It's 76 characters. I'm not even close to the maximum.
The same issue happens with the 'Pay' button text:
"Pay Now With a 50 Character Limit On The Label"
Response Code: [E00013] Response Text: [Invalid Setting Value. hostedPaymentButtonOptions: maximum length is 50.]
That is 46 characters. Definetely closer to the maximum but not over it yet.
So what is going on here? Is the API lying to me? Is something out of date? I need some concrete values so I can continue to build my solution.
Thanks.
Edit:
And maybe this will help. For the code I'm using your API to do everything:
SettingType buttonSettings = new SettingType();
buttonSettings.setSettingName("hostedPaymentButtonOptions");
JSONObject buttonSettingsJSON = new JSONObject();
buttonSettingsJSON.put("text", getPayButtonText() );
buttonSettings.setSettingValue( buttonSettingsJSON.toString() );
ArrayOfSetting settingsList = new ArrayOfSetting();
settingsList.getSetting().add(buttonSettings);
GetHostedPaymentPageRequest requestToAuthNet = new GetHostedPaymentPageRequest();
requestToAuthNet.setHostedPaymentSettings(settingsList);
Solved! Go to Solution.
12-31-2018 01:55 PM - edited 12-31-2018 02:03 PM
This is actually a really confusing behavior,I ran into something similar while testing. Even though the API error mentions limits like 100 or 50 characters, it seems the validation is not just based on the visible text field itself.
04-21-2026 07:23 PM