passkit

passkit - pass not refreshing via push notification. (Server response was malformed)

社会主义新天地 提交于 2019-12-04 12:46:17
I have successfully integrated passkit but I am facing issue when updating passbook via push notification. Notification successfully received to wallet but pass not updated. Following are steps which I have implemented: Used XMPP server (PHP). used this library in php to generate pass ( https://github.com/tschoffelen/PHP-PKPass ). I have replaced pass type and team identifier. Swift code to add pass to wallet. Pass successfully created and add to wallet. To refresh pass "pull to refresh" is working in wallet app. Here is my full code (PHP + SWIFT): https://www.dropbox.com/sh/e3wk8bwqgv8zs3f

Error: Apple pay not completed

强颜欢笑 提交于 2019-12-02 07:54:00
问题 I have implemented apple pay in my iOS application using Passkit framework. I did all of these things fully to set up apple pay. I am using sandbox account. I added cards in Wallet application and these cards are testing cards which I copied from this link. This code I am using: print("\(((self.grandTotalLabel.text!).replacingOccurrences(of: "$", with: "")))") let paymentNetworks = [PKPaymentNetwork.amex] if PKPaymentAuthorizationViewController.canMakePayments(usingNetworks: paymentNetworks){

Apple Wallet Not Auto Updating Pass

[亡魂溺海] 提交于 2019-12-02 04:30:57
Finally im able to push new changed compiled bundle. There is one issue im facing in order to see new changes. i have to go in my wallet card & disable "Automatic updates" then enable. then i can see my new compiled pass card. $result = $pdo->query($query); if($result->rowCount() > 0) { $myPass = $result->fetch(); $data = $myPass['data']; $nameFile = 'passbook_'.time().'.pkpass'; file_put_contents($nameFile, $data); $stream = function () use ($nameFile) { readfile($nameFile); }; return $app->stream($stream, 200, array( 'Content-Type' => 'application/vnd.apple.pkpass', 'Content-length' =>

Error: Apple pay not completed

僤鯓⒐⒋嵵緔 提交于 2019-12-02 04:04:55
I have implemented apple pay in my iOS application using Passkit framework. I did all of these things fully to set up apple pay. I am using sandbox account. I added cards in Wallet application and these cards are testing cards which I copied from this link . This code I am using: print("\(((self.grandTotalLabel.text!).replacingOccurrences(of: "$", with: "")))") let paymentNetworks = [PKPaymentNetwork.amex] if PKPaymentAuthorizationViewController.canMakePayments(usingNetworks: paymentNetworks){ paymentRequest.supportedNetworks = paymentNetworks paymentRequest.merchantCapabilities =