0
後PayPalのサンドボックスのお支払い方法に示されていない
私は現在、PayPalのサンドボックス環境でthis linkクレジットカードはログイン
を参照して参照私のイオン2のアプリケーションにPayPal
を追加しようとしています、私は得ることはありませんサンドボックス購入者のアカウントでログインした後、PayPal支払いオプションに表示されません。ここで
はPayPalに接続するために私のコードです:ここでは
payViaPaypal() {
let env = this;
this.payPal.init({
PayPalEnvironmentProduction: paypal.PayPalEnvironmentProduction,
PayPalEnvironmentSandbox: paypal.PayPalEnvironmentSandbox
}).then(() => {
env.payPal.prepareToRender(paypal.CurrentEnvironment, new PayPalConfiguration({})).then(() => {
let payment = new PayPalPayment('3.33', 'MYR', 'Description', 'sale');
env.payPal.renderSinglePaymentUI(payment).then((result) => {
if (result.response.state == "approved") {
console.log("Success!")
}
},() => {
console.error('Error or render dialog closed without being successful');
});
},() => {
console.error('Error in configuration');
});
},() => {
console.error('Error in initialization, maybe PayPal isn\'t supported or something else');
});
}