我正在尝试使此处显示的示例起作用:
https ://developer.paypal.com/webapps/developer/docs/classic/adaptive-payments/ht_ap-embeddedPayment-curl-etc/
但是,我总是得到错误Payment can't be completed. This feature is currently unavailable.
这是直接取自 PayPal 文档的代码({{PAY-KEY}}
您从 PayPal 获得的支付密钥在哪里):
<html>
<head>
<script src="https://www.paypalobjects.com/js/external/apdg.js" type="text/javascript"></script>
</head>
<body>
<form action="https://www.sandbox.paypal.com/webapps/adaptivepayment/flow/pay" target="PPDGFrame" class="standard">
<label for="buy">Buy Now:</label>
<input type="image" id="submitBtn" value="Pay with PayPal" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynowCC_LG.gif">
<input id="type" type="hidden" name="expType" value="mini">
<input id="paykey" type="hidden" name="paykey" value="{{PAY-KEY}}">
</form>
<script type="text/javascript" charset="utf-8">
var dgFlowMini = new PAYPAL.apps.DGFlowMini({trigger: 'submitBtn'});
</script>
</body>
</html>
当您尝试将其用于 Preapproval ( [...]/flow/preapproval
, request variable preapprovalKey
) 以及 LightBox 代码示例时,也会发生相同的错误。
我在这里想念什么?