CustomerPaymentRequestsRepository
public protocol CustomerPaymentRequestsRepository
Undocumented
-
Retrieve a
CustomerPaymentRequest
by its IDDeclaration
Swift
func getBy( paymentRequestId: String, completion: @escaping ApiCompletion<CustomerPaymentRequest> )
Parameters
paymentRequestId
The ID.
-
Retrieve a
CustomerPaymentRequest
by a QR code ID associated to the requestDeclaration
Swift
func getBy( qrCodeId: String, completion: @escaping ApiCompletion<CustomerPaymentRequest> )
Parameters
qrCodeId
The QR Code ID.
-
makePayment(paymentRequestId:
primaryInstrument: secondaryInstruments: clientReference: preferences: challengeResponses: completion: ) Make a payment for a
CustomerPaymentRequest
Declaration
Swift
func makePayment( paymentRequestId: String, primaryInstrument: String?, secondaryInstruments: [SecondaryPaymentInstrument]?, clientReference: String?, preferences: PaymentPreferences?, challengeResponses: [ChallengeResponse]?, completion: @escaping ApiCompletion<CustomerTransactionSummary> )
Parameters
paymentRequestId
The
CustomerPaymentRequest
to pay for.primaryInstrument
The primary (or only) instrument to use to make the payment. If not present then the primary instrument from the customer preferences will be used.
secondaryInstruments
Other payment instruments to use to split payment.
clientReference
An optional client reference to be associated with the transaction.
preferences
Optional payment preferences.
challengeResponses
Used when needing to complete challenge(s) to complete payment.