PKPaymentRequest(Square)

@interface PKPaymentRequest (Square)

PKPaymentRequest additions for using Apple Pay with Square.

  • Creates a PKPaymentRequest instance with Square-supported networks and merchant capabilities.

    Declaration

    Objective-C

    + (nonnull PKPaymentRequest *)
        squarePaymentRequestWithMerchantIdentifier:
            (nonnull NSString *)merchantIdentifier
                                       countryCode:(nonnull NSString *)countryCode
                                      currencyCode:(nonnull NSString *)currencyCode;

    Parameters

    merchantIdentifier

    Your merchant identifier. This must be one of the Merchant IDs associated with your Apple Developer account.

    countryCode

    The two-letter ISO 3166 country code for the country where the payment will be processed. E.g. “US”.

    currencyCode

    The three-letter ISO 4217 currency code. E.g. “USD”.