paypal - Unfortunately we were unable to process the request. Please try again -
i'm trying integrate paypal plus store, using api reference guide (see screenshot). done paypal returns 500 error when try complete checkout: unknown_internal_error.
searching through google wasn't successful.
<script src="https://www.paypalobjects.com/webstatic/ppplusdcc/ppplusdcc.min.js" type="text/javascript"></script> <div id="ppplusdiv" style="width: 300px; height: 502px;"></div> <script type="application/javascript"> var ppp = paypal.apps.ppp({ "approvalurl": "https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=ec-25d26051fw287782j", "placeholder": "ppplusdiv", "mode": "sandbox", "payerfirstname": "john", "payerlastname": "doe", "payerphone": "33927349232", "payeremail": "admin@example.com", "payertaxid": "831.899.557-00", "payertaxidtype": "br_cpf", "disablecontinue": "continuebutton", "enablecontinue": "continuebutton", "language": "en_us", "country": "br", });
<button id="continuebutton" class="ty-btn__big ty-btn__primary cm-ajax cm-checkout-place-order ty-btn" type="submit" name="dispatch[checkout.place_order]" onclick="if (!document.getelementbyid('product_agreements') || document.getelementbyid('product_agreements').checked) { ppp.docontinue(); return false;}">Разместить заказ</button>
Comments
Post a Comment