Antom, leading provider of tailored payment solutions

AMSPaymentElement

AMSPaymentElement
is the core class of Payment Element, integrated from
AMSProductBase
, and is the main class used to integrate the Antom Payment Element payment component in iOS applications. Merchants can complete SDK initialization configuration, create payment components, submit payments, reset, and destroy operations through this class.

Declaration

Objective-C
Swift

Access singleton

Objective-C
Swift
Name
Type
Description
shared
AMSPaymentElement?
AMSPaymentElement
singleton instance.

Instance methods

AMSPaymentElement
singleton instance provides the following methods:
Method name
Description
Used to initialize SDK configuration.
Used to preload WebApp pages and KYC page resources.
Used to create and display the payment or card binding component UI. This method is mutually exclusive with .
Used to confirm payment (UI-less payment scenario). This method is mutually exclusive with .
Used to reset the payment or card binding process and clear the current state.
Used to destroy the instance and release all associated resources.

Property

Objective-C
Swift
Name
Type
Description
paymentDelegate
AMSPaymentProtocol
Payment protocol delegate, refer to .

Usage instructions

Usage example

Objective-C
Swift