/** * Generate a return/notify url for off-site gateways (completePayment). * @return string endpoint url */ protected function getEndpointURL($action, $identifier) { return PaymentGatewayController::get_endpoint_url($action, $identifier); }
public function testReturnUrlGeneration() { $url = PaymentGatewayController::get_endpoint_url('action', "UniqueHashHere12345"); $this->assertEquals(Director::absoluteURL("paymentendpoint/UniqueHashHere12345/action"), $url, "generated url"); }