Create a payment model, and provide link to redirect to external gateway,
or redirect to order link.
public makePayment ( string $gateway, array $gatewaydata = [], string $successUrl = null, string $cancelUrl = null ) : SilverStripe\Omnipay\Service\ServiceResponse | null | ||
$gateway | string | the gateway to use |
$gatewaydata | array | the data that should be passed to the gateway |
$successUrl | string | (optional) return URL for successful payments. If left blank, the default return URL will be used @see getReturnUrl |
$cancelUrl | string | (optional) return URL for cancelled/failed payments |
리턴 | SilverStripe\Omnipay\Service\ServiceResponse | null |