Skip to content

Commit 729bfe2

Browse files
Merge pull request #173 from xendit/TPI-9731/change-tpi-domain
change TPI domain
2 parents b604552 + 9dd5249 commit 729bfe2

File tree

10 files changed

+12
-9
lines changed

10 files changed

+12
-9
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CHANGELOG
22

3+
## 12.0.0 (2023-11-21)
4+
- Update xendit url
5+
36
## 11.0.1 (2023-10-26)
47
- Fix wrong subtotal in Xendit invoice (Remove Order child items)
58

Controller/Checkout/Invoice.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private function getApiRequestData(Order $order)
134134
*/
135135
private function createInvoice($requestData)
136136
{
137-
$invoiceUrl = $this->getDataHelper()->getXenditApiUrl() . "/payment/xendit/invoice";
137+
$invoiceUrl = $this->getDataHelper()->getXenditApiUrl() . "/tpi/payment/xendit/invoice";
138138
$invoiceMethod = Request::METHOD_POST;
139139
$invoice = '';
140140

Controller/Checkout/InvoiceMultishipping.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function execute()
167167
*/
168168
private function createInvoice($requestData)
169169
{
170-
$invoiceUrl = $this->getDataHelper()->getXenditApiUrl() . "/payment/xendit/invoice";
170+
$invoiceUrl = $this->getDataHelper()->getXenditApiUrl() . "/tpi/payment/xendit/invoice";
171171
$invoiceMethod = Request::METHOD_POST;
172172

173173
try {

Controller/Checkout/Notification.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ private function checkOrder(Order $order, $callbackPayload, $invoice, $callbackD
413413
*/
414414
private function getXenditInvoice($invoiceId)
415415
{
416-
$invoiceUrl = $this->dataHelper->getXenditApiUrl() . "/payment/xendit/invoice/$invoiceId";
416+
$invoiceUrl = $this->dataHelper->getXenditApiUrl() . "/tpi/payment/xendit/invoice/$invoiceId";
417417

418418
$this->logger->info("getXenditInvoice", ['get_invoice_url' => $invoiceUrl]);
419419
$invoiceMethod = Request::METHOD_GET;

Helper/Data.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*/
3131
class Data extends AbstractHelper
3232
{
33-
const XENDIT_M2INVOICE_VERSION = '11.0.1';
33+
const XENDIT_M2INVOICE_VERSION = '12.0.0';
3434

3535
/**
3636
* @var StoreManagerInterface

Helper/Metric.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function trackMetricCount(array $requestData)
7777
{
7878
try {
7979
return $this->apiRequestHelper->request(
80-
$this->dataHelper->getXenditApiUrl() . "/log/metrics/count",
80+
$this->dataHelper->getXenditApiUrl() . "/tpi/log/metrics/count",
8181
\Zend\Http\Request::METHOD_POST,
8282
$requestData
8383
);

Model/Payment/CC.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private function handleRefundResult($payment, $refund, $canRefundMore)
106106
*/
107107
private function requestRefund($chargeId, $requestData)
108108
{
109-
$refundUrl = $this->dataHelper->getXenditApiUrl() . "/payment/xendit/credit-card/charges/$chargeId/refund";
109+
$refundUrl = $this->dataHelper->getXenditApiUrl() . "/tpi/payment/xendit/credit-card/charges/$chargeId/refund";
110110
$refundMethod = \Zend\Http\Request::METHOD_POST;
111111

112112
try {

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "xendit/m2invoice",
33
"description": "Xendit Payment Gateway Module",
44
"type": "magento2-module",
5-
"version": "11.0.1",
5+
"version": "12.0.0",
66
"license": [
77
"GPL-3.0"
88
],

etc/config.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<payment>
66
<xendit>
77
<xendit_env>test</xendit_env>
8-
<xendit_url>https://tpi.xendit.co</xendit_url>
8+
<xendit_url>https://tpi-gateway.xendit.co</xendit_url>
99
<ui_url>https://tpi-ui.xendit.co</ui_url>
1010
<active>1</active>
1111
<model>Xendit\M2Invoice\Model\Payment\Xendit</model>

etc/module.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0"?>
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
3-
<module name="Xendit_M2Invoice" setup_version="11.0.1" active="true"></module>
3+
<module name="Xendit_M2Invoice" setup_version="12.0.0" active="true"></module>
44
</config>

0 commit comments

Comments
 (0)