PayPal in-context view redirecting not closing window -
i using paypal in-context approach , upon launching paypal in in-context manner, able to:
- log in
- pay items
but after that, paypal redirects me url provide within in-context view? there setting missing make close mini window opens after user pays? documentation doesn't specify/mention on how this. expecting close in-context window when user clicks "pay now" , return control page hosting it.
apologies if detail in question seems light, if further info required please comment , shall try best update.
should mention using sandbox environment.
when using paypal in-context checkout should have functional express checkout flow begin with. there variables cause in-context checkout display standard express checkout. cause issue speaking about. have functional in-context checkout here: http://marshalcurrier.com/paypal/expresscheckout/setdoincontext.php
i tried implement in-context checkout woocommerce plugin on wordpress. didnt work out well, can see checkout looks here: http://marshalcurrier.com/?product=test
for part opening , closing should handled through paypal. why call paypal's script:
for part built plug , play. drop in near end of page:
<form id="mycontainer" method="post" action="/checkout"></form> <script> window.paypalcheckoutready = function () { paypal.checkout.setup('9xkwyx3uhbpb2', { environment: 'sandbox', container: 'mycontainer' }); }; </script> <script src="//www.paypalobjects.com/api/checkout.js" async></script>
then add div id form:
<form method='post' id="mycontainer"><input type="text" name="charge" value="1"/><input type="submit"/><form>
i have functioning sample code need 10 reputation before can post it.
Comments
Post a Comment