@@ -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}
0 commit comments