Platby do tohoto obchodníka nejsou povoleny (neplatné ClientID) - Ionic iOS

hlasů
0

Im pomocí paypal modul pro iontové a nefunguje v systému iOS

Jak jsem již běží tento plugin na android a daří se jí dokonalé, a také mají Clientid generovány https://developer.paypal.com/developer/applications/

doPayment() {
    const total: any = 10;
    const currency: any = 'USD';
    const envProduct: any = '';
    const envSandbox: any = '{Client ID from                                                                  developer.paypal.com/developer/applications/}';
    this.payPal.init({
    PayPalEnvironmentProduction: envProduct,
    PayPalEnvironmentSandbox: envSandbox
    }).then(() => {
    // Environments: PayPalEnvironmentNoNetwork,         PayPalEnvironmentSandbox, PayPalEnvironmentProduction
    this.payPal.prepareToRender('PayPalEnvironmentSandbox', new         PayPalConfiguration({
    // Only needed if you get an Internal Service Error after         PayPal login!
    // payPalShippingAddressOption: 2 //         PayPalShippingAddressOptionPayPal
    })).then(() => {
    const payment = new PayPalPayment(total, currency,         'Description', 'sale');
    this.payPal.renderSinglePaymentUI(payment).then(async ( res ) =>         {
    // rest of the code after payment
    }, ( errclose ) => {
    console.log( errclose ); // Error or render dialog closed         without being successful
    });
    }, ( errconf ) => {
    console.log( errconf ); // Error in configuration
    });
    }, ( errinit ) => {
    console.log( errinit ); // Error in initialization, maybe PayPal         isn't supported or something else
    });
}

Každá pomoc je oceňována. Děkuji mnohokrát.

Položena 10/10/2019 v 00:37
zdroj uživatelem
V jiných jazycích...                            

Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more