title: Stripe Apple pay integration is not working in iOS (Swift) application
body: <p>I am working on Stripe payment integration and I am using 'Standard' integration to implement Stripe in iOS (Swift). For this I am referring this document "<a href="https://stripe.com/docs/mobile/ios" rel="nofollow noreferrer">https://stripe.com/docs/mobile/ios</a>" and demo code : "<a href="https://github.com/stripe/stripe-ios" rel="nofollow noreferrer">https://github.com/stripe/stripe-ios</a>"  and I am referring 'Standard' integration demo.  </p>
  
  <p>I have successfully implement Credit card payment in app and its working perfectly for both sandbox and live.</p>
  
  <p>Now I have to integrate Apple pay using Stripe. But I am not able to do that.</p>
  
  <p>These are the code which I am using: </p>
  
  <p><strong>CheckoutViewController.swift</strong></p>
  
  <pre><code>@objc func didTapApplePay() {
  
          self.paymentInProgressApplePay = true
  
  
          let merchantIdentifier = "merchant.com.companyName.appName"
          let paymentRequest = Stripe.paymentRequest(withMerchantIdentifier: merchantIdentifier, country: "US", currency: "USD")
  
          // Configure the line items on the payment request
          paymentRequest.paymentSummaryItems = [
              PKPaymentSummaryItem(label: "Fancy Hat", amount: 50.00),
              // The final line should represent your company;
              // it'll be prepended with the word "Pay" (i.e. "Pay iHats, Inc $50")
              PKPaymentSummaryItem(label: "iHats, Inc", amount: 50.00),
          ]
  
          if Stripe.canSubmitPaymentRequest(paymentRequest) {
              // Setup payment authorization view controller
              let paymentAuthorizationViewController = PKPaymentAuthorizationViewController(paymentRequest: paymentRequest)
  
              paymentAuthorizationViewController?.delegate = self as! PKPaymentAuthorizationViewControllerDelegate
  
              // Present payment authorization view controller
              present(paymentAuthorizationViewController!, animated: true)
          }
          else {
              // There is a problem with your Apple Pay configuration
  
      print("There is a problem with your Apple Pay configuration")
  
          }
  
      // self.paymentContext.requestPayment()
  
      }
  </code></pre>
  
  <p>In above code I am getting response in console is <em>"There is a problem with your Apple Pay configuration"</em></p>
  
  <p>Following things I have done in my application:</p>
  
  <ol>
  <li>I have created certificate from the stripe dashboard and upload it my stripe dashboard. Also install this certificate in my keychain access:</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/1bei1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1bei1.png" alt="enter image description here"></a></p>
  
  <ol start="2">
  <li>Set on Apple pay in Xcode capabilities:</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/icx2o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/icx2o.png" alt="enter image description here"></a></p>
  
  <pre><code>if Stripe.deviceSupportsApplePay(){
  
  
              print("Device support apple pay")
  
          }
          else{
  
              print("Device does not support apple pay")
  
  
          }
  </code></pre>
  
  <p>In above code I am getting response in console is "<em>Device does not support apple pay</em>"</p>
  
  <p>I am really not able to figure it out that what exact problem is? What I am doing wrong?</p>