MerchantPaymentsRepository
public protocol MerchantPaymentsRepository
Undocumented
-
Retrieve a list of the payments initiated by the merchant, both pending and complete
Declaration
Swift
func listPayments( type: String?, page: Int?, pageSize: Int?, completion: @escaping ApiCompletion<MerchantPaymentSummaries> )
Parameters
type
The type of payment requests to return
page
The page of results to return with 1 indicating the first page (defaults to 1).
pageSize
The number of records to return for this page (current default is 25)
-
Create a new payment request for a customer
Declaration
Swift
func createPaymentRequest( paymentRequest: NewPaymentRequest, completion: @escaping ApiCompletion<CreatePaymentRequestResult> )
Parameters
paymentRequest
The details of the new payment request
-
Retrieve a payment request by it’s ID. The request may have been “completed” that is the customer has made a payment.
Declaration
Swift
func getPaymentRequestDetailsBy( paymentRequestId: String, completion: @escaping ApiCompletion<MerchantPaymentDetails> )
Parameters
paymentRequestId
The ID of the payment request to return.
-
Delete a payment request
Declaration
Swift
func deletePaymentRequest( paymentRequestId: String, completion: @escaping ApiCompletion<Void> )
Parameters
paymentRequestId
The payment request to delete
-
Refund a transaction to a customer
Declaration
Swift
func refundTransaction( transactionId: String, refundDetails: TransactionRefundDetails, completion: @escaping ApiCompletion<MerchantTransactionSummary> )
Parameters
transactionId
The transaction to refund.
refundDetails
The details of the refund.