Package apple.passkit

Class PKPaymentRequest

  • All Implemented Interfaces:
    NSObject

    public class PKPaymentRequest
    extends NSObject
    PKPaymentRequest defines an application's request to produce a payment instrument for the purchase of goods and services. It encapsulates information about the selling party's payment processing capabilities, an amount to pay, and the currency code.
    • Constructor Detail

      • PKPaymentRequest

        protected PKPaymentRequest​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • availableNetworks

        public static NSArray<java.lang.String> availableNetworks()
        The payment networks and platforms supported for in-app payment
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • applicationData

        public NSData applicationData()
        Optional merchant-supplied information about the payment request. Examples of this are an order or cart identifier. It will be signed and included in the resulting PKPaymentToken.
      • billingAddress

        @Deprecated
        public org.moe.natj.general.ptr.ConstVoidPtr billingAddress()
        Deprecated.
      • billingContact

        public PKContact billingContact()
        If the merchant already has a billing address on file, set it here.
      • countryCode

        public java.lang.String countryCode()
        The merchant's ISO country code.
      • currencyCode

        public java.lang.String currencyCode()
        Currency code for this payment.
      • merchantCapabilities

        public long merchantCapabilities()
        The payment processing capabilities of the merchant.
      • merchantIdentifier

        public java.lang.String merchantIdentifier()
        Identifies the merchant, as previously agreed with Apple. Must match one of the merchant identifiers in the application's entitlement.
      • paymentSummaryItems

        public NSArray<? extends PKPaymentSummaryItem> paymentSummaryItems()
        Array of PKPaymentSummaryItem objects which should be presented to the user. The last item should be the total you wish to charge, and should not be pending
      • requiredBillingAddressFields

        public long requiredBillingAddressFields()
        Indicates which billing address fields are required. The default is PKAddressFieldNone. This property is deprecated and should not be used.
      • requiredShippingAddressFields

        public long requiredShippingAddressFields()
        Indicates which shipping address fields are required. The default is PKAddressFieldNone. This property is deprecated and should not be used
      • setApplicationData

        public void setApplicationData​(NSData value)
        Optional merchant-supplied information about the payment request. Examples of this are an order or cart identifier. It will be signed and included in the resulting PKPaymentToken.
      • setBillingAddress

        @Deprecated
        public void setBillingAddress​(org.moe.natj.general.ptr.ConstVoidPtr value)
        Deprecated.
      • setBillingContact

        public void setBillingContact​(PKContact value)
        If the merchant already has a billing address on file, set it here.
      • setCountryCode

        public void setCountryCode​(java.lang.String value)
        The merchant's ISO country code.
      • setCurrencyCode

        public void setCurrencyCode​(java.lang.String value)
        Currency code for this payment.
      • setMerchantCapabilities

        public void setMerchantCapabilities​(long value)
        The payment processing capabilities of the merchant.
      • setMerchantIdentifier

        public void setMerchantIdentifier​(java.lang.String value)
        Identifies the merchant, as previously agreed with Apple. Must match one of the merchant identifiers in the application's entitlement.
      • setPaymentSummaryItems

        public void setPaymentSummaryItems​(NSArray<? extends PKPaymentSummaryItem> value)
        Array of PKPaymentSummaryItem objects which should be presented to the user. The last item should be the total you wish to charge, and should not be pending
      • setRequiredBillingAddressFields

        public void setRequiredBillingAddressFields​(long value)
        Indicates which billing address fields are required. The default is PKAddressFieldNone. This property is deprecated and should not be used.
      • setRequiredShippingAddressFields

        public void setRequiredShippingAddressFields​(long value)
        Indicates which shipping address fields are required. The default is PKAddressFieldNone. This property is deprecated and should not be used
      • setShippingAddress

        @Deprecated
        public void setShippingAddress​(org.moe.natj.general.ptr.ConstVoidPtr value)
        Deprecated.
        These properties have been deprecated and should not be used.
      • setShippingContact

        public void setShippingContact​(PKContact value)
        If the merchant already has a shipping address on file, set it here.
      • setShippingMethods

        public void setShippingMethods​(NSArray<? extends PKShippingMethod> value)
        Shipping methods supported by the merchant.
      • setShippingType

        public void setShippingType​(long value)
        Indicates the display mode for the shipping (e.g, "Pick Up", "Ship To", "Deliver To"). Localized. The default is PKShippingTypeShipping
      • setSupportedNetworks

        public void setSupportedNetworks​(NSArray<java.lang.String> value)
        The payment networks supported by the merchant, for example @[ PKPaymentNetworkVisa, PKPaymentNetworkMasterCard ]. This property constrains payment cards that may fund the payment.
      • shippingAddress

        @Deprecated
        public org.moe.natj.general.ptr.ConstVoidPtr shippingAddress()
        Deprecated.
        These properties have been deprecated and should not be used.
      • shippingContact

        public PKContact shippingContact()
        If the merchant already has a shipping address on file, set it here.
      • shippingMethods

        public NSArray<? extends PKShippingMethod> shippingMethods()
        Shipping methods supported by the merchant.
      • shippingType

        public long shippingType()
        Indicates the display mode for the shipping (e.g, "Pick Up", "Ship To", "Deliver To"). Localized. The default is PKShippingTypeShipping
      • supportedNetworks

        public NSArray<java.lang.String> supportedNetworks()
        The payment networks supported by the merchant, for example @[ PKPaymentNetworkVisa, PKPaymentNetworkMasterCard ]. This property constrains payment cards that may fund the payment.
      • paymentBillingAddressInvalidErrorWithKeyLocalizedDescription

        public static NSError paymentBillingAddressInvalidErrorWithKeyLocalizedDescription​(java.lang.String postalAddressKey,
                                                                                           java.lang.String localizedDescription)
        Convenience method to create a payment billing address error with the supplied CNPostalAddressKey and description
      • paymentContactInvalidErrorWithContactFieldLocalizedDescription

        public static NSError paymentContactInvalidErrorWithContactFieldLocalizedDescription​(java.lang.String field,
                                                                                             java.lang.String localizedDescription)
        Convenience method to create a payment contact error with the supplied field You may optionally provide a localized description to be displayed to the user. Available display space for descriptions may be limited, so you should keep your messages concise
      • paymentShippingAddressInvalidErrorWithKeyLocalizedDescription

        public static NSError paymentShippingAddressInvalidErrorWithKeyLocalizedDescription​(java.lang.String postalAddressKey,
                                                                                            java.lang.String localizedDescription)
        Convenience method to create a payment shipping address error with the supplied CNPostalAddressKey and description
      • paymentShippingAddressUnserviceableErrorWithLocalizedDescription

        public static NSError paymentShippingAddressUnserviceableErrorWithLocalizedDescription​(java.lang.String localizedDescription)
        Convenience method to create a payment shipping address service error with the supplied description
      • requiredBillingContactFields

        public NSSet<java.lang.String> requiredBillingContactFields()
        Indicates which billing contact fields the merchant requires in order to process a transaction. Currently only postal address may be requested for billing contact. For all other fields use -requiredShippingContactFields
      • requiredShippingContactFields

        public NSSet<java.lang.String> requiredShippingContactFields()
        Indicates which shipping contact fields the merchant requires in order to process a transactions
      • setRequiredBillingContactFields

        public void setRequiredBillingContactFields​(NSSet<java.lang.String> value)
        Indicates which billing contact fields the merchant requires in order to process a transaction. Currently only postal address may be requested for billing contact. For all other fields use -requiredShippingContactFields
      • setRequiredShippingContactFields

        public void setRequiredShippingContactFields​(NSSet<java.lang.String> value)
        Indicates which shipping contact fields the merchant requires in order to process a transactions
      • setSupportedCountries

        public void setSupportedCountries​(NSSet<java.lang.String> value)
        Set of two-letter ISO 3166 country codes. When provided will filter the selectable payment passes to those issued in the supported countries.
      • supportedCountries

        public NSSet<java.lang.String> supportedCountries()
        Set of two-letter ISO 3166 country codes. When provided will filter the selectable payment passes to those issued in the supported countries.