ios - How do I test Braintree + Apple Pay on a real device? -


I am developing an app using the Apple Pay for US client from outside the US. I am using Braintree + Apple Pay. We support real credit cards from passbook, but we can not verify them.

I have successfully created a customer token, self.braintree and tried both methods of integration of BT.

  if (own. Braintree and amp !! [self. Braintree Hakindof class: [Ansanl class]]) {Self.provider = [Delegate with Braintree Payment Provider: self]; If ([self. Can provider payment method provider type: BTPaymentProviderTypeApplePay]) {self.provider.paymentSummaryItems = @ [[PK Bhugtansutraitim Saranshaitmvithlabel: @ "XXXX" amount [Ansdisimlnanbr decimal decimal Snkyavithstring: @ "1"] ]]; } [Self. Create Project Payment Method: BTPaymentProviderTypeApplePay]; }  

But the "" PKPaymentAuthorizationViewController "Do not push.

  if ([PK payment Adikarn Drishykantrolr to Mekpaments]) // Returns the returns TRUE {PKPaymentRequest * paymentRequest = [[PKPMantReInstLock] Init]; PaymentRequest.countryCode = @ "US"; PaymentRequest.currencyCode = @ "USD"; PaymentRequest.merchantCapabilities = PKMerchantCapabilityEMV | PKMerchantCapability3DS; PaymentRequest.merchantIdentifier = MERCHANTID; PaymentRequest.supportedNetworks = @ [PKPaymentNetworkAmex, PKPaymentNetworkMasterCard, PKPaymentNetworkVisa]; PaymentRequest.paymentSummaryItems = @ [[PK Bhugtansutraitim Saranshaitimvithlabel: @ "Te ("PK Payment Networks AMMX, PK Payment NetworksMasterCard, PK Payment NetworkWaasaha]] // Return Folse {PK PaymentsAdministratorView Controller • VC: (NSDCL numberNumber Decimal Decimal Wide: @" 1 "]];; (PKPMent Authority Viewer's Measurements Using Network: = [[[PK Payment Authorization Viewer Elok] Inuit With Payment Requirement: Payment Requirement]; Vc.delegate = self; [Self-present ViewController: animated vc: yes complete: zero]; }}  

This "vc" is zero .

Correct me, if this is wrong, how do I check it on a real device?

It is likely that your app's apple payment entitlement is not set correctly.

I've seen canMakePayments returns Yes and CanMakePaymentsUsingNetworks: returns not when entitlements set it happens.

(I have also found that they can return both yes when your Merchant ID set on PKPaymentRequest does not appear on your Apple Pay entitlement merchant do not match the ID. in this case, you PKPaymentAuthorizationViewController will be non-zero, but it logged a cryptic error to render the console.)

verify On that apple is configured for your app, make sure that " Ppl pay "your goal setting to" On "in the capabilities section, and it is a merchant identifier (which you already).

After that:

  • If using your BTPaymentProvider integration method, make sure that the certificate and the merchant identifier are correctly Braintree Control Panel.
  • If using your direct PassKit integration method, make sure that you are setting the property to the matching merchant identifier in the entitlement.

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -