Package apple.passkit
Class PKPaymentRequest
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.passkit.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. API-Since: 8.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPKPaymentRequest(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static PKPaymentRequestalloc()static PKPaymentRequestallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)longapplePayLaterAvailability()Opt out of Apple Pay Later.@Nullable NSDataapplicationData()Optional merchant-supplied information about the payment request.static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)@Nullable PKAutomaticReloadPaymentRequestautomaticReloadPaymentRequest()Optional request to set up an automatic reload, such as a store card top-up.static @NotNull NSArray<java.lang.String>availableNetworks()The payment networks and platforms supported for in-app payment API-Since: 10.0@Nullable org.moe.natj.general.ptr.ConstVoidPtrbillingAddress()Deprecated.@Nullable PKContactbillingContact()If the merchant already has a billing address on file, set it here.static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()@NotNull java.lang.StringcountryCode()The merchant's ISO country code.@Nullable java.lang.StringcouponCode()An optional coupon code that is valid and has been applied to the payment request already.@NotNull java.lang.StringcurrencyCode()Currency code for this payment.static java.lang.StringdebugDescription_static()@Nullable PKDeferredPaymentRequestdeferredPaymentRequest()Optional request to set up a deferred payment, such as a hospitality booking or a pre-order.static java.lang.Stringdescription_static()static longhash_static()PKPaymentRequestinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)longmerchantCapabilities()The payment processing capabilities of the merchant.@NotNull java.lang.StringmerchantIdentifier()Identifies the merchant, as previously agreed with Apple.@NotNull NSArray<? extends PKPaymentTokenContext>multiTokenContexts()Array of payment token contexts that indicates multiple payment tokens are requested, one for each context object provided.static PKPaymentRequestnew_objc()static @NotNull NSErrorpaymentBillingAddressInvalidErrorWithKeyLocalizedDescription(@NotNull java.lang.String postalAddressKey, @Nullable java.lang.String localizedDescription)Convenience method to create a payment billing address error with the supplied CNPostalAddressKey and description API-Since: 11.0static @NotNull NSErrorpaymentContactInvalidErrorWithContactFieldLocalizedDescription(@NotNull java.lang.String field, @Nullable 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.static @NotNull NSErrorpaymentCouponCodeExpiredErrorWithLocalizedDescription(@Nullable java.lang.String localizedDescription)Convenience method to create a payment coupon code expired error with the supplied description.static @NotNull NSErrorpaymentCouponCodeInvalidErrorWithLocalizedDescription(@Nullable java.lang.String localizedDescription)Convenience method to create a payment coupon code invalid error with the supplied description.static @NotNull NSErrorpaymentShippingAddressInvalidErrorWithKeyLocalizedDescription(@NotNull java.lang.String postalAddressKey, @Nullable java.lang.String localizedDescription)Convenience method to create a payment shipping address error with the supplied CNPostalAddressKey and description API-Since: 11.0static @NotNull NSErrorpaymentShippingAddressUnserviceableErrorWithLocalizedDescription(@Nullable java.lang.String localizedDescription)Convenience method to create a payment shipping address service error with the supplied description API-Since: 11.0@NotNull NSArray<? extends PKPaymentSummaryItem>paymentSummaryItems()Array of PKPaymentSummaryItem objects which should be presented to the user.@Nullable PKRecurringPaymentRequestrecurringPaymentRequest()Optional request to set up a recurring payment, typically a subscription.longrequiredBillingAddressFields()Deprecated.@NotNull NSSet<java.lang.String>requiredBillingContactFields()Indicates which billing contact fields the merchant requires in order to process a transaction.longrequiredShippingAddressFields()Deprecated.@NotNull NSSet<java.lang.String>requiredShippingContactFields()Indicates which shipping contact fields the merchant requires in order to process a transactions API-Since: 11.0static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetApplePayLaterAvailability(long value)Opt out of Apple Pay Later.voidsetApplicationData(@Nullable NSData value)Optional merchant-supplied information about the payment request.voidsetAutomaticReloadPaymentRequest(@Nullable PKAutomaticReloadPaymentRequest value)Optional request to set up an automatic reload, such as a store card top-up.voidsetBillingAddress(@Nullable org.moe.natj.general.ptr.ConstVoidPtr value)Deprecated.voidsetBillingContact(@Nullable PKContact value)If the merchant already has a billing address on file, set it here.voidsetCountryCode(@NotNull java.lang.String value)The merchant's ISO country code.voidsetCouponCode(@Nullable java.lang.String value)An optional coupon code that is valid and has been applied to the payment request already.voidsetCurrencyCode(@NotNull java.lang.String value)Currency code for this payment.voidsetDeferredPaymentRequest(@Nullable PKDeferredPaymentRequest value)Optional request to set up a deferred payment, such as a hospitality booking or a pre-order.voidsetMerchantCapabilities(long value)The payment processing capabilities of the merchant.voidsetMerchantIdentifier(@NotNull java.lang.String value)Identifies the merchant, as previously agreed with Apple.voidsetMultiTokenContexts(@NotNull NSArray<? extends PKPaymentTokenContext> value)Array of payment token contexts that indicates multiple payment tokens are requested, one for each context object provided.voidsetPaymentSummaryItems(@NotNull NSArray<? extends PKPaymentSummaryItem> value)Array of PKPaymentSummaryItem objects which should be presented to the user.voidsetRecurringPaymentRequest(@Nullable PKRecurringPaymentRequest value)Optional request to set up a recurring payment, typically a subscription.voidsetRequiredBillingAddressFields(long value)Deprecated.voidsetRequiredBillingContactFields(@NotNull NSSet<java.lang.String> value)Indicates which billing contact fields the merchant requires in order to process a transaction.voidsetRequiredShippingAddressFields(long value)Deprecated.voidsetRequiredShippingContactFields(@NotNull NSSet<java.lang.String> value)Indicates which shipping contact fields the merchant requires in order to process a transactions API-Since: 11.0voidsetShippingAddress(@Nullable org.moe.natj.general.ptr.ConstVoidPtr value)Deprecated.voidsetShippingContact(@Nullable PKContact value)If the merchant already has a shipping address on file, set it here.voidsetShippingContactEditingMode(long value)Indicates the editing mode for the shipping contact.voidsetShippingMethods(@Nullable NSArray<? extends PKShippingMethod> value)Shipping methods supported by the merchant.voidsetShippingType(long value)Indicates the display mode for the shipping (e.g, "Pick Up", "Ship To", "Deliver To").voidsetSupportedCountries(@Nullable NSSet<java.lang.String> value)Set of two-letter ISO 3166 country codes.voidsetSupportedNetworks(@NotNull NSArray<java.lang.String> value)The payment networks supported by the merchant, for example @[ PKPaymentNetworkVisa, PKPaymentNetworkMasterCard ].voidsetSupportsCouponCode(boolean value)Indicates whether the merchant supports coupon code entry and validation.static voidsetVersion_static(long aVersion)@Nullable org.moe.natj.general.ptr.ConstVoidPtrshippingAddress()Deprecated.@Nullable PKContactshippingContact()If the merchant already has a shipping address on file, set it here.longshippingContactEditingMode()Indicates the editing mode for the shipping contact.@Nullable NSArray<? extends PKShippingMethod>shippingMethods()Shipping methods supported by the merchant.longshippingType()Indicates the display mode for the shipping (e.g, "Pick Up", "Ship To", "Deliver To").static org.moe.natj.objc.Classsuperclass_static()@Nullable NSSet<java.lang.String>supportedCountries()Set of two-letter ISO 3166 country codes.@NotNull NSArray<java.lang.String>supportedNetworks()The payment networks supported by the merchant, for example @[ PKPaymentNetworkVisa, PKPaymentNetworkMasterCard ].booleansupportsCouponCode()Indicates whether the merchant supports coupon code entry and validation.static booleanuseStoredAccessor()Deprecated.static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static PKPaymentRequest alloc()
-
allocWithZone
public static PKPaymentRequest allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
availableNetworks
@NotNull public static @NotNull NSArray<java.lang.String> availableNetworks()
The payment networks and platforms supported for in-app payment API-Since: 10.0
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull 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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
new_objc
public static PKPaymentRequest 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
@Nullable public @Nullable 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
@Nullable @Deprecated public @Nullable org.moe.natj.general.ptr.ConstVoidPtr billingAddress()
Deprecated.API-Since: 8.0 Deprecated-Since: 9.0 Deprecated-Message: ABRecordRef has been deprecated, and does not support all available address properties. You should migrate to billingContact.
-
billingContact
@Nullable public @Nullable PKContact billingContact()
If the merchant already has a billing address on file, set it here. API-Since: 9.0
-
countryCode
@NotNull public @NotNull java.lang.String countryCode()
The merchant's ISO country code.
-
currencyCode
@NotNull public @NotNull java.lang.String currencyCode()
Currency code for this payment.
-
init
public PKPaymentRequest init()
-
merchantCapabilities
public long merchantCapabilities()
The payment processing capabilities of the merchant.
-
merchantIdentifier
@NotNull public @NotNull 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
@NotNull public @NotNull 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
@Deprecated public long requiredBillingAddressFields()
Deprecated.Indicates which billing address fields are required. The default is PKAddressFieldNone. This property is deprecated and should not be used. API-Since: 8.0 Deprecated-Since: 11.0
-
requiredShippingAddressFields
@Deprecated public long requiredShippingAddressFields()
Deprecated.Indicates which shipping address fields are required. The default is PKAddressFieldNone. This property is deprecated and should not be used API-Since: 8.0 Deprecated-Since: 11.0
-
setApplicationData
public void setApplicationData(@Nullable @Nullable 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(@Nullable @Nullable org.moe.natj.general.ptr.ConstVoidPtr value)Deprecated.API-Since: 8.0 Deprecated-Since: 9.0 Deprecated-Message: ABRecordRef has been deprecated, and does not support all available address properties. You should migrate to billingContact.
-
setBillingContact
public void setBillingContact(@Nullable @Nullable PKContact value)If the merchant already has a billing address on file, set it here. API-Since: 9.0
-
setCountryCode
public void setCountryCode(@NotNull @NotNull java.lang.String value)The merchant's ISO country code.
-
setCurrencyCode
public void setCurrencyCode(@NotNull @NotNull 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(@NotNull @NotNull 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(@NotNull @NotNull 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
@Deprecated public void setRequiredBillingAddressFields(long value)
Deprecated.Indicates which billing address fields are required. The default is PKAddressFieldNone. This property is deprecated and should not be used. API-Since: 8.0 Deprecated-Since: 11.0
-
setRequiredShippingAddressFields
@Deprecated public void setRequiredShippingAddressFields(long value)
Deprecated.Indicates which shipping address fields are required. The default is PKAddressFieldNone. This property is deprecated and should not be used API-Since: 8.0 Deprecated-Since: 11.0
-
setShippingAddress
@Deprecated public void setShippingAddress(@Nullable @Nullable org.moe.natj.general.ptr.ConstVoidPtr value)Deprecated.These properties have been deprecated and should not be used. API-Since: 8.0 Deprecated-Since: 9.0 Deprecated-Message: ABRecordRef has been deprecated, and does not support all available address properties. You should migrate to shippingContact.
-
setShippingContact
public void setShippingContact(@Nullable @Nullable PKContact value)If the merchant already has a shipping address on file, set it here. API-Since: 9.0
-
setShippingMethods
public void setShippingMethods(@Nullable @Nullable 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 API-Since: 8.3
-
setSupportedNetworks
public void setSupportedNetworks(@NotNull @NotNull 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
@Nullable @Deprecated public @Nullable org.moe.natj.general.ptr.ConstVoidPtr shippingAddress()
Deprecated.These properties have been deprecated and should not be used. API-Since: 8.0 Deprecated-Since: 9.0 Deprecated-Message: ABRecordRef has been deprecated, and does not support all available address properties. You should migrate to shippingContact.
-
shippingContact
@Nullable public @Nullable PKContact shippingContact()
If the merchant already has a shipping address on file, set it here. API-Since: 9.0
-
shippingMethods
@Nullable public @Nullable 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 API-Since: 8.3
-
supportedNetworks
@NotNull public @NotNull 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
@NotNull public static @NotNull NSError paymentBillingAddressInvalidErrorWithKeyLocalizedDescription(@NotNull @NotNull java.lang.String postalAddressKey, @Nullable @Nullable java.lang.String localizedDescription)
Convenience method to create a payment billing address error with the supplied CNPostalAddressKey and description API-Since: 11.0
-
paymentContactInvalidErrorWithContactFieldLocalizedDescription
@NotNull public static @NotNull NSError paymentContactInvalidErrorWithContactFieldLocalizedDescription(@NotNull @NotNull java.lang.String field, @Nullable @Nullable 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 API-Since: 11.0
-
paymentShippingAddressInvalidErrorWithKeyLocalizedDescription
@NotNull public static @NotNull NSError paymentShippingAddressInvalidErrorWithKeyLocalizedDescription(@NotNull @NotNull java.lang.String postalAddressKey, @Nullable @Nullable java.lang.String localizedDescription)
Convenience method to create a payment shipping address error with the supplied CNPostalAddressKey and description API-Since: 11.0
-
paymentShippingAddressUnserviceableErrorWithLocalizedDescription
@NotNull public static @NotNull NSError paymentShippingAddressUnserviceableErrorWithLocalizedDescription(@Nullable @Nullable java.lang.String localizedDescription)
Convenience method to create a payment shipping address service error with the supplied description API-Since: 11.0
-
requiredBillingContactFields
@NotNull public @NotNull 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 API-Since: 11.0
-
requiredShippingContactFields
@NotNull public @NotNull NSSet<java.lang.String> requiredShippingContactFields()
Indicates which shipping contact fields the merchant requires in order to process a transactions API-Since: 11.0
-
setRequiredBillingContactFields
public void setRequiredBillingContactFields(@NotNull @NotNull 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 API-Since: 11.0
-
setRequiredShippingContactFields
public void setRequiredShippingContactFields(@NotNull @NotNull NSSet<java.lang.String> value)Indicates which shipping contact fields the merchant requires in order to process a transactions API-Since: 11.0
-
setSupportedCountries
public void setSupportedCountries(@Nullable @Nullable 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. API-Since: 11.0
-
supportedCountries
@Nullable public @Nullable 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. API-Since: 11.0
-
couponCode
@Nullable public @Nullable java.lang.String couponCode()
An optional coupon code that is valid and has been applied to the payment request already. API-Since: 15.0
-
paymentCouponCodeExpiredErrorWithLocalizedDescription
@NotNull public static @NotNull NSError paymentCouponCodeExpiredErrorWithLocalizedDescription(@Nullable @Nullable java.lang.String localizedDescription)
Convenience method to create a payment coupon code expired error with the supplied description. API-Since: 15.0
-
paymentCouponCodeInvalidErrorWithLocalizedDescription
@NotNull public static @NotNull NSError paymentCouponCodeInvalidErrorWithLocalizedDescription(@Nullable @Nullable java.lang.String localizedDescription)
Convenience method to create a payment coupon code invalid error with the supplied description. API-Since: 15.0
-
setCouponCode
public void setCouponCode(@Nullable @Nullable java.lang.String value)An optional coupon code that is valid and has been applied to the payment request already. API-Since: 15.0
-
setShippingContactEditingMode
public void setShippingContactEditingMode(long value)
Indicates the editing mode for the shipping contact. The default is PKShippingContactEditingModeEnabled. API-Since: 15.0
-
setSupportsCouponCode
public void setSupportsCouponCode(boolean value)
Indicates whether the merchant supports coupon code entry and validation. Defaults to NO. API-Since: 15.0
-
shippingContactEditingMode
public long shippingContactEditingMode()
Indicates the editing mode for the shipping contact. The default is PKShippingContactEditingModeEnabled. API-Since: 15.0
-
supportsCouponCode
public boolean supportsCouponCode()
Indicates whether the merchant supports coupon code entry and validation. Defaults to NO. API-Since: 15.0
-
automaticReloadPaymentRequest
@Nullable public @Nullable PKAutomaticReloadPaymentRequest automaticReloadPaymentRequest()
Optional request to set up an automatic reload, such as a store card top-up. This payment request will receive a merchant-specific payment token if the payment network supports merchant-specific payment tokens. This property cannot be used simultaneously with multi token contexts, recurring payment requests or deferred payment requests. Merchant-specific payment tokens are not supported on watchOS. API-Since: 16.0
-
multiTokenContexts
@NotNull public @NotNull NSArray<? extends PKPaymentTokenContext> multiTokenContexts()
Array of payment token contexts that indicates multiple payment tokens are requested, one for each context object provided. The sum of all context amounts must be less than or equal to the total amount of the enclosing payment request, as indicated by the last payment summary item. This property cannot be used simultaneously with recurring, automatic reload or deferred payment requests. Multiple payment tokens are not supported on watchOS. API-Since: 16.0
-
recurringPaymentRequest
@Nullable public @Nullable PKRecurringPaymentRequest recurringPaymentRequest()
Optional request to set up a recurring payment, typically a subscription. This payment request will receive a merchant-specific payment token if the payment network supports merchant-specific payment tokens. This property cannot be used simultaneously with multi token contexts, automatic reload or deferred payment requests. Merchant-specific payment tokens are not supported on watchOS. API-Since: 16.0
-
setAutomaticReloadPaymentRequest
public void setAutomaticReloadPaymentRequest(@Nullable @Nullable PKAutomaticReloadPaymentRequest value)Optional request to set up an automatic reload, such as a store card top-up. This payment request will receive a merchant-specific payment token if the payment network supports merchant-specific payment tokens. This property cannot be used simultaneously with multi token contexts, recurring payment requests or deferred payment requests. Merchant-specific payment tokens are not supported on watchOS. API-Since: 16.0
-
setMultiTokenContexts
public void setMultiTokenContexts(@NotNull @NotNull NSArray<? extends PKPaymentTokenContext> value)Array of payment token contexts that indicates multiple payment tokens are requested, one for each context object provided. The sum of all context amounts must be less than or equal to the total amount of the enclosing payment request, as indicated by the last payment summary item. This property cannot be used simultaneously with recurring, automatic reload or deferred payment requests. Multiple payment tokens are not supported on watchOS. API-Since: 16.0
-
setRecurringPaymentRequest
public void setRecurringPaymentRequest(@Nullable @Nullable PKRecurringPaymentRequest value)Optional request to set up a recurring payment, typically a subscription. This payment request will receive a merchant-specific payment token if the payment network supports merchant-specific payment tokens. This property cannot be used simultaneously with multi token contexts, automatic reload or deferred payment requests. Merchant-specific payment tokens are not supported on watchOS. API-Since: 16.0
-
applePayLaterAvailability
public long applePayLaterAvailability()
Opt out of Apple Pay Later. Defaults to enabled. Only set this property if you have a specific requirement to disable Apple Pay Later. Be sure to select the correct mode that matches your requirement, since this will be displayed to the user. API-Since: 17.0
-
deferredPaymentRequest
@Nullable public @Nullable PKDeferredPaymentRequest deferredPaymentRequest()
Optional request to set up a deferred payment, such as a hospitality booking or a pre-order. This payment request will receive a merchant-specific payment token if the payment network supports merchant-specific payment tokens. This property cannot be used simultaneously with: multi token contexts, recurring payment requests or automatic reload payment requests. Merchant-specific payment tokens are not supported on watchOS. API-Since: 16.4
-
setApplePayLaterAvailability
public void setApplePayLaterAvailability(long value)
Opt out of Apple Pay Later. Defaults to enabled. Only set this property if you have a specific requirement to disable Apple Pay Later. Be sure to select the correct mode that matches your requirement, since this will be displayed to the user. API-Since: 17.0
-
setDeferredPaymentRequest
public void setDeferredPaymentRequest(@Nullable @Nullable PKDeferredPaymentRequest value)Optional request to set up a deferred payment, such as a hospitality booking or a pre-order. This payment request will receive a merchant-specific payment token if the payment network supports merchant-specific payment tokens. This property cannot be used simultaneously with: multi token contexts, recurring payment requests or automatic reload payment requests. Merchant-specific payment tokens are not supported on watchOS. API-Since: 16.4
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-