Initializes the payment method object with the specified type and descriptive information.
- iOS 10.0+
- Mac Catalyst 13.0+
- watchOS 3.2+
The payment method type. For a list of possible values, see
The name of the payment method. For a branded credit card, you might specify the specific brand name of the card. If the user provides you with payment information, such as credit card information, you can specify the name that the user assigned to that payment method or whatever descriptive string your company assigned to it.
Additional information that when combined with the
nameparameter helps you identify the payment method. You can use identification hints to help differentiate payment methods with similar names. For example, if the user has two credit cards of the same type, you might use this parameter to specify the last four digits of the credit card.
An image that visually represents the payment method. For payment methods with an associated brand, use the image associated with the brand.
An initialized payment method object.
This method stores copies of the
icon parameters that you provide.
Don’t use this method to create payment method objects for Apple Pay. Instead, use the
apple to obtain the correct payment method object.