$ipay88->setField('P_Phone', '0123456789'); $ipay88->setField('P_Addrl1', 'Lorem'); $ipay88->setField('P_Addrl2', 'Ipsum'); $ipay88->setField('P_City', 'Dolor'); $ipay88->setField('P_State', 'Kuala Lumpur'); $ipay88->setField('P_Zip', '50000'); $ipay88->setField('P_Country', 'Malaysia'); $ipay88->setField('ResponseURL', 'http://[yourdomain]/recurring_response.php'); } else { if ($ipay88->getTransactionType() == IPay88::TRANSACTION_TYPE_RECURRING_TERMINATION) { // For recurring termination request. // Only requires RefNo, MerchantCode, and Signature which is already set. } } } $ipay88->generateSignature(); $ipay88Fields = $ipay88->getFields(); ?> <!doctype html> <html> <head> <title>IPay88 - Test - Request</title> </head> <body> <h1>IPay88 payment gateway</h1> <p>Transaction type: <?php echo $ipay88->getTransactionType(); ?> </p>