PaymentAPI::MakePaymentMethod (open)

Create a value that can be stored in a PAYMENT value to store the method used to pay, but without actually setting up the PSP

Syntax

LOADLIB "mod::wrd/lib/payments.whlib";

RECORD FUNCTION MakePaymentMethod(RECORD paymentdata)

Parameters

RECORD paymentdata

Payment data

BOOLEAN isexternal

Ignored

STRING issuer

Issuer

STRING paymentmethodtag

Payment method tag (if set, don't set paymentprovider or paymentoptiontag)

STRING paymentoptiontag

Tag of the payment option

paymentprovider

Id or GUID of the payment provider

Return value

RECORD

Payment method record