diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..28da794 Binary files /dev/null and b/.DS_Store differ diff --git a/core/library/Moka_Gateway.php b/core/library/Moka_Gateway.php index 250f41c..5137cc2 100644 --- a/core/library/Moka_Gateway.php +++ b/core/library/Moka_Gateway.php @@ -455,7 +455,7 @@ public function receipt_page( $orderId ) if($isCompleted) { $total = data_get($orderDetails,'Amount'); - $currency = data_get($orderDetails,'Currency'); + $currency = data_get($orderDetails,'Currency'); $order->update_status('processing', __('Payment is processing via Moka Pay.', 'moka-woocommerce')); $order->add_order_note( __('Hey, the order is paid by Moka Pay!','moka-woocommerce').'
Tutar : '.$total.' '.$currency , true ); @@ -463,6 +463,10 @@ public function receipt_page( $orderId ) $order->reduce_order_stock(); $woocommerce->cart->empty_cart(); + + ### Set Completed + $order->update_status('completed', __('Payment Completed', 'moka-woocommerce'). ' Moka Payment Id : '.data_get($orderDetails,'OtherTrxCode')); + ### Set Completed $recordParams['amount_paid'] = data_get($orderDetails,'Amount'); $recordParams['result'] = 0; diff --git a/core/library/Moka_Init.php b/core/library/Moka_Init.php index 3cccea4..a95019c 100644 --- a/core/library/Moka_Init.php +++ b/core/library/Moka_Init.php @@ -3,7 +3,7 @@ exit; } -define('OPTIMISTHUB_MOKA_PAY_VERSION', '2.5'); +define('OPTIMISTHUB_MOKA_PAY_VERSION', '2.6'); global $mokaVersion; $mokaVersion = OPTIMISTHUB_MOKA_PAY_VERSION; diff --git a/index.php b/index.php index f4bbdd6..4d4eb59 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: Moka Payment Gateway for WooCommerce * Plugin URI: https://github.com/optimisthub/moka-woocommerce * Description: Moka Payment gateway for woocommerce - * Version: 2.5 + * Version: 2.6 * Author: Optimist Hub * Author URI: https://optimisthub.com?ref=mokaPayment * Domain Path: /languages/ diff --git a/languages/moka-woocommerce-en_US.mo b/languages/moka-woocommerce-en_US.mo index 7a66af5..2c6e3c0 100644 Binary files a/languages/moka-woocommerce-en_US.mo and b/languages/moka-woocommerce-en_US.mo differ diff --git a/languages/moka-woocommerce-en_US.po b/languages/moka-woocommerce-en_US.po index 4593f9c..0585ffa 100644 --- a/languages/moka-woocommerce-en_US.po +++ b/languages/moka-woocommerce-en_US.po @@ -3,7 +3,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-12-08T11:49:40+00:00\n" -"PO-Revision-Date: 2021-12-22 22:55+0300\n" +"PO-Revision-Date: 2021-12-23 17:32+0300\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -139,5 +139,8 @@ msgstr "Transaction Id" msgid "Order Prefix" msgstr "Order Prefix" +msgid "Payment Completed" +msgstr "Payment Completed" + msgid "This field provides convenience for the separation of orders during reporting for the Moka POS module used in more than one site. (Optional)" msgstr "This field provides convenience for the separation of orders during reporting for the Moka POS module used in more than one site. (Optional)" diff --git a/languages/moka-woocommerce-tr_TR.mo b/languages/moka-woocommerce-tr_TR.mo index 977ddb8..1dee017 100644 Binary files a/languages/moka-woocommerce-tr_TR.mo and b/languages/moka-woocommerce-tr_TR.mo differ diff --git a/languages/moka-woocommerce-tr_TR.po b/languages/moka-woocommerce-tr_TR.po index 194b350..215ec4e 100644 --- a/languages/moka-woocommerce-tr_TR.po +++ b/languages/moka-woocommerce-tr_TR.po @@ -3,7 +3,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-12-08T11:49:40+00:00\n" -"PO-Revision-Date: 2021-12-22 22:55+0300\n" +"PO-Revision-Date: 2021-12-23 17:32+0300\n" "Last-Translator: Fatih Toprak \n" "Language-Team: \n" "Language: tr_TR\n" @@ -138,5 +138,8 @@ msgstr "İşlem Id" msgid "Order Prefix" msgstr "Sipariş Öneki" +msgid "Payment Completed" +msgstr "Ödeme tamamlandı" + msgid "This field provides convenience for the separation of orders during reporting for the Moka POS module used in more than one site. (Optional)" msgstr "Bu alan birden çok sitede kullanılan Moka POS modülü için raporlama esnasında siparişlerin ayrıştırılmasında kolaylık sağlar. (Opsiyonel)" diff --git a/readme.md b/readme.md index ce8049d..e613972 100644 --- a/readme.md +++ b/readme.md @@ -31,8 +31,52 @@ Moka Pos, Moka Pay plugin; - Moka Pay WooCommerce Plugin Download ZIP file and then Install with wordpress extension installer page. +### Test Cards + +| Card Number | Exp.Date | CVC | Bank Name | Type | +|--------------------- |---------- |----- |----------------- |-------- | +| 5127 5411 2222 3332 | 12/2022 | 000 | Akbank | Master | +| 4531 4411 2222 3338 | 12/2022 | 000 | Aktif Bank | Visa | +| 4230 0211 2222 3332 | 12/2022 | 000 | Albaraka | Visa | +| 5126 1811 2222 3338 | 12/2022 | 000 | Alternatif Bank | Master | +| 4258 4611 2222 3337 | 12/2022 | 000 | Anadolu Bank | Visa | +| 5482 0211 2222 3334 | 12/2022 | 000 | Burgan Bank | Master | +| 4715 0911 2222 3339 | 12/2022 | 000 | Citi Bank | Visa | +| 5120 1711 2222 3335 | 12/2022 | 000 | Deniz Bank | Master | +| 4234 9511 2222 3336 | 12/2022 | 000 | Fibabanka | Visa | +| 4022 7711 2222 3334 | 12/2022 | 000 | Finansbank | Visa | +| 5269 1111 2222 3332 | 12/2022 | 000 | Finansbank | Master | +| 5269 5511 2222 3339 | 12/2022 | 000 | Garanti Bankası | Master | +| 4155 1411 2222 3339 | 12/2022 | 000 | Halkbank | Visa | +| 5100 0511 2222 3333 | 12/2022 | 000 | HSBC Bankası | Master | +| 4137 2911 2222 3335 | 12/2022 | 000 | ICBC | Visa | +| 5101 5111 2222 3335 | 12/2022 | 000 | ING Bankası | Master | +| 4397 4811 2222 3337 | 12/2022 | 000 | ININAL | Visa | +| 5406 6811 2222 3338 | 12/2022 | 000 | Iş Bankası | Master | +| 4183 4411 2222 3339 | 12/2022 | 000 | Iş Bankası | Visa | +| 5125 9511 2222 3335 | 12/2022 | 000 | Kuveyt Türk | Master | +| 4691 8011 2222 3339 | 12/2022 | 000 | Odeabank | Visa | +| 5313 8911 2222 3335 | 12/2022 | 000 | Papara | Master | +| 4349 1311 2222 3337 | 12/2022 | 000 | PTT Bank | Visa | +| 5100 1011 2222 3336 | 12/2022 | 000 | Şekerbank | Master | +| 4024 5911 2222 3334 | 12/2022 | 000 | TEB | Visa | +| 4347 2711 2222 3333 | 12/2022 | 000 | Turkcell | Visa | +| 5185 9911 2222 3338 | 12/2022 | 000 | Turkishbank | Master | +| 4007 4211 2222 3335 | 12/2022 | 000 | Türkiye Finans | Visa | +| 5313 2511 2222 3332 | 12/2022 | 000 | Türkpara | Master | +| 4029 4011 2222 3331 | 12/2022 | 000 | Vakıfbank | Visa | +| 5353 5511 2222 3336 | 12/2022 | 000 | Vakıf Katılım | Master | +| 4462 1211 2222 3339 | 12/2022 | 000 | Yapıkredi | Visa | +| 5136 6211 2222 3331 | 12/2022 | 000 | Ziraat Bankası | Master | +| 4162 8311 2222 3336 | 12/2022 | 000 | Ziraat Katılım | Visa | + ### Changelog +#### Version 2.6 +- Issue : Test cards added to readme file. +- Issue : Payment Status set completed after successfully payment. +- Issue : Payment Status added to order note area. + #### Version 2.5 - Issue : Card Expiry Date validation issue fixed. - Issue : Cart Total tax rates calculating issue.