applepay

ApplePay PKPaymentAuthorizationViewController always shows processing

℡╲_俬逩灬. 提交于 2019-12-24 05:18:06
问题 I am trying to use Apple Pay in my app. It works fine to present PKPaymentAuthorizationViewController. However, after I filled up with credit card and billing information, it just shows a spinning wheel and 'processing' as shown in the picture. The code for presenting Apple Pay view controller is as follows: let request = Stripe.paymentRequestWithMerchantIdentifier(DH_APPLEPAY_ID) request.paymentSummaryItems = [PKPaymentSummaryItem(label: label, amount: amountDecimal)] request

Apple Pay using Stripe send token to server and charge for purchase

不想你离开。 提交于 2019-12-24 00:18:53
问题 I am using Apple Pay in my iPhone application with payment Provider Stripe . I implemented Apple Pay using test_key and it returns token and getting PKPaymentAuthorizationStatusSuccess in simulator. Actually, I don't know the real time payment when it will done from the real device. I have a question is Do I need to send Token to server to charge for that payment or will charge itself withing iPhone application once get token? As per below method they are sending token to server so It will

Is there a way to know when CANCEL is pressed in the Apple Pay view

扶醉桌前 提交于 2019-12-23 23:24:00
问题 Is there a way to know when CANCEL is pressed in the Apple Pay view? I tried to look for a delegate, but didn't find one. 回答1: If you have the PKPaymentAuthorizationViewControllerDelegate methods setup, you can catch the cancel in this method: - (void)paymentAuthorizationViewControllerDidFinish:(PKPaymentAuthorizationViewController *)controller I set a boolean (applePaymentDidSucceed) to FALSE before I call Apple Pay, then set it to true if the "PKPaymentAuthorizationStatus" in this method is

How to test Stripe based Apple Pay? [closed]

南楼画角 提交于 2019-12-23 16:10:35
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Currently i am trying to develop a native iOS application where i have to integrate Stripe based Apple Pay, For that i have added the SDK provided by them inside my project. At the final step, i am going to test the apple pay functionality but i am not sure how i can perform it. 1) Do i have to add some dummy /

Apple Pay sandbox tester not able to login into device iOS 10

房东的猫 提交于 2019-12-20 02:10:58
问题 I'm not able to login into my new iPhone 6s(iOS 10.0.1) with this sandbox account for testing apple way. While able to login into web icloud, itunes and tested on my old iPhone 6+(iOS 10 beta 5). Everytime try to login into iPhone 6s(iOS 10.0.1) I got this error message. iTunes account creation not allowed This apple ID cannot be used with the iTunes Stores at this time. Please try again. Help me what to do, is this bug from Apple side 回答1: I have tried this many time. And getting same thing

Apple pay PKPaymentauthorizationViewController always returning nil when loaded with Payment request

泄露秘密 提交于 2019-12-20 01:42:17
问题 I am getting the PK Payment auth view controller instance returned as nil. What is wrong with this code? if([PKPaymentAuthorizationViewController canMakePayments]) { if ([PKPaymentAuthorizationViewController canMakePaymentsUsingNetworks:@[PKPaymentNetworkAmex, PKPaymentNetworkMasterCard, PKPaymentNetworkVisa]]) { PKPaymentRequest *request = [[PKPaymentRequest alloc] init]; request.currencyCode = @"USD"; request.countryCode = @"US"; request.merchantCapabilities = 0; request

How to verify ios device supports Apple Pay

匆匆过客 提交于 2019-12-18 07:34:27
问题 I'm starting an Apple Pay integration project and have been able to wire up a transaction on the device, and use Stripe to authorize the payment. The part I'm actually struggling with is the proper way for the device to test whether Apple Pay is supported? Thus, for older Iphone models I would choose to hide the Apple Pay features, even if they have ios8 or ios9 installed. I can probably check for the device model, and ignore Apply Pay for < Iphone5S. However this gets complicated if I also

How to verify ios device supports Apple Pay

元气小坏坏 提交于 2019-12-18 07:33:29
问题 I'm starting an Apple Pay integration project and have been able to wire up a transaction on the device, and use Stripe to authorize the payment. The part I'm actually struggling with is the proper way for the device to test whether Apple Pay is supported? Thus, for older Iphone models I would choose to hide the Apple Pay features, even if they have ios8 or ios9 installed. I can probably check for the device model, and ignore Apply Pay for < Iphone5S. However this gets complicated if I also

PKPaymentAuthorizationViewController is crashing unexpectedly on iOS 8.4

╄→гoц情女王★ 提交于 2019-12-11 19:36:45
问题 Background: I used same code for iOS 8.2,8.3 it was working fine. PKPaymentAuthorizationViewController *paymentPane = [[PKPaymentAuthorizationViewController alloc] initWithPaymentRequest:request]; paymentPane.delegate = self; [self presentViewController:paymentPane animated:TRUE completion:nil]; PaymentRequest Code: PKPaymentRequest *request = [[PKPaymentRequest alloc] init]; NSString *chargeApplePay=[NSString stringWithFormat:@"%.02f",pay]; PKPaymentSummaryItem *total = [PKPaymentSummaryItem

What behaviour is pereferable for Apple Pay button if no cards in the wallet?

谁说胖子不能爱 提交于 2019-12-11 17:12:59
问题 I was looked through the apple guidelines but did not found anything about this question. Additional info: I have added Apple Pay button to app and hide it if there are no capabilities (e.g., cards) to pay with. But customer does not like it and wants some other approach. I think we may open wallet like asking user to add a card, but I am not sure what Apple guidelines think about it. Is there any explicit recommendation about it? 回答1: Here is Apple's guidelines on implementing Apple Pay.