File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed
src/integready/firstdataapi Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -18,15 +18,15 @@ Add this to your project composer.json:
1818
1919```
2020 "require": {
21- "vinceg /firstdataapi": "dev-master"
21+ "integready /firstdataapi": "dev-master"
2222 },
2323```
2424
2525To use the component:
2626
2727``` php
2828<?php
29- use VinceG\FirstDataApi \FirstData;
29+ use integready\firstdataapi \FirstData;
3030
3131//
3232// 3rd Parameter sets debug mode on.
Original file line number Diff line number Diff line change 77 "authors" : [],
88 "require" : {
99 "php" : " >=7.1" ,
10- "ext-curl" : " *"
10+ "ext-curl" : " *" ,
11+ "ext-json" : " *"
1112 },
1213 "autoload" : {
1314 "psr-0" : {
14- "integready\\ FirstDataApi \\ " : " integready/FirstDataApi /src"
15+ "integready\\ firstdataapi \\ " : " integready/firstdataapi /src"
1516 }
1617 },
17- "target-dir" : " integready/FirstDataApi " ,
18+ "target-dir" : " integready/firstdataapi " ,
1819 "minimum-stability" : " stable"
1920}
Original file line number Diff line number Diff line change 11<?php
2- namespace integready \FirstDataApi ;
2+
3+ namespace integready \firstdataapi ;
34
45/**
56 * First Data
@@ -94,7 +95,6 @@ class FirstData
9495 CURLOPT_PORT => 443 ,
9596 CURLOPT_USERAGENT => 'curl-php ' ,
9697 CURLOPT_FOLLOWLOCATION => false ,
97- CURLOPT_RETURNTRANSFER => true ,
9898 CURLOPT_CUSTOMREQUEST => 'POST ' ,
9999 CURLOPT_HTTPHEADER => array ('Content-Type: application/json; charset=UTF-8; ' ,'Accept: application/json ' ),
100100 );
@@ -336,6 +336,8 @@ public function setCreditCardAddress($address) {
336336 */
337337 public function setCreditCardAddressNew ($ address ) {
338338 $ this ->setPostData ('address ' ,$ address );
339+
340+ return $ this ;
339341 }
340342 /**
341343 * set credit card cvv code
You can’t perform that action at this time.
0 commit comments