SilverShop\Checkout\OrderProcessor::makePayment
Create a payment model, and provide link to redirect to external gateway, or redirect to order link.
Signature
public function makePayment(string
$gateway,
[array
$gatewaydata = ,
[string
$successUrl = NULL,
[string
$cancelUrl = NULL]]] )
Parameters
$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
Returns
- ServiceResponse|null
Errors/Exceptions
-
InvalidConfigurationException