Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change TPI domain #173

Merged
merged 1 commit into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

## 12.0.0 (2023-11-21)
- Update xendit url

## 11.0.1 (2023-10-26)
- Fix wrong subtotal in Xendit invoice (Remove Order child items)

Expand Down
2 changes: 1 addition & 1 deletion Controller/Checkout/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private function getApiRequestData(Order $order)
*/
private function createInvoice($requestData)
{
$invoiceUrl = $this->getDataHelper()->getXenditApiUrl() . "/payment/xendit/invoice";
$invoiceUrl = $this->getDataHelper()->getXenditApiUrl() . "/tpi/payment/xendit/invoice";
$invoiceMethod = Request::METHOD_POST;
$invoice = '';

Expand Down
2 changes: 1 addition & 1 deletion Controller/Checkout/InvoiceMultishipping.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function execute()
*/
private function createInvoice($requestData)
{
$invoiceUrl = $this->getDataHelper()->getXenditApiUrl() . "/payment/xendit/invoice";
$invoiceUrl = $this->getDataHelper()->getXenditApiUrl() . "/tpi/payment/xendit/invoice";
$invoiceMethod = Request::METHOD_POST;

try {
Expand Down
2 changes: 1 addition & 1 deletion Controller/Checkout/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ private function checkOrder(Order $order, $callbackPayload, $invoice, $callbackD
*/
private function getXenditInvoice($invoiceId)
{
$invoiceUrl = $this->dataHelper->getXenditApiUrl() . "/payment/xendit/invoice/$invoiceId";
$invoiceUrl = $this->dataHelper->getXenditApiUrl() . "/tpi/payment/xendit/invoice/$invoiceId";

$this->logger->info("getXenditInvoice", ['get_invoice_url' => $invoiceUrl]);
$invoiceMethod = Request::METHOD_GET;
Expand Down
2 changes: 1 addition & 1 deletion Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/
class Data extends AbstractHelper
{
const XENDIT_M2INVOICE_VERSION = '11.0.1';
const XENDIT_M2INVOICE_VERSION = '12.0.0';

/**
* @var StoreManagerInterface
Expand Down
2 changes: 1 addition & 1 deletion Helper/Metric.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function trackMetricCount(array $requestData)
{
try {
return $this->apiRequestHelper->request(
$this->dataHelper->getXenditApiUrl() . "/log/metrics/count",
$this->dataHelper->getXenditApiUrl() . "/tpi/log/metrics/count",
\Zend\Http\Request::METHOD_POST,
$requestData
);
Expand Down
2 changes: 1 addition & 1 deletion Model/Payment/CC.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private function handleRefundResult($payment, $refund, $canRefundMore)
*/
private function requestRefund($chargeId, $requestData)
{
$refundUrl = $this->dataHelper->getXenditApiUrl() . "/payment/xendit/credit-card/charges/$chargeId/refund";
$refundUrl = $this->dataHelper->getXenditApiUrl() . "/tpi/payment/xendit/credit-card/charges/$chargeId/refund";
$refundMethod = \Zend\Http\Request::METHOD_POST;

try {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "xendit/m2invoice",
"description": "Xendit Payment Gateway Module",
"type": "magento2-module",
"version": "11.0.1",
"version": "12.0.0",
"license": [
"GPL-3.0"
],
Expand Down
2 changes: 1 addition & 1 deletion etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<payment>
<xendit>
<xendit_env>test</xendit_env>
<xendit_url>https://tpi.xendit.co</xendit_url>
<xendit_url>https://tpi-gateway.xendit.co</xendit_url>
<ui_url>https://tpi-ui.xendit.co</ui_url>
<active>1</active>
<model>Xendit\M2Invoice\Model\Payment\Xendit</model>
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Xendit_M2Invoice" setup_version="11.0.1" active="true"></module>
<module name="Xendit_M2Invoice" setup_version="12.0.0" active="true"></module>
</config>