From a37b893d96763918b0c880ffdd390e144ae656bd Mon Sep 17 00:00:00 2001 From: mateuszpy Date: Fri, 4 Sep 2015 15:32:46 +0200 Subject: [PATCH] v1.0.1 v1.0.1 --- README.md | 24 ++++++++++++++++++++++-- commerce_dotpay.module | 16 +++++++++++++--- images/dotpay.png | Bin 0 -> 1649 bytes translations/pl.po | 20 ++++++++++---------- 4 files changed, 45 insertions(+), 15 deletions(-) create mode 100644 images/dotpay.png diff --git a/README.md b/README.md index 2b64b6c..dc42a37 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,22 @@ -# drupalcommerce -drupalcommerce +DrupalCommerce Dotpay payment module +===================== + +*English version below* + +####Wtyczka dla DrupalCommerce dodająca bramkę płatności Dotpay#### + +### Instrukcja: ### +1. Pobierz wtyczkę dotpay.zip (https://github.com/dotpay/drupalcommerce/releases/latest) +2. Zaloguj się od panelu Drupal i przejdź do Ustawienia witryny -> Moduły -> Instalacja nowego modułu +3. Wskaż na pobrany plik dotpay.zip i kliknij Instaluj +4. Konfigurację zmienisz w sekcji Ustawienia sklepu -> Metody płatności + +--------------------------------------- + +####DrupalCommerce plugin adding Dotpay payment gateway#### + +### Instructions: ### +1. Download the plugin dotpay.zip (https://github.com/dotpay/drupalcommerce/releases/latest) +2. Login to the Drupal panel and go to Site settings -> Modules -> Install new module +3. Select downloaded dotpay.zip file and click Install +4. You can change module configuration in Store settings -> Payment methods \ No newline at end of file diff --git a/commerce_dotpay.module b/commerce_dotpay.module index 4bdaa56..0ca9bcf 100644 --- a/commerce_dotpay.module +++ b/commerce_dotpay.module @@ -1,4 +1,13 @@ + * @copyright (C) 2015 - Dotpay SA + * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html + * tested on:Drupal core 7.39 + Commerce Kickstart 7.x-2.28 +**/ + DEFINE('DOTPAY_PAYMENT_TYPE', '0'); DEFINE('DOTPAY_API_VERSION', 'dev'); @@ -104,7 +113,7 @@ function commerce_dotpay_form_commerce_checkout_form_alter(&$form, &$form_state) */ function commerce_dotpay_icon(){ $iconParameters = array( - 'path' => drupal_get_path('module', 'commerce_dotpay') . '/images/dotpay.jpeg', + 'path' => drupal_get_path('module', 'commerce_dotpay') . '/images/dotpay.png', 'title' => 'dotpay icon', 'alt' => 'dotpay icon', 'attributes' => array( @@ -214,7 +223,7 @@ function commerce_dotpay_callback($payment_method) { case 'rejected': $transaction->status = COMMERCE_PAYMENT_STATUS_FAILURE; $transaction->message = t("Rejected payment"); - echo 'Rejected payment'; + echo 'OK'; break; case 'completed': $transaction->status = COMMERCE_PAYMENT_STATUS_SUCCESS; @@ -348,6 +357,7 @@ function commerce_dotpay_order_form($form, $form_state, $order, $payment_method) foreach ($data as $name => $value) { $form[$name] = array( + //'#type' => 'textfield', '#type' => 'hidden', '#value' => $value, ); @@ -402,7 +412,7 @@ function commerce_dotpay_create_payment_transaction( $order,$payment_method, $am * Validate language of drupal commerce * * If language is allowed in dotpay it return ISO Name of language, otherwise - * it retrun 'en' + * it return 'en' */ function commerce_dotpay_get_and_validateLanguage(){ global $language; diff --git a/images/dotpay.png b/images/dotpay.png new file mode 100644 index 0000000000000000000000000000000000000000..00f1a1b5a27ae111e8a737116af6e3dbe6c0f5b8 GIT binary patch literal 1649 zcmV-%29EiOP)_X00006VoOIv0RI60 z0RN!9r;`8x010qNS#tmY3ljhU3ljkVnw%H_000McNliru-v|s25F@uCz6t;U1^!7y zK~!ko?U`$A6jc<*f7^DcrR8lYQ?w59_JbxQs3;*ms~7~t7>ybQ6yF--0~Spb(ZrPx zYD^$O;ya-!nuxCuBcef3AqL~SMA1c{OUt8Rfl}D+_<{eJlgaG1v`f>HJ;}}P%c{#Zfcic#Z`?;Lsl)x&|MG)ozuj+CWFe8>s?CPYhp}>d01-f-} zESae3MOe-Nt^z#ZJ>U!fK|vQ4r-78dr!+xVBo)xzTVy0K6gVB|2aM4*07ZG?%Zd2G z+6WvIt_8V@7NTcs|6nn^pUW2pGdV5cig_fV&Fjo8o>DiyiyU6x2rDT0@2Ax6mWoaKaq44gbnJnD0AZ7iAiNCu^1 z$wVq7S*69-Pndh_HAj;cYAx`kd0ryEONB&C+F#6AGLiB!1C&zP)T|v*XMDTSL}N-i zBY{yMyL=8WGkGT`l8HykwW7YWwIPun=5TdjTNY~g(h{<5uM>CYLK=Y0z&HUoQTGP} zlXZVkAh_7Z?@#&F~!h)2dzL%MgLL zLN;{d7{SYR`B>ByT4|?lJ_>AzB@+jf#4H`H2W~h?^=hAhJ$I?1vG?|e_}9OyXE`Sd zUJG!*B$aU;I29`Z{xn(H%X0p3EYL0GO8Ns%z>iDJ^*U3J+ff++K5YV~FtBhr1Gy3S z+kkvi2Dlh}_Lzjzp44R6ru{q70gf^}4DfBB24C5M=#MCg`T-Elbq(vDT zk%qYAeg#~tNvFphcMUJEn5Oo3udyjDn<6Igc8c!&1-L~Cb*l-U z!j6I*$qwiK!Y8XXuT16Y)*OZ>p>n96|fRb8bEALwmBRorps z0GG+Y(hQ4L=O;Z;$+EcPt_E%gCaK781U`!;6R+7_W4?bEcigGK1Hd_o77r+H_0mCp z-=ujXns=XC=(h!`FG=7+;8C4V3=su*8Fuy|b*AVXW2V}D*PLN^@@Kr+b#0x>ikxmh)MTQ`8* v2t1O3F47$T$7VOM(VXn{daB4vUb4%7;zQcaxUfmp00000NkvXXu0mjf)aUcX literal 0 HcmV?d00001 diff --git a/translations/pl.po b/translations/pl.po index 9084daa..3e1f6e7 100644 --- a/translations/pl.po +++ b/translations/pl.po @@ -1,7 +1,7 @@ # $Id$ # # Polish translation of Drupal (general) -# Copyright YEAR NAME +# Copyright 2015 Dotpay SA # Generated from files: # commerce_dotpay.module: n/a # commerce_dotpay.info: n/a @@ -24,8 +24,8 @@ msgid "Dotpay payment solution" msgstr "Dotpay płatności" #: commerce_dotpay.module:17 -msgid "Pay with a dotpay" -msgstr "Zapłać przy użyciu dotpay" +msgid "Pay with a Dotpay" +msgstr "Zapłać przy użyciu Dotpay" #: commerce_dotpay.module:51 msgid "identifier" @@ -33,7 +33,7 @@ msgstr "Id" #: commerce_dotpay.module:52 msgid "description identifier" -msgstr "Id z panelu dotpay" +msgstr "Id z panelu Dotpay" #: commerce_dotpay.module:59 msgid "pin" @@ -41,7 +41,7 @@ msgstr "pin" #: commerce_dotpay.module:60 msgid "description pin" -msgstr "Pin z panelu dotpay" +msgstr "Pin z panelu Dotpay" #: commerce_dotpay.module:67 msgid "Dotpay test / production" @@ -57,7 +57,7 @@ msgstr "produkcja" #: commerce_dotpay.module:124 msgid "Integrate dotpay payment method" -msgstr "Integracja płatności dotpay" +msgstr "Integracja płatności Dotpay" #: commerce_dotpay.module:190 msgid "Prices doesn't match" @@ -89,7 +89,7 @@ msgstr "Dotpay nie został skonfigurowany poprawnie, wprowadź PIN" #: commerce_dotpay.module:317 msgid "Dotpay is not configured for this currency." -msgstr "dotpay nie obsługuje wybranej waluty" +msgstr "Dotpay nie obsługuje wybranej waluty" #: commerce_dotpay.module:332 msgid "Order @order_number at @store" @@ -97,7 +97,7 @@ msgstr "Zamówienie nr @order_number w @store" #: commerce_dotpay.module:358 msgid "Redirect to Dotpay platform" -msgstr "Przekierowanie do dotpay" +msgstr "Przekierowanie do Dotpay" #: commerce_dotpay.module:422 msgid "Polish" @@ -152,8 +152,8 @@ msgid "Commerce Dotpay" msgstr "Dotpay" #: commerce_dotpay.info:0 -msgid "Implements dotpay payment services for use with Drupal Commerce." -msgstr "Implementacja płatności dotpAY" +msgid "Implements Dotpay payment services for use with Drupal Commerce." +msgstr "Implementacja płatności Dotpay" #: commerce_dotpay.info:0 msgid "Commerce (payment)"