@stevencumberbatch it is a logical explanation and in some cases this may be the reason. But not in my case. If you check at the developer console while loading the page, you’ll see a lot of error messages. I’m having the same problem while using Safari (either OS X or iOS X versions). If anyone has any clue, please post it here.
@agustin you are correct. After trying several things and doing some research, it would appear that the postMessage is ignored when the page is loaded (probably because the html component hasn’t fully initialized until after the page is loaded). What I ended up doing is hiding the paypal button on page load and then creating a separate button called Confirm Order. When the user clicks on the Confirm Order button, the postMessage is then sent to the html component and the paypal button appears by using .show() . the user then clicks the paypal button and successfully gets the updated amount. The window is loaded prompting the user to log in via paypal.
May I know how to send a second email as booking reference (date, name, location, etc.) to the customer after payment completed. Should I used IPN? If IPN used, can someone like show the step 1 by 1 because I’m not really type of programming but I still try to learn it.