Skip to content

Commit

Permalink
2.6/version-released
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihtoprak committed Dec 23, 2021
1 parent 9d04f14 commit ed75036
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 5 deletions.
Binary file added .DS_Store
Binary file not shown.
6 changes: 5 additions & 1 deletion core/library/Moka_Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,14 +455,18 @@ 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').'<br> Tutar : '.$total.' '.$currency , true );
$order->payment_complete();
$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;
Expand Down
2 changes: 1 addition & 1 deletion core/library/Moka_Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
Binary file modified languages/moka-woocommerce-en_US.mo
Binary file not shown.
5 changes: 4 additions & 1 deletion languages/moka-woocommerce-en_US.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)"
Binary file modified languages/moka-woocommerce-tr_TR.mo
Binary file not shown.
5 changes: 4 additions & 1 deletion languages/moka-woocommerce-tr_TR.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <patron@fatihtoprak.com>\n"
"Language-Team: \n"
"Language: tr_TR\n"
Expand Down Expand Up @@ -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)"
44 changes: 44 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ed75036

Please sign in to comment.