nigong
nigong

Reputation: 1755

App Review Rejected: Use 'Setup Apple Pay' Image Button

My app review got rejected by Apple:

Specifically, Buy with Apple Pay button showing without Apple Pay set up.

Next Steps: When Apple Pay is not enabled on a user's device the user should see Set up Apple Pay Button.

Resources: For guidance on how to use Apple Pay button assets and payment marks in the customer purchase flow, see the Apple Pay Button and Resources.

But what I can download from that page is the 'Apple Pay' button images, NO 'Setup Apple Pay' button image is included at all!

All I could find is a raw image from here

setupApplePay

However, this does not come with a resouce pack and dimention/ratio does not go well with other 'Apple Pay' buttons. What the hack Apple...

Am I missing something here? Anyone knows where to download the 'Setup Apple Pay' button images set? Thank you!

Upvotes: 1

Views: 1988

Answers (2)

Martin Costello
Martin Costello

Reputation: 10882

The CSS for the "Set up (Apple) Pay" button can be found here in the documentation for the ApplePaySession.openPaymentSetup function: https://developer.apple.com/reference/applepayjs/applepaysession/2710269-openpaymentsetup

Upvotes: 0

user3353890
user3353890

Reputation: 1891

Add the PassKit framework to your project and import it into your corresponding view controller/s. PassKit has a PKPaymentButton that "returns a button instance with the Apple Pay Logo".

You can use the documentation to setup the corresponding functionality. It should be pretty straight forward, but let me know if you have questions. I hope this helps!

iOS

PKPaymentButton: https://developer.apple.com/reference/passkit/pkpaymentbutton

PassKit: https://developer.apple.com/reference/passkit

Safari

For the web, you will use Apple Pay JS. From there, you will use the ApplePaySession class to handle payments. Within the ApplePaySession class, you will see documentation on how to display different Apple Pay buttons using HTML and CSS. You can also use openPaymentSetup to display a setup Apple Pay button.

Apple Pay JS: https://developer.apple.com/reference/applepayjs

ApplePaySession: https://developer.apple.com/reference/applepayjs/applepaysession

openPaymentSetup: https://developer.apple.com/reference/applepayjs/applepaysession/2710269-openpaymentsetup

Read the documentation and it should all be right there. Hope this works for you!

Upvotes: 7

Related Questions