What am I doing wrong?
{
"getHostedPaymentPageRequest": {
"merchantAuthentication": {
"name": "26qQeN7z",
"transactionKey": "aaaaaaaaaaaaaaaa"
},
"transactionRequest": {
"transactionType": "authCaptureTransaction",
"amount": 5
},
"hostedPaymentSettings": {
"setting": [
{
"settingName": "hostedPaymentIFrameCommunicatorUrl",
"settingValue": "{\"url\":\"https://test.yourweddingcompany.com/ywc_communicator.php\"}"
},
{
"settingName": "hostedPaymentPaymentOptions",
"settingValue": "{\"cardCodeRequired\":true}"
},
{
"settingName": "hostedPaymentShippingAddressOptions",
"settingValue": "{\"show\":true,\"required\":true}"
},
{
"settingName": "hostedPaymentBillingAddressOptions",
"settingValue": "{\"show\":true,\"required\":true}"
},
{
"settingName": "hostedPaymentCustomerOptions",
"settingValue": "{\"showEmail\":true,\"requiredEmail\":true}"
},
{
"settingName": "hostedPaymentOrderOptions",
"settingValue": "{\"show\":true,\"merchantName\":\"Your Wedding Company\"}"
}
]
}
}
}Here is the resulting DOM.
Note that it has loaded the payment form, but the form does not reference hostedPaymentIFrameCommunicatorUrl:
Solved! Go to Solution.
04-24-2018 11:47 PM - edited 04-24-2018 11:55 PM
I solved the problem. Everything below is correct.
The intent had been to display the payment form once it communicated its size via the communicator page.
Setting display:none on the iframe's container somehow prevents the payment form from loading the communicator url.
Using visibility:hidden instead fixes the problem.
04-25-2018 08:21 AM
I solved the problem. Everything below is correct.
The intent had been to display the payment form once it communicated its size via the communicator page.
Setting display:none on the iframe's container somehow prevents the payment form from loading the communicator url.
Using visibility:hidden instead fixes the problem.
04-25-2018 08:21 AM