File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -15,16 +15,17 @@ public function getData()
15
15
$ data ['NotificationURL ' ] = $ this ->getReturnUrl ();
16
16
17
17
//if (null !== $this->getLowProfile()) {
18
- // $data['Profile'] = "LOW";
18
+ $ data ['Profile ' ] = "LOW " ;
19
19
//}
20
20
21
21
$ items = $ this ->getItems ();
22
22
23
- if ($ items ) {
23
+ if ($ items )
24
+ {
24
25
$ i = count ($ items );
25
26
$ data ['Basket ' ] = "" ;
26
- foreach ($ items as $ n => $ item ) {
27
-
27
+ foreach ($ items as $ n => $ item )
28
+ {
28
29
$ data ['Basket ' ] .= ': ' . $ item ->getId ()." - " .$ item ->getName ();
29
30
$ data ['Basket ' ] .= ': ' . $ item ->getQuantity ();
30
31
$ data ['Basket ' ] .= ': ' . $ this ->formatCurrency ($ item ->getPrice ());
Original file line number Diff line number Diff line change @@ -16,6 +16,16 @@ public function getName()
16
16
return 'Sage Pay Server ' ;
17
17
}
18
18
19
+ public function getLowProfile ()
20
+ {
21
+ return $ this ->getParameter ('lowProfile ' );
22
+ }
23
+
24
+ public function setLowProfile ($ value )
25
+ {
26
+ return $ this ->setParameter ('lowProfile ' , $ value );
27
+ }
28
+
19
29
public function authorize (array $ parameters = array ())
20
30
{
21
31
return $ this ->createRequest ('\Omnipay\SagePay\Message\ServerAuthorizeRequest ' , $ parameters );
You can’t perform that action at this time.
0 commit comments