CompleteWRDTestpayment2 (open)

Accept or reject testprovider payment

Syntax

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

RECORD FUNCTION CompleteWRDTestpayment2(STRING payurl, STRING approvetype, RECORD options)

Parameters

STRING payurl

Payment URL as received in the payment submitinstruction

STRING approvetype

Either 'approved' or 'failed'

RECORD options

Return value

RECORD

Description

Navigates to the requested payment URL (if using the test-provider) and click the specified approval button. Use this when testing payment flows from HareScript tests