MerchantPaymentSessionsRepository
public protocol MerchantPaymentSessionsRepository
Undocumented
-
Create a new
PaymentSession
Declaration
Swift
func create( request: CreatePaymentSessionRequest, completion: @escaping ApiCompletion<CreatePaymentSessionResult> )
Parameters
request
The details for the new session.
-
Retrieve a
PaymentSession
Declaration
Swift
func getBy(paymentSessionId: String, completion: @escaping ApiCompletion<PaymentSession>)
Parameters
paymentSessionId
The ID of the payment session to retrieve.
-
Update a
PaymentSession
Declaration
Swift
func update( paymentSessionId: String, session: MerchantUpdatePaymentSessionRequest, completion: @escaping ApiCompletion<Void> )
Parameters
paymentSessionId
The payment session to update
session
The details to update the session with
-
Delete a
PaymentSession
Declaration
Swift
func delete( paymentSessionId: String, completion: @escaping ApiCompletion<Void> )
Parameters
paymentSessionId
The payment session to delete.