ngx-braintree icon indicating copy to clipboard operation
ngx-braintree copied to clipboard

Drop-in doesn't show on iOS (Device and Emulator)

Open carned opened this issue 6 years ago • 4 comments

Hi, I am using this plugin with this configuration

<ngx-braintree [clientTokenURL]=braintreeTokenUrl [createPurchaseURL]=braintreeCheckoutUrl (paymentStatus)="onPaymentStatus($event)" [showCardholderName]="true" [chargeAmount]="50" [enablePaypalCheckout] = "true" [buttonText]="'Pay'" [enabledStyle]="enabledStyle" [disabledStyle]="disabledStyle" [currency]="'EUR'"> </ngx-braintree>

It works using ionic serve, with cordova platform browser and android (emulator and devices), but it doesn't work on iOS.

There is an infinite loader. No errors into console log.

Thanks

image-1

carned avatar Aug 04 '18 14:08 carned

I tried also with basic configuration:

      <ngx-braintree
        [clientTokenURL]=braintreeTokenUrl
        [createPurchaseURL]=braintreeCheckoutUrl
        (paymentStatus)="onPaymentStatus($event)"
        [chargeAmount]="50">
      </ngx-braintree>

On my backend server the clientTokenURL has been invoked. Using browser or android everythings is ok.

Environment is:

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0

local packages:

    @ionic/app-scripts : 3.1.11
    Cordova Platforms  : browser 5.0.3 ios 4.5.5
    Ionic Framework    : ionic-angular 3.9.2

System:

    ios-sim : 5.0.8
    Node    : v6.9.4
    npm     : 4.1.1
    OS      : macOS High Sierra
    Xcode   : Xcode 9.4.1 Build version 9F2000

carned avatar Aug 04 '18 15:08 carned

I would recommend to use srikanthonl/ngx-braintree only for your Desktop version of your app. ionic-native/braintree (+cordova plugin) works best for iOS & Android and it is supported up to the newest ionic 4.5.0 beta

RELAXccc avatar Nov 30 '18 15:11 RELAXccc

I have found these https://github.com/braintree/braintree-web-drop-in/issues/478 Can these be the solution for these problem ?

tfdsimoes avatar May 29 '19 07:05 tfdsimoes

I had the same issue. No payment method was loaded in ios simulator and on real ios devices. On Android and PWA it worked.

The xcode log showed me following error when the dropin ui was created: ERROR Internal navigation rejected - <allow-navigation> not set for url='about:blank'

I then added in my config.xml following line: <allow-navigation href="*" />

again ionic cordova prepare ios and it worked.

widnig89 avatar Feb 15 '20 03:02 widnig89