Apple Pay

RSS for tag

Provide a fast, easy, and secure way for users to buy goods and services in your app or on your website using Apple Pay.

Apple Pay Documentation

Posts under Apple Pay tag

261 Posts
Sort by:
Post not yet marked as solved
4 Replies
1.6k Views
Hi,I haven't been able to find any sort of documentation about how to issue a refund via Apple Pay within an app (though there are tons of articles about refunds in-store). I tried to do this through the regular PKPaymentRequest, but I got an error that the total must be greater than $0.Payment request is invalid: Error Domain=PKPassKitErrorDomain Code=1 "Invalid in-app payment request" UserInfo=0x171c76480 {NSLocalizedDescription=Invalid in-app payment request, NSUnderlyingError=0x170846b40 "PKPaymentRequest total must be greater than zero.”}Anybody know how I can do a refund?
Posted
by
Post not yet marked as solved
7 Replies
45k Views
Does Apple take 30 percent commission on all purchase within an app using the In App Purchase API?
Posted
by
Post marked as solved
5 Replies
7.3k Views
Hey all,I am able to successfully create a merchant session and send my session object to the completeMerchantValidation method.merchantSession = { "epochTimestamp": 1111111, "merchantSessionIdentifier": "2b...c24", "nonce": "2b...ad", "merchantIdentifier": "0f..9f", "domainName": "mysite.store.com", "displayName": "MyStore", "signature": "308...00" }; session.completeMerchantValidation(merchantSession);*note* I am using the real merchantSession passed back from the POST to the validationURL, what I have above is mocked.It seems that after this function (completeMerchantValidation) gets my merchantSession object, the session.oncancel is triggered and my payment sheet shows a message:"Payment Not Completed". Basically my sheet does the "processing" then almost immediatly displays "Payment Not Completed" and self-closes.Has anybody encoutered this issue before?
Posted
by
Post not yet marked as solved
3 Replies
2.4k Views
Hi,The ApplePay.JS Payment Sheet opens and immediately on the completeMerchantValidation closes and generates the 'cancel' event - what couldbe the reason?The merchant session obtained appears valid - it looks like :"{\"merchantSession\":\"{\\"epochTimestamp\\":1474348924261,\\"merchantSessionIdentifier\\":\\"3B3878F14D67466D831D8E2157F5E206_916523AAED1343F5BC5815E12BEE9250AFFDC1A17C46B0DE5A943F0F94927C24\\",\\"nonce\\":\\"b0a18557\\",\\"merchantIdentifier\\":\\"C2EDAB942991BC2CF2CD73E3CEF47871FC74CB9D039182AC2E964C69FC04607B\\",\\"domainName\\"...The validation URL sent by Apple Pay 'session.onvalidatemerchant' is https://apple-pay-gateway-cert.apple.com/paymentservices/startSessionWe are using iPad/iOS 10 and Xcode 8 Simulator and have provisioned test cards.Any thoughts appreciated,emil
Posted
by
Post not yet marked as solved
9 Replies
7.6k Views
I got an email from Apple Developer (developer@email.apple.com) saying "The domain for your website that uses Apple Pay has an SSL Certificate that's due to expire"... and "To ensure uninterrupted use of Apple Pay on your website, revalidate your domain by " the date the certificate was scheduled to expire.My SSL certificate has been updated but I see nowhere in the developer portal to "revalidate your domain". Any advice here? I use Braintree for the payment processing and they indicate it's nothing that they would control.Any suggestions?Thanks,Gerry
Posted
by
Post not yet marked as solved
5 Replies
3.0k Views
I want it to be possible to make donations for me app.The app is not of charity.Let's say that users like my app and want to make a donation.I can not use paypal?I can not use a webview that redirects the user to make a donation in a website.I may this is not possible through App In Purchase. Or is it?Thanks
Posted
by
Post not yet marked as solved
4 Replies
6.2k Views
I have a question about suppressing Apple Pay when a particular app is open. The app concerned displays a QR code which is read by a reader. Unfortunately, the reader is within the vicinity of a fixed NFC reader and is causing Apple Pay to open, stopping the QR code from being read. I’m aware that one option is to place the QR code within Apple’s Wallet where the NFC reader can be disabled, however I’ve also been told that it’s possible to resolve this without needing to pass the QR code through to the Wallet. Any suggestions welcome (moving the reader isn’t currently an option!). Thanks.
Posted
by
Post not yet marked as solved
4 Replies
9.7k Views
I'm trying to create a Merchant Certificate based off an ECC 256 CSR, but when I try I get an exception : "CSR algorithm/size incorrect. Expected: RSA (2048)." Is there any additional configuration with the merchant Id or keychain access in order to be able to create this certificate?
Posted
by
Post not yet marked as solved
4 Replies
3.8k Views
Hi,I have integrated the Applepay JS into my Website following the guide from: https://github.com/norfolkmustard/ApplePayJSMy merchantValidation object looks like :{ "epochTimestamp":1499863886166, "merchantSessionIdentifier":"44xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx24", "nonce":"7xxxxxx7f", "merchantIdentifier":"91xxxxxxxxxxxxxxxxxxxxxxx0B", "domainName":"abc.com", "displayName":"demoName", "signature":"308006092a864xxxxxxxxxxxxx000000" }However, on passing this to session.completeMerchantValidation, I keeping getting Payment Not Completed Error and the payment sheet keeps closing immediately.Note: I am executing my code in my local enviroment which is different from the one being passed in the domainName in the merchantValidation object.Please help me out. Thanks in advance.
Posted
by
Post marked as solved
2 Replies
1.9k Views
Hello,We are currently trying to implement Apple Pay on the Web. We have everything set up according to the documentation and guides. We are currently using WebSphere Commerce with Cybersource as the payment gateway.We have been able to successfully process a payment token that uses a Visa test card. However, we are noticing issues with the other card types (MasterCard, Amex, Discover). We are using Cybersource Decryption method. Per our contact with Cybersource, when they decrypt any of the three cards mentioned prior, they are discovering that onlinePaymentCryptogram field is missing in the JSON from the payment token. This blocks further decrypting the token and we are unable to process those card types.We have tried using the test credit cards that Apple provides and also the ones that Cybersource provides and have the same outcome for both. Could this be an issue where Apple is sending incorrect information or the payment token is set up incorrectly before it gets sent to our server for processing? Are there any known differences between card types in respect to the payment token setup? Is there a certain way to decrypt the payment token based on which card type that it is?We are currently based in US and in sandbox mode for testing.If there is any other information that is needed to diagnose, I will happily supply.Thanks!
Posted
by
Post not yet marked as solved
7 Replies
5.9k Views
HiHow long does it take to get an NFC Certificate from Apple? So that we can delivery NFC Enabled Loyalty Passes.We registered at the following address but haven't received any communication for over 2 weeks.https://developer.apple.com/contact/passkit/We are developing solutions for our clients and need to test the technology.We use different PassTypeIDs for each of our Customers so it's likely we will need a different NFC certificate for each of our customers.How do we get NFC Certificates in bulk so that we can deliver NFC Loyalty Programmes to our Customers?Thanks
Posted
by
Post not yet marked as solved
6 Replies
7.2k Views
We're having an issue where once we get the response from our backend with the session information and passing it into completeMerchantValidation. Basically the "Processing" spinner stays for about 10-15 seconds then just fails saying "Apple Pay Not Completed. This website was not able to complete the payment. Please try again."There are no console errors. It's a valid response from Apple. But no details as why this is happening?I've ensured that the response we get from Apple is the exact object that's passed into the completeMerchantValidation call. I even put a console log after this to ensure no exceptions were thrown.iOS 11.1 (15B93)This was tested over wifi and cellular network.I have now tested this on 4 different devices and it happens on all of them.
Posted
by
Post not yet marked as solved
1 Replies
1.1k Views
In my app I have used the auto renewable subscription. The scenario is if a user refers their friend certain discount amount is provided to them. How can I use this discount amount so that user has to pay less amount for the subscription charge for the following month?
Posted
by
Post not yet marked as solved
1 Replies
582 Views
These instructions do not work:https://developer.apple.com/support/apple-pay-sandbox/AT ALL. We setup the sandbox account. It's enabled for Apple Pay. We're signed in on the test device (iPad Mini 4) running iOS 11.2. We've tried adding every possible card type from that list, all fail with "Could Not Add Card: Try again later or contact your card issuer for more information"Our region is set to US. Is it possible that Apple's entire Apple Pay testing system is just down and has been for months?? Every thread I find where people discuss this issue has no resolution.
Posted
by
Post not yet marked as solved
7 Replies
2.9k Views
Hi,I tried to re-verify our apple pay merchant domain, but after I drop the apple-developer-merchantid-domain-association file to the path: https://{MY_DOMAIN}/.well-known/And make the file public accessible.When I hit ok button to continue, it always show a error message:Verification failed for domainError occurred while trying to access 'https://..../.well-known/apple-developer-merchantid-domain-association'. Received HTTP error code '307'.Don't know what's wrong with it. Our server is on Amazaon S3, and it support all TLS 1.1, 1.2.Can anyone help me?Thanks
Posted
by
Post not yet marked as solved
0 Replies
1.1k Views
We're investigating Apple Pay for our product. We're doing fine making the payments & configuring our various environments. My question is in relation to renewing our Apple collateral -- how do we safely renew domain verification (which only seems to last 6 months)?The only options, under Merchant IDs -> Merchant Domains for our website's URL are 'Remove' and 'Verify'.'Verify' is greyed out, we've already used this to verify the domain successfully by hosting the blob where we were instructed.Since the verification seemingly expires in about 6 months, how will we safely roll this over? Hitting 'Remove' before the expiration date sounds like a good way to have an Apple Pay outage.
Posted
by
Post not yet marked as solved
4 Replies
2.6k Views
I have implemented Apple pay for web. The apple pay sheet is poping up and i am able to get the merchant validation object as well but not able to complete merchant validation (session.completeMerchantValidation(merchantSession)). It keeps processing and then say Payment Not Completed. I have checked numerous threads and i see that code implementation is what it is required.So i am stuck here and not able to get payment token which i need to pass to my payment gateway provider.PS: The domain on which i am implementing was earlier using apple pay for web with Stripe. I have disbaled the apple pay settings from my stripe account as well in case if that could have been the issue.
Posted
by
Post not yet marked as solved
2 Replies
1.5k Views
Hi, I am confused about this certificate as no guides have installed it onto their servers or talk about what it does exactly. They just use the term 'merchant certificate' which i assume is the merchantid one. I have signed two certificates and uploaded to my apple developer portal. Do we need to be able to use the apple_pay.cer in order to decrypt the token after authorization? Or do we use the merchant_id.cer for decryption. Also do I need to install it to mmc? please confirm, thank you.
Posted
by