applepay

Implementing Apple Pay with SwiftUI

折月煮酒 提交于 2020-07-21 03:02:07
问题 This is my first time working with PassKit and with SwiftUI on a big project. I'm trying to implement Apple Pay SwiftUI and since there isn't a native way to do so yet, I tried wrapped the PKPaymentAuthorizationViewController in UIViewControllerRepresentable, but I'm not sure if I'm doing it properly. The view displays properly and seems to work when clicking on it to pay. I control showing the window by binding the view to an isPresentingApplePay bool (see below). The issues happen when the

Braintree Drop In Apple Pay crashing

心不动则不痛 提交于 2020-01-30 11:50:12
问题 Presenting PKPaymentAuthorizationViewController always results in a total crash with pointing to my AppDelegate: Thread 1: signal SIGABRT let vc = PKPaymentAuthorizationViewController(paymentRequest: paymentRequest) as PKPaymentAuthorizationViewController? if vc != nil{ vc!.delegate = self self.present(vc!, animated: true, completion: nil) }else{ print("error") } libc++abi.dylib: terminating with uncaught exception of type NSException btw.: I am checking .canMakePayments() if it is available

How to open a pkpass file to wallet from Xamarin Mobile application

寵の児 提交于 2020-01-25 08:55:08
问题 I have created pkpass file from server side and its working fine. I try to consume the pkpass via service and try to add the pass via PKAddPassesViewController. But it's not working. I have followed this resourse to add pass file to add wallet try { _oHttpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", accesstoken); //this response is pkpass file HttpResponseMessage response = await _oHttpClient.GetAsync(new Uri(Constants.Urls.DigitalMembershipCardApple +

ApplePay `paymentAuthorizationViewController:didAuthorizePayment:handler:` not called in Xcode Simulator 10.3

谁说胖子不能爱 提交于 2020-01-16 09:10:35
问题 ApplePay's PKPaymentAuthorizationViewControllerDelegate method paymentAuthorizationViewController:didAuthorizePayment:handler: is not being called when run on an Xcode 10.3 simulator. This method is called as expected when built to a device with Xcode 10.3. This method is called as expected in the Xcode 10.2.1 simulator. The deprecated method paymentAuthorizationViewController:didAuthorizePayment:completion: exhibits the same negative behavior. Based on the fact that it works on device and in

Starting with Apple Pay on the web

爱⌒轻易说出口 提交于 2020-01-13 19:19:06
问题 I would like to implement Apple Pay for web. I was getting a little bit confused by the documentations of Sandbox and Production. I'm using Mac mini (late 2012) with Sierra and iPad mini 3 with IOS 10. Can you please help me understand what is needed for Sandbox testing? I was following: Apple Pay Sandbox Testing. Both devices are on the same WIFI, bluetooth is on, handoff is on and AirDrop is on. I created a sandbox user and logged in with it to icould on both devices. I added a test credit

Apple Pay On Web - Sandbox Testing

无人久伴 提交于 2020-01-04 07:00:30
问题 I have following the steps described in this link to perform a sandbox testing. But I was failed to use the sandbox tester that I have created in iTunesConnect. When I tried to login using the tester account in App Store on an iPhone, it prompts the following error. I have verified the apple ID but it still failed. How to resolve it? By the way, is it possible to add a test card to a real apple ID for testing? 回答1: The Apple Pay Sandbox account is not for signing into iTunes, but to iCloud.

Create Token With Apple Pay Without Payment

折月煮酒 提交于 2019-12-30 18:22:31
问题 I have two questions: Is there a way to create an STPToken using Apple Pay without a payment? In my iOS app, the customer either enters in their payment info or decides to use Apple Pay when registering. When the customer decides to make a purchase (some time in the future after signing up), their card will be automatically charged. There is a method that I can call to check if the payment request can be made, but it seems that I have to actually run the payment and charge the card in order

What key is used to generate an ARQC in Apple Pay?

。_饼干妹妹 提交于 2019-12-24 20:27:27
问题 In the EMV protocol the IMK(ac) is used to generate the session key, which is used to generate an ARQC. The IMK(ac) is exclusive to the chip and the card issuer host As far as I understand, the card issuers do not share those keys with the card brand (i.e. Visa cannot validate your ARQC, only "The Bank of Peoria" who issued the card can). When an EMV Apple Pay transaction occurs in which the phone generates the ARQC, which IMK(ac) key is it using? Presumably it can't be the IMK(ac) from the

Can't verify my domain for Apple Pay implementation

我怕爱的太早我们不能终老 提交于 2019-12-24 08:31:48
问题 I'm trying to complete the domain verification step in order to test Apple Pay on the web. I've downloaded the file, located it in the required folder and checked that I'm able to reach it and see the contents. When I click ok/verify I receive: Verification failed for domain Unable to establish a secure connection to 'https://my.domain/.well-known/apple-developer-merchantid-domain-association'. If I open the browser console I see: Failed to load resource: the server responded with a status of