Skip to content

Commit 79fbf89

Browse files
Merge pull request #2 from appinlet/1.0.1
2022-04-11: v1.0.1: Hotfix whitespace issue.
2 parents ccead8a + 800a617 commit 79fbf89

File tree

3 files changed

+6
-29
lines changed

3 files changed

+6
-29
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# DPO_OpenCart
22

3-
## DPO Group plugin v1.0.0 for OpenCart v1.0.0
3+
## DPO Group plugin v1.0.1 for OpenCart v3.0.3.x
44

55
This is the DPO Group plugin for OpenCart. Please feel free to contact
66
the [DPO Group support team](https://dpogroup.com/contact-us/) should you require any assistance.
77

88
## Installation
99

1010
Please navigate to the [releases page](https://github.com/DPO-Group/DPO_OpenCart/releases), download the
11-
latest release (v1.0.0) and unzip. You will then be able to follow the integration guide PDF which is included in the
11+
latest release (v1.0.1) and unzip. You will then be able to follow the integration guide PDF which is included in the
1212
zip.
1313

1414
## Collaboration

changelog.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
=====================================
22
Date : Version: Description
33
=====================================
4+
2022-04-11: v1.0.1: Hotfix whitespace issue.
5+
46
2021-07-30: v1.0.0 : Initial release.

upload/catalog/model/extension/payment/dpopay.php

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class dpopay
1212
{
13-
const DPO_URL_TEST = 'https://secure1.sandbox.directpay.online';
13+
const DPO_URL_TEST = 'https://secure.3gdirectpay.com';
1414
const DPO_URL_LIVE = 'https://secure.3gdirectpay.com';
1515

1616
private $dpoUrl;
@@ -78,32 +78,7 @@ public function createToken($data)
7878

7979
$odate = date('Y/m/d H:i');
8080
$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>
10782
POSTXML;
10883

10984
$curl = curl_init();

0 commit comments

Comments
 (0)