PaymentInstrumentsRepository
public protocol PaymentInstrumentsRepository
Undocumented
-
Get the specified payment instrument of the customer.
Declaration
Swift
func getByToken( paymentToken: String, publicKey: String?, completion: @escaping ApiCompletion<IndividualPaymentInstrument> )
Parameters
paymentToken
The payment token of the payment instrument to fetch.
publicKey
A public key used to encrypt sensitive instrument data and include that encrypted data in the response sent back to the consumer.
-
Retrieve the customer’s registered
PaymentInstruments
Declaration
Swift
func list(completion: @escaping ApiCompletion<WalletContents>)
-
Delete a
PaymentInstrument
from aWallet
Declaration
Swift
func delete( instrument: String, completion: @escaping ApiCompletion<Void> )
Parameters
instrument
The payment instrument to delete.
-
Initiate the addition of a new
PaymentInstrument
for the customer.To complete the addition the customer will have to use the returned URL details to enter the instrument details.
Declaration
Swift
func initiateAddition( instrument: PaymentInstrumentAddition, completion: @escaping ApiCompletion<PaymentInstrumentAdditionResult> )
Parameters
instrument
Initial details to begin the addition workflow.