我整合了Paypal Adaptive Payments
但是当用户点击“购买”按钮时,用户会获得PayPal Error: “Your payment can’t be completed. Please return to the participating website and try again”
。在服务器端创建了paykey:
pay: {"responseEnvelope":{"timestamp":"2012-08-03T00:17:58.697-07:00","ack":"Success","correlationId":"c830d0b683474","build":"DEV"},"payKey":"AP-XXXXXXXXXXX,"paymentExecStatus":"CREATED"}
它适用于沙箱,但不适用。有人遇到过这个问题? 感谢
答案 0 :(得分:1)
我解决了这个问题。在我的客户端代码中,我指的是沙箱URL而不是实时URL。
<form action="https://www.paypal.com/webapps/adaptivepayment/flow/pay" target="PPDGFrame">
<input id="type" type="hidden" name="expType" value="light">
<input id="paykey" type="hidden" name="paykey" value="AP-...">
<input type="submit" id="submitBtn" value="Pay with PayPal">
</form>