Skip to content

Commit b71ac9b

Browse files
authored
Merge pull request #495 from omise/feature/MIT-3148-Rebranding-Omise
Feature/mit 3148 rebranding omise
2 parents f29add9 + 91bdcf4 commit b71ac9b

File tree

19 files changed

+59
-58
lines changed

19 files changed

+59
-58
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CHANGELOG
22

3+
## [v3.9.0 _(Mar, 17, 2025)_](https://github.com/omise/omise-magento/releases/tag/v3.9.0)
4+
- Rebranding Opn Payments to Omise (PR: [#495](https://github.com/omise/omise-magento/pull/495))
5+
36
## [v3.8.0 _(Jul, 24, 2024)_](https://github.com/omise/omise-magento/releases/tag/v3.8.0)
47
- Resolve dynamic property deprecation error for PHP 8.2 and above (PR: [#485](https://github.com/omise/omise-magento/pull/485))
58

Controller/Callback/Offsite.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ private function handleSuccess($order, $chargeId, $payment, $paymentMethod)
182182
$payment->addTransactionCommentsToOrder(
183183
$payment->addTransaction(Transaction::TYPE_PAYMENT, $invoice),
184184
__(
185-
"Amount of %1 has been paid via Opn Payments $paymentMethodLabel payment",
185+
"Amount of %1 has been paid via Omise $paymentMethodLabel payment",
186186
$order->getBaseCurrency()->formatTxt($invoice->getBaseGrandTotal())
187187
)
188188
);
@@ -210,7 +210,7 @@ private function handlePending($order, $payment)
210210
$transaction,
211211
__('The payment is under processing.<br/>Due to Bank process, this might take up to an hour to
212212
complete. Click "Accept" or "Deny" to accept or deny the payment manually, after the result of
213-
the processing has been updated (check the result on the Opn Payments Dashboard).')
213+
the processing has been updated (check the result on the Omise Dashboard).')
214214
);
215215

216216
$order->save();

Controller/Callback/Threedsecure.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function execute()
168168
$payment->addTransactionCommentsToOrder(
169169
$payment->addTransaction(Transaction::TYPE_CAPTURE, $invoice),
170170
__(
171-
'Captured amount of %1 online via Opn Payments Gateway (3-D Secure payment).',
171+
'Captured amount of %1 online via Omise Gateway (3-D Secure payment).',
172172
$order->getBaseCurrency()->formatTxt($invoice->getBaseGrandTotal())
173173
)
174174
);
@@ -177,7 +177,7 @@ public function execute()
177177
$payment->addTransaction(Transaction::TYPE_AUTH),
178178
$payment->prependMessage(
179179
__(
180-
'Authorized amount of %1 via Opn Payments Gateway (3-D Secure payment).',
180+
'Authorized amount of %1 via Omise Gateway (3-D Secure payment).',
181181
$order->getBaseCurrency()->formatTxt($order->getTotalDue())
182182
)
183183
)

Cron/OrderSyncStatus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private function sync()
177177
if ($isExpired) {
178178
$this->syncStatus->cancelOrderInvoice($this->order);
179179
$this->order
180-
->registerCancellation(__('Opn Payments: Payment expired. (cron job sync).'))
180+
->registerCancellation(__('Omise : Payment expired. (cron job sync).'))
181181
->save();
182182
}
183183
}

Gateway/Command/CreditCardStrategyCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function execute(array $commandSubject)
109109
$payment->addTransactionCommentsToOrder(
110110
$payment->addTransaction(Transaction::TYPE_CAPTURE, $invoice),
111111
__(
112-
'Captured amount of %1 online via Opn Payments Gateway.',
112+
'Captured amount of %1 online via Omise Gateway.',
113113
$order->getBaseCurrency()->formatTxt($invoice->getBaseGrandTotal())
114114
)
115115
);
@@ -118,7 +118,7 @@ public function execute(array $commandSubject)
118118
$payment->addTransaction(Transaction::TYPE_AUTH),
119119
$payment->prependMessage(
120120
__(
121-
'Authorized amount of %1 via Opn Payments Gateway.',
121+
'Authorized amount of %1 via Omise Gateway.',
122122
$order->getBaseCurrency()->formatTxt($order->getTotalDue())
123123
)
124124
)

Gateway/Http/Client/PaymentRefund.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function placeRequest(\Magento\Payment\Gateway\Http\TransferInterface $tr
2626
$sourceType = $charge->source['type'] ?? 'credit_card';
2727
$method = str_replace('_', ' ', $sourceType);
2828
throw new \Magento\Framework\Exception\LocalizedException(
29-
__('Payment with Opn Payments %1 cannot be refunded.', $method)
29+
__('Payment with Omise %1 cannot be refunded.', $method)
3030
);
3131
}
3232

Gateway/Response/PaymentDetailsHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function handle(array $handlingSubject, array $response)
7676
$transaction,
7777
$payment->prependMessage(
7878
__(
79-
'Processing amount of %1 via Opn Payments Gateway.',
79+
'Processing amount of %1 via Omise Gateway.',
8080
$order->getBaseCurrency()->formatTxt($order->getTotalDue())
8181
)
8282
)

Model/SyncStatus.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function sync($order)
6565
$chargeId = $this->helper->getOrderChargeId($order);
6666

6767
if (!$chargeId) {
68-
throw new LocalizedException(__('Unable to find Opn Payments charge ID'));
68+
throw new LocalizedException(__('Unable to find Omise charge ID'));
6969
}
7070

7171
// set the store to fetch configuration values from store specific to the order
@@ -90,7 +90,7 @@ public function sync($order)
9090
break;
9191
default:
9292
throw new LocalizedException(
93-
__('Cannot read the payment status. Please try sync again or contact Opn Payments support team
93+
__('Cannot read the payment status. Please try sync again or contact Omise support team
9494
at support@omise.co if you have any questions.')
9595
);
9696
}
@@ -125,7 +125,7 @@ private function markPaymentSuccessful($order, $charge)
125125

126126
$order->addStatusHistoryComment(
127127
__(
128-
'Opn Payments: Payment successful.<br/>An amount %1 %2 has been paid (manual sync).',
128+
'Omise: Payment successful.<br/>An amount %1 %2 has been paid (manual sync).',
129129
number_format($order->getGrandTotal(), 2, '.', ''),
130130
$order->getOrderCurrencyCode()
131131
)
@@ -159,7 +159,7 @@ private function markPaymentFailed($order, $charge)
159159
$this->cancelOrderInvoice($order);
160160
$order->registerCancellation(
161161
__(
162-
'Opn Payments: Payment failed.<br/>%1 (code: %2) (manual sync).',
162+
'Omise: Payment failed.<br/>%1 (code: %2) (manual sync).',
163163
$charge['failure_message'],
164164
$charge['failure_code']
165165
)
@@ -172,8 +172,8 @@ private function markPaymentFailed($order, $charge)
172172
private function markOrderPending($order)
173173
{
174174
$order->addStatusHistoryComment(
175-
__('Opn Payments: Payment is still in progress.<br/>
176-
You might wait for a moment before click sync the status again or contact Opn Payments support
175+
__('Omise: Payment is still in progress.<br/>
176+
You might wait for a moment before click sync the status again or contact Omise support
177177
team at support@omise.co if you have any questions (manual sync).')
178178
);
179179
if ($order->getState() != Order::STATE_PENDING_PAYMENT) {
@@ -188,7 +188,7 @@ private function markOrderPending($order)
188188
private function markPaymentExpired($order)
189189
{
190190
$this->cancelOrderInvoice($order);
191-
$order->registerCancellation(__('Opn Payments: Payment expired. (manual sync).'))
191+
$order->registerCancellation(__('Omise: Payment expired. (manual sync).'))
192192
->save();
193193
}
194194

@@ -198,7 +198,7 @@ private function markPaymentExpired($order)
198198
private function markPaymentReversed($order)
199199
{
200200
$this->cancelOrderInvoice($order);
201-
$order->registerCancellation(__('Opn Payments: Payment reversed. (manual sync).'))
201+
$order->registerCancellation(__('Omise: Payment reversed. (manual sync).'))
202202
->save();
203203
}
204204
}

Observer/WebhookObserver/WebhookCompleteObserver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function execute(Observer $observer)
5959
}
6060

6161
// To handle the situation where charge is manually updated as successful
62-
// from Opn Payments dashboard after the order is canceled.
62+
// from Omise dashboard after the order is canceled.
6363
if ($this->orderData->getState() === MagentoOrder::STATE_CANCELED && $this->charge->isSuccessful()) {
6464
$this->processCancelledOrder();
6565
}
@@ -75,10 +75,10 @@ private function transactionCommentToOrder(bool $isCaptured, string $amount)
7575
{
7676
if ($isCaptured) {
7777
$transaction = $this->payment->addTransaction(Transaction::TYPE_PAYMENT, $this->invoice);
78-
$comment = __('Amount of %1 has been paid via Opn Payments Gateway.', $amount);
78+
$comment = __('Amount of %1 has been paid via Omise Gateway.', $amount);
7979
} else {
8080
$transaction = $this->payment->addTransaction(Transaction::TYPE_AUTH, $this->invoice);
81-
$comment = __('Authorized amount of %1 via Opn Payments Gateway (3-D Secure payment).', $amount);
81+
$comment = __('Authorized amount of %1 via Omise Gateway (3-D Secure payment).', $amount);
8282
}
8383

8484
$this->payment->addTransactionCommentsToOrder($transaction, $comment);

Observer/WebhookObserver/WebhookRefundObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private function closeOrder()
5757

5858
$this->orderData->addStatusHistoryComment(
5959
__(
60-
"Opn Payments: Payment refunded.<br/>An amount %1 %2 has been {$refundContextText} refunded.",
60+
"Omise: Payment refunded.<br/>An amount %1 %2 has been {$refundContextText} refunded.",
6161
$this->orderData->getOrderCurrencyCode(),
6262
number_format($this->charge->getRefundedAmount(), 2, '.', '')
6363
)

0 commit comments

Comments
 (0)