Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
carned opened this issue Aug 4, 2018 · 4 comments
Open

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

carned opened this issue Aug 4, 2018 · 4 comments

Comments

@carned
Copy link

carned commented Aug 4, 2018

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
Copy link
Author

carned commented Aug 4, 2018

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

@RELAXccc
Copy link

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

@tfdsimoes
Copy link

I have found these braintree/braintree-web-drop-in#478
Can these be the solution for these problem ?

@widnig89
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants