|
10 | 10 |
|
11 | 11 | class dpopay |
12 | 12 | { |
13 | | - const DPO_URL_TEST = 'https://secure1.sandbox.directpay.online'; |
| 13 | + const DPO_URL_TEST = 'https://secure.3gdirectpay.com'; |
14 | 14 | const DPO_URL_LIVE = 'https://secure.3gdirectpay.com'; |
15 | 15 |
|
16 | 16 | private $dpoUrl; |
@@ -78,32 +78,7 @@ public function createToken($data) |
78 | 78 |
|
79 | 79 | $odate = date('Y/m/d H:i'); |
80 | 80 | $postXml = <<<POSTXML |
81 | | - <?xml version="1.0" encoding="utf-8"?> |
82 | | - <API3G> |
83 | | - <CompanyToken>$compToken</CompanyToken> |
84 | | - <Request>createToken</Request> |
85 | | - <Transaction> |
86 | | - <PaymentAmount>$paymentAmount</PaymentAmount> |
87 | | - <PaymentCurrency>$paymentCurrency</PaymentCurrency> |
88 | | - <CompanyRef>$reference</CompanyRef> |
89 | | - <customerFirstName>$customerFirstName</customerFirstName> |
90 | | - <customerLastName>$customerLastName</customerLastName> |
91 | | - <customerAddress>$customerAddress</customerAddress> |
92 | | - <customerCity>$customerCity</customerCity> |
93 | | - <customerPhone>$customerPhone</customerPhone> |
94 | | - <RedirectURL>$redirectURL</RedirectURL> |
95 | | - <BackURL>$backURL</BackURL> |
96 | | - <customerEmail>$customerEmail</customerEmail> |
97 | | - <TransactionSource>opencart</TransactionSource> |
98 | | - </Transaction> |
99 | | - <Services> |
100 | | - <Service> |
101 | | - <ServiceType>$accountType</ServiceType> |
102 | | - <ServiceDescription>$reference</ServiceDescription> |
103 | | - <ServiceDate>$odate</ServiceDate> |
104 | | - </Service> |
105 | | - </Services> |
106 | | - </API3G> |
| 81 | + <?xml version="1.0" encoding="utf-8"?> <API3G> <CompanyToken>$compToken</CompanyToken> <Request>createToken</Request> <Transaction> <PaymentAmount>$paymentAmount</PaymentAmount> <PaymentCurrency>$paymentCurrency</PaymentCurrency> <CompanyRef>$reference</CompanyRef> <customerFirstName>$customerFirstName</customerFirstName> <customerLastName>$customerLastName</customerLastName> <customerAddress>$customerAddress</customerAddress> <customerCity>$customerCity</customerCity> <customerPhone>$customerPhone</customerPhone> <RedirectURL>$redirectURL</RedirectURL> <BackURL>$backURL</BackURL> <customerEmail>$customerEmail</customerEmail> <TransactionSource>opencart</TransactionSource> </Transaction> <Services> <Service> <ServiceType>$accountType</ServiceType> <ServiceDescription>$reference</ServiceDescription> <ServiceDate>$odate</ServiceDate> </Service> </Services> </API3G> |
107 | 82 | POSTXML; |
108 | 83 |
|
109 | 84 | $curl = curl_init(); |
|
0 commit comments