File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 6
6
namespace Omnipay \Eway ;
7
7
8
8
use Omnipay \Common \AbstractGateway ;
9
+ use Omnipay \Omnipay ;
9
10
10
11
/**
11
12
* eWAY Rapid Transparent Redirect Gateway
@@ -64,6 +65,13 @@ public function setPassword($value)
64
65
65
66
public function purchase (array $ parameters = array ())
66
67
{
68
+ if (!empty ($ parameters ['cardTransactionType ' ]) && $ parameters ['cardTransactionType ' ] === 'continuous ' ) {
69
+ $ gateway = Omnipay::create ('Eway_RapidDirect ' );
70
+ $ gateway ->setApiKey ($ this ->getApiKey ());
71
+ $ gateway ->setPassword ($ this ->getPassword ());
72
+ $ gateway ->setTestMode ($ this ->getTestMode ());
73
+ return $ gateway ->createRequest ('\Omnipay\Eway\Message\RapidDirectPurchaseRequest ' , $ parameters );
74
+ }
67
75
return $ this ->createRequest ('\Omnipay\Eway\Message\RapidPurchaseRequest ' , $ parameters );
68
76
}
69
77
Original file line number Diff line number Diff line change 6
6
namespace Omnipay \Eway ;
7
7
8
8
use Omnipay \Common \AbstractGateway ;
9
+ use Omnipay \Omnipay ;
9
10
10
11
/**
11
12
* eWAY Rapid Responsive Shared Page Gateway
@@ -61,6 +62,13 @@ public function setPassword($value)
61
62
62
63
public function purchase (array $ parameters = array ())
63
64
{
65
+ if (!empty ($ parameters ['cardTransactionType ' ]) && $ parameters ['cardTransactionType ' ] === 'continuous ' ) {
66
+ $ gateway = Omnipay::create ('Eway_RapidDirect ' );
67
+ $ gateway ->setApiKey ($ this ->getApiKey ());
68
+ $ gateway ->setPassword ($ this ->getPassword ());
69
+ $ gateway ->setTestMode ($ this ->getTestMode ());
70
+ return $ gateway ->createRequest ('\Omnipay\Eway\Message\RapidDirectPurchaseRequest ' , $ parameters );
71
+ }
64
72
return $ this ->createRequest ('\Omnipay\Eway\Message\RapidSharedPurchaseRequest ' , $ parameters );
65
73
}
66
74
You can’t perform that action at this time.
0 commit comments