Skip to main content

createPurchasePaymentAdapter

@totemsdk/edge-adapters


@totemsdk/edge-adapters / createPurchasePaymentAdapter

Function: createPurchasePaymentAdapter()

createPurchasePaymentAdapter(config): object

Create a PurchasePaymentPort with an atomic idempotency-key claim.

Parameters​

config​

PurchasePaymentAdapterConfig

Returns​

object

pay()​

pay(params): Promise<EdgeOperationResult<PaymentResult>>

Parameters​

params​
amount​

string

idempotencyKey?​

string

memo?​

string

recipient​

string

tokenId?​

string

Returns​

Promise<EdgeOperationResult<PaymentResult>>