2017-01-30 21:40:43 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Ninja\PaymentDrivers;
|
2016-06-20 17:14:43 +03:00
|
|
|
|
|
|
|
|
class TwoCheckoutPaymentDriver extends BasePaymentDriver
|
|
|
|
|
{
|
|
|
|
|
protected $transactionReferenceParam = 'cart_order_id';
|
|
|
|
|
|
2016-07-21 15:35:23 +03:00
|
|
|
// Calling completePurchase results in an 'invalid key' error
|
|
|
|
|
public function completeOffsitePurchase($input)
|
2016-06-20 17:14:43 +03:00
|
|
|
{
|
|
|
|
|
return $this->createPayment($input['order_number']);
|
|
|
|
|
}
|
|
|
|
|
}
|