ich derzeit versuche PayPal
in meine Ionic 2 Antrag auf Bezug this link Bezugnahme hinzuzufügenKreditkarte ist nicht in PayPal Sandbox Zahlungsoption nach dem Login ersichtlich
PayPal Sandbox-Umgebung, verstehe ich nicht, warum Kreditkarte ist nicht in meinen PayPal-Zahlungsoptionen angezeigt, nachdem ich mich mit dem Sandbox-Käuferkonto angemeldet habe.
Hier ist mein Code zu PayPal verbinden:
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');
});
}
Hier der Screenshot ist: zeigt ist