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 payurlPayment URL as received in the payment submitinstruction
STRING approvetypeEither 'approved' or 'failed'
RECORD optionsReturn value
RECORDDescription
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