PaymentAPI::ListPaymentOptions (open)

Lists the payment options for a specific payment provider

Syntax

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

RECORD ARRAY FUNCTION ListPaymentOptions(INTEGER paymentprovider, RECORD options)

Parameters

INTEGER paymentprovider

Id of the payment provider

RECORD options

Return value

RECORD ARRAY

List of payment options

STRING htmlagreeterms

If set, HTML of an agreement option that must be offered to use this payment method (terms and conditions)

BOOLEAN islive

Whether this option connects to a live platform

RECORD ARRAY issuers

List of issuers

STRING issuers.rowkey

key to use for 'issuer' when prepareing the payment

STRING issuers.title

title for this issuer (eg ABN Amro bank)

STRING paymentoptiontag

key to use when selecting this payment method

STRING requirements

List of specific requirements when calling this method (wrd_gender, wrd_dateofbirth)

STRING title

payment method title (eg iDEAL)