From f752fb0bba772a3b3d6c481d1a823a62a593fb8b Mon Sep 17 00:00:00 2001 From: richard Date: Thu, 25 Jul 2019 16:43:11 +0200 Subject: [PATCH 1/9] added .gitignore --- .gitignore | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f234c53 --- /dev/null +++ b/.gitignore @@ -0,0 +1,62 @@ +* +!cardgate +!plugins +plugins/* +!cardgate +!cardgateafterpay +!cardgatebancontact +!cardgatebanktransfer +!cardgatebillink +!cardgatebitcoin +!cardgatecreditcard +!cardgatedirectdebit +!cardgategiftcard +!cardgategiropay +!cardgateideal +!cardgateidealqr +!cardgateklarna +!cardgatepaypal +!cardgatepaysafecard +!cardgatepaysafecash +!cardgateprzlewy24 +!cardgatesofortbanking +!templates +templates/* +!templates/xt_default +templated/xt_default/* +!templates/xt_default/xtCore +templates/xt_default/xtCore/* +!templates/xt_default/xtCore/pages +templates/xt_default/xtCore/pages/* +!templates/xt_default/xtCore/pages/cardgate_checkout.html +!templates/xt_default/xtCore/pages/checkout +templates/xt_default/xtCore/pages/checkout/* +!templates/xt_default/xtCore/pages/checkout/subpage_cardgate_cancel.html +!templates/xt_default/xtCore/pages/checkout/subpage_cardgate_failure.html +!templates/xt_default/xtCore/pages/checkout/subpage_cardgate_pending.html +!templates/xt_default/xtCore/pages/checkout/subpage_cardgate_success.html +!templates/xt_grid +templated/xt_grid/* +!templates/xt_grid/xtCore +templates/xt_grid/xtCore/* +!templates/xt_grid/xtCore/pages +templates/xt_grid/xtCore/pages/* +!templates/xt_grid/xtCore/pages/cardgate_checkout.html +!templates/xt_grid/xtCore/pages/checkout +templates/xt_grid/xtCore/pages/checkout/* +!templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_cancel.html +!templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_failure.html +!templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_pending.html +!templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_success.html +!templates/xt_mobile +templates/xt_mobile/* +!templates/xt_mobile/plugins +templates/xt_mobile/plugins/* +!templates/xt_mobile/plugins/cardgateafterpay +!templates/xt_mobile/plugins/cardgatebancontact +!templates/xt_mobile/plugins/cardgatebanktransfer +!templates/xt_mobile/plugins/cardgatebitcoin +!templates/xt_mobile/plugins/cardgate +!README.md +!README_DE.md +!README_NL.md From 90b7ba506d6a0e2aee634f605967248e122dcd4a Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 26 Jul 2019 12:19:19 +0200 Subject: [PATCH 2/9] Changed directory structure. --- .gitignore | 27 +- .../xtCore/pages/cardgate_checkout.html | 0 .../checkout/subpage_cardgate_cancel.html | 0 .../checkout/subpage_cardgate_failure.html | 0 .../checkout/subpage_cardgate_pending.html | 0 .../checkout/subpage_cardgate_success.html | 0 .../xtCore/pages/cardgate_checkout.html | 0 .../checkout/subpage_cardgate_cancel.html | 0 .../checkout/subpage_cardgate_failure.html | 0 .../checkout/subpage_cardgate_pending.html | 0 .../checkout/subpage_cardgate_success.html | 0 .../classes/cardgate-clientlib-php/init.php | 5 - .../cardgate-clientlib-php/src/Address.php | 161 ---- .../cardgate-clientlib-php/src/Autoloader.php | 58 -- .../cardgate-clientlib-php/src/Cart.php | 73 -- .../cardgate-clientlib-php/src/Client.php | 576 ------------- .../cardgate-clientlib-php/src/Consumer.php | 96 --- .../cardgate-clientlib-php/src/Entity.php | 122 --- .../cardgate-clientlib-php/src/Exception.php | 68 -- .../cardgate-clientlib-php/src/Item.php | 227 ----- .../cardgate-clientlib-php/src/Method.php | 271 ------ .../src/Subscription.php | 514 ------------ .../src/Transaction.php | 793 ------------------ .../src/resource/Base.php | 54 -- .../src/resource/Consumers.php | 47 -- .../src/resource/Methods.php | 81 -- .../src/resource/Subscriptions.php | 115 --- .../src/resource/Transactions.php | 169 ---- .../src/resource/Version.php | 68 -- .../cardgate/classes/cardgate.php | 446 ---------- .../cardgate/installer/install.php | 63 -- .../cardgate/classes/class.cardgate.php | 397 --------- .../plugins/cardgate/images/cg_logo.png | Bin 8866 -> 0 bytes .../plugins/cardgate/installer/cardgate.xml | 551 ------------ .../plugins/cardgate/installer/install.php | 37 - .../cardgate/pages/cardgate_checkout.php | 226 ----- .../plugins/cardgate/templates/cardgate.html | 138 --- .../classes/class.cardgateafterpay.php | 59 -- .../hooks/checkout_selectpayment_tpl_data.php | 36 - .../hooks/order_edit_display_data.php | 65 -- .../images/cardgateafterpay.png | Bin 2871 -> 0 bytes .../installer/cardgateafterpay.xml | 94 --- .../cardgateafterpay/installer/install.php | 37 - .../templates/cardgateafterpay.html | 138 --- .../classes/class.cardgatebancontact.php | 59 -- .../hooks/checkout_selectpayment_tpl_data.php | 36 - .../hooks/order_edit_display_data.php | 65 -- .../images/cardgatebancontact.png | Bin 2023 -> 0 bytes .../installer/cardgatebancontact.xml | 94 --- .../cardgatebancontact/installer/install.php | 37 - .../templates/cardgatebancontact.html | 138 --- .../classes/class.cardgatebanktransfer.php | 59 -- .../hooks/checkout_selectpayment_tpl_data.php | 36 - .../hooks/order_edit_display_data.php | 65 -- .../images/cardgatebanktransfer.png | Bin 3208 -> 0 bytes .../installer/cardgatebanktransfer.xml | 94 --- .../installer/install.php | 37 - .../templates/cardgatebanktransfer.html | 138 --- .../classes/class.cardgatebillink.php | 59 -- .../hooks/checkout_selectpayment_tpl_data.php | 36 - .../hooks/order_edit_display_data.php | 65 -- .../images/cardgatebillink.png | Bin 4679 -> 0 bytes .../installer/cardgatebillink.xml | 94 --- .../cardgatebillink/installer/install.php | 37 - .../templates/cardgatebillink.html | 138 --- .../classes/class.cardgatebitcoin.php | 59 -- .../hooks/checkout_selectpayment_tpl_data.php | 36 - .../hooks/order_edit_display_data.php | 65 -- .../images/cardgatebitcoin.png | Bin 3090 -> 0 bytes .../installer/cardgatebitcoin.xml | 94 --- .../cardgatebitcoin/installer/install.php | 37 - .../templates/cardgatebitcoin.html | 138 --- .../classes/class.cardgatecreditcard.php | 59 -- .../hooks/checkout_selectpayment_tpl_data.php | 36 - .../hooks/order_edit_display_data.php | 65 -- .../images/cardgatecreditcard.png | Bin 1009 -> 0 bytes .../installer/cardgatecreditcard.xml | 94 --- .../cardgatecreditcard/installer/install.php | 37 - .../templates/cardgatecreditcard.html | 138 --- .../classes/class.cardgatedirectdebit.php | 59 -- .../hooks/checkout_selectpayment_tpl_data.php | 36 - .../hooks/order_edit_display_data.php | 65 -- .../images/cardgatedirectdebit.png | Bin 3902 -> 0 bytes .../installer/cardgatedirectdebit.xml | 94 --- .../cardgatedirectdebit/installer/install.php | 37 - .../templates/cardgatedirectdebit.html | 138 --- .../classes/class.cardgategiftcard.php | 59 -- .../hooks/checkout_selectpayment_tpl_data.php | 36 - .../hooks/order_edit_display_data.php | 58 -- .../images/cardgategiftcard.png | Bin 715 -> 0 bytes .../installer/cardgategiftcard.xml | 94 --- .../cardgategiftcard/installer/install.php | 37 - .../templates/cardgategiftcard.html | 138 --- .../classes/class.cardgategiropay.php | 59 -- .../hooks/checkout_selectpayment_tpl_data.php | 36 - .../hooks/order_edit_display_data.php | 65 -- .../images/cardgategiropay.png | Bin 2549 -> 0 bytes .../installer/cardgategiropay.xml | 94 --- .../cardgategiropay/installer/install.php | 37 - .../templates/cardgategiropay.html | 138 --- .../classes/class.cardgateideal.php | 59 -- .../hooks/checkout_selectpayment_tpl_data.php | 37 - .../hooks/module_checkout_payment_check.php | 41 - .../hooks/order_edit_display_data.php | 65 -- .../cardgateideal/images/cardgateideal.png | Bin 939 -> 0 bytes .../cardgateideal/installer/cardgateideal.xml | 99 --- .../cardgateideal/installer/install.php | 37 - .../templates/cardgateideal.html | 155 ---- .../classes/class.cardgateidealqr.php | 59 -- .../hooks/checkout_selectpayment_tpl_data.php | 36 - .../hooks/order_edit_display_data.php | 65 -- .../images/cardgateidealqr.png | Bin 3251 -> 0 bytes .../installer/cardgateidealqr.xml | 94 --- .../cardgateidealqr/installer/install.php | 37 - .../templates/cardgateidealqr.html | 138 --- .../classes/class.cardgateklarna.php | 59 -- .../hooks/checkout_selectpayment_tpl_data.php | 36 - .../hooks/order_edit_display_data.php | 65 -- .../cardgateklarna/images/cardgateklarna.png | Bin 5235 -> 0 bytes .../installer/cardgateklarna.xml | 94 --- .../cardgateklarna/installer/install.php | 37 - .../templates/cardgateklarna.html | 138 --- .../classes/class.cardgatepaypal.php | 59 -- .../hooks/checkout_selectpayment_tpl_data.php | 36 - .../hooks/order_edit_display_data.php | 65 -- .../cardgatepaypal/images/cardgatepaypal.png | Bin 3382 -> 0 bytes .../installer/cardgatepaypal.xml | 94 --- .../cardgatepaypal/installer/install.php | 37 - .../templates/cardgatepaypal.html | 138 --- .../classes/class.cardgatepaysafecard.php | 59 -- .../hooks/checkout_selectpayment_tpl_data.php | 36 - .../hooks/order_edit_display_data.php | 65 -- .../images/cardgatepaysafecard.png | Bin 5748 -> 0 bytes .../installer/cardgatepaysafecard.xml | 94 --- .../cardgatepaysafecard/installer/install.php | 37 - .../templates/cardgatepaysafecard.html | 137 --- .../classes/class.cardgatepaysafecash.php | 59 -- .../hooks/checkout_selectpayment_tpl_data.php | 36 - .../hooks/order_edit_display_data.php | 65 -- .../images/cardgatepaysafecash.png | Bin 2400 -> 0 bytes .../installer/cardgatepaysafecash.xml | 94 --- .../cardgatepaysafecash/installer/install.php | 37 - .../templates/cardgatepaysafecash.html | 138 --- .../classes/class.cardgateprzelewy24.php | 59 -- .../hooks/checkout_selectpayment_tpl_data.php | 36 - .../hooks/order_edit_display_data.php | 65 -- .../images/cardgateprzelewy24.png | Bin 4102 -> 0 bytes .../installer/cardgateprzelewy24.xml | 94 --- .../cardgateprzelewy24/installer/install.php | 37 - .../templates/cardgateprzelewy24.html | 138 --- .../classes/class.cardgatesofortbanking.php | 59 -- .../hooks/checkout_selectpayment_tpl_data.php | 36 - .../hooks/order_edit_display_data.php | 65 -- .../images/cardgatesofortbanking.png | Bin 2876 -> 0 bytes .../installer/cardgatesofortbanking.xml | 94 --- .../installer/install.php | 37 - .../templates/cardgatesofortbanking.html | 138 --- .../cardgateafterpay/cardgateafterpay.html | 39 - .../cardgatebancontact.html | 39 - .../cardgatebanktransfer.html | 39 - .../cardgatebitcoin/cardgatebitcoin.html | 39 - .../cardgatecreditcard.html | 39 - .../cardgatedirectdebit.html | 39 - .../cardgategiropay/cardgategiropay.html | 39 - .../plugins/cardgateideal/cardgateideal.html | 54 -- .../cardgateklarna/cardgateklarna.html | 39 - .../cardgatepaypal/cardgatepaypal.html | 39 - .../cardgatepaysafecard.html | 39 - .../cardgateprzelewy24.html | 39 - .../cardgatesofortbanking.html | 39 - .../xtCore/pages/cardgate_checkout.html | 78 -- .../checkout/subpage_cardgate_cancel.html | 43 - .../checkout/subpage_cardgate_failure.html | 47 -- .../checkout/subpage_cardgate_pending.html | 43 - .../checkout/subpage_cardgate_success.html | 45 - 175 files changed, 24 insertions(+), 13486 deletions(-) rename {xtcommerce-cardgate-master/templates => templates}/xt_default/xtCore/pages/cardgate_checkout.html (100%) rename {xtcommerce-cardgate-master/templates => templates}/xt_default/xtCore/pages/checkout/subpage_cardgate_cancel.html (100%) rename {xtcommerce-cardgate-master/templates => templates}/xt_default/xtCore/pages/checkout/subpage_cardgate_failure.html (100%) rename {xtcommerce-cardgate-master/templates => templates}/xt_default/xtCore/pages/checkout/subpage_cardgate_pending.html (100%) rename {xtcommerce-cardgate-master/templates => templates}/xt_default/xtCore/pages/checkout/subpage_cardgate_success.html (100%) rename {xtcommerce-cardgate-master/templates => templates}/xt_grid/xtCore/pages/cardgate_checkout.html (100%) rename {xtcommerce-cardgate-master/templates => templates}/xt_grid/xtCore/pages/checkout/subpage_cardgate_cancel.html (100%) rename {xtcommerce-cardgate-master/templates => templates}/xt_grid/xtCore/pages/checkout/subpage_cardgate_failure.html (100%) rename {xtcommerce-cardgate-master/templates => templates}/xt_grid/xtCore/pages/checkout/subpage_cardgate_pending.html (100%) rename {xtcommerce-cardgate-master/templates => templates}/xt_grid/xtCore/pages/checkout/subpage_cardgate_success.html (100%) delete mode 100755 xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/init.php delete mode 100644 xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Address.php delete mode 100644 xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Autoloader.php delete mode 100644 xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Cart.php delete mode 100644 xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Client.php delete mode 100644 xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Consumer.php delete mode 100644 xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Entity.php delete mode 100644 xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Exception.php delete mode 100644 xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Item.php delete mode 100644 xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Method.php delete mode 100644 xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Subscription.php delete mode 100644 xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Transaction.php delete mode 100644 xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Base.php delete mode 100644 xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Consumers.php delete mode 100644 xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Methods.php delete mode 100644 xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Subscriptions.php delete mode 100644 xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Transactions.php delete mode 100644 xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Version.php delete mode 100755 xtcommerce-cardgate-master/cardgate/classes/cardgate.php delete mode 100755 xtcommerce-cardgate-master/cardgate/installer/install.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgate/classes/class.cardgate.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgate/images/cg_logo.png delete mode 100755 xtcommerce-cardgate-master/plugins/cardgate/installer/cardgate.xml delete mode 100755 xtcommerce-cardgate-master/plugins/cardgate/installer/install.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgate/pages/cardgate_checkout.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgate/templates/cardgate.html delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateafterpay/classes/class.cardgateafterpay.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateafterpay/hooks/checkout_selectpayment_tpl_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateafterpay/hooks/order_edit_display_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateafterpay/images/cardgateafterpay.png delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateafterpay/installer/cardgateafterpay.xml delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateafterpay/installer/install.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateafterpay/templates/cardgateafterpay.html delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebancontact/classes/class.cardgatebancontact.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebancontact/hooks/checkout_selectpayment_tpl_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebancontact/hooks/order_edit_display_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebancontact/images/cardgatebancontact.png delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebancontact/installer/cardgatebancontact.xml delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebancontact/installer/install.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebancontact/templates/cardgatebancontact.html delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebanktransfer/classes/class.cardgatebanktransfer.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebanktransfer/hooks/checkout_selectpayment_tpl_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebanktransfer/hooks/order_edit_display_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebanktransfer/images/cardgatebanktransfer.png delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebanktransfer/installer/cardgatebanktransfer.xml delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebanktransfer/installer/install.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebanktransfer/templates/cardgatebanktransfer.html delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebillink/classes/class.cardgatebillink.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebillink/hooks/checkout_selectpayment_tpl_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebillink/hooks/order_edit_display_data.php delete mode 100644 xtcommerce-cardgate-master/plugins/cardgatebillink/images/cardgatebillink.png delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebillink/installer/cardgatebillink.xml delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebillink/installer/install.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebillink/templates/cardgatebillink.html delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebitcoin/classes/class.cardgatebitcoin.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebitcoin/hooks/checkout_selectpayment_tpl_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebitcoin/hooks/order_edit_display_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebitcoin/images/cardgatebitcoin.png delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebitcoin/installer/cardgatebitcoin.xml delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebitcoin/installer/install.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatebitcoin/templates/cardgatebitcoin.html delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatecreditcard/classes/class.cardgatecreditcard.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatecreditcard/hooks/checkout_selectpayment_tpl_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatecreditcard/hooks/order_edit_display_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatecreditcard/images/cardgatecreditcard.png delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatecreditcard/installer/cardgatecreditcard.xml delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatecreditcard/installer/install.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatecreditcard/templates/cardgatecreditcard.html delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatedirectdebit/classes/class.cardgatedirectdebit.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatedirectdebit/hooks/checkout_selectpayment_tpl_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatedirectdebit/hooks/order_edit_display_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatedirectdebit/images/cardgatedirectdebit.png delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatedirectdebit/installer/cardgatedirectdebit.xml delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatedirectdebit/installer/install.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatedirectdebit/templates/cardgatedirectdebit.html delete mode 100755 xtcommerce-cardgate-master/plugins/cardgategiftcard/classes/class.cardgategiftcard.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgategiftcard/hooks/checkout_selectpayment_tpl_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgategiftcard/hooks/order_edit_display_data.php delete mode 100644 xtcommerce-cardgate-master/plugins/cardgategiftcard/images/cardgategiftcard.png delete mode 100755 xtcommerce-cardgate-master/plugins/cardgategiftcard/installer/cardgategiftcard.xml delete mode 100755 xtcommerce-cardgate-master/plugins/cardgategiftcard/installer/install.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgategiftcard/templates/cardgategiftcard.html delete mode 100755 xtcommerce-cardgate-master/plugins/cardgategiropay/classes/class.cardgategiropay.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgategiropay/hooks/checkout_selectpayment_tpl_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgategiropay/hooks/order_edit_display_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgategiropay/images/cardgategiropay.png delete mode 100755 xtcommerce-cardgate-master/plugins/cardgategiropay/installer/cardgategiropay.xml delete mode 100755 xtcommerce-cardgate-master/plugins/cardgategiropay/installer/install.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgategiropay/templates/cardgategiropay.html delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateideal/classes/class.cardgateideal.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateideal/hooks/checkout_selectpayment_tpl_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateideal/hooks/module_checkout_payment_check.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateideal/hooks/order_edit_display_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateideal/images/cardgateideal.png delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateideal/installer/cardgateideal.xml delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateideal/installer/install.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateideal/templates/cardgateideal.html delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateidealqr/classes/class.cardgateidealqr.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateidealqr/hooks/checkout_selectpayment_tpl_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateidealqr/hooks/order_edit_display_data.php delete mode 100644 xtcommerce-cardgate-master/plugins/cardgateidealqr/images/cardgateidealqr.png delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateidealqr/installer/cardgateidealqr.xml delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateidealqr/installer/install.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateidealqr/templates/cardgateidealqr.html delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateklarna/classes/class.cardgateklarna.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateklarna/hooks/checkout_selectpayment_tpl_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateklarna/hooks/order_edit_display_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateklarna/images/cardgateklarna.png delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateklarna/installer/cardgateklarna.xml delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateklarna/installer/install.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateklarna/templates/cardgateklarna.html delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatepaypal/classes/class.cardgatepaypal.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatepaypal/hooks/checkout_selectpayment_tpl_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatepaypal/hooks/order_edit_display_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatepaypal/images/cardgatepaypal.png delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatepaypal/installer/cardgatepaypal.xml delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatepaypal/installer/install.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatepaypal/templates/cardgatepaypal.html delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatepaysafecard/classes/class.cardgatepaysafecard.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatepaysafecard/hooks/checkout_selectpayment_tpl_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatepaysafecard/hooks/order_edit_display_data.php delete mode 100644 xtcommerce-cardgate-master/plugins/cardgatepaysafecard/images/cardgatepaysafecard.png delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatepaysafecard/installer/cardgatepaysafecard.xml delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatepaysafecard/installer/install.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatepaysafecard/templates/cardgatepaysafecard.html delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatepaysafecash/classes/class.cardgatepaysafecash.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatepaysafecash/hooks/checkout_selectpayment_tpl_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatepaysafecash/hooks/order_edit_display_data.php delete mode 100644 xtcommerce-cardgate-master/plugins/cardgatepaysafecash/images/cardgatepaysafecash.png delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatepaysafecash/installer/cardgatepaysafecash.xml delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatepaysafecash/installer/install.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatepaysafecash/templates/cardgatepaysafecash.html delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateprzelewy24/classes/class.cardgateprzelewy24.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateprzelewy24/hooks/checkout_selectpayment_tpl_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateprzelewy24/hooks/order_edit_display_data.php delete mode 100644 xtcommerce-cardgate-master/plugins/cardgateprzelewy24/images/cardgateprzelewy24.png delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateprzelewy24/installer/cardgateprzelewy24.xml delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateprzelewy24/installer/install.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgateprzelewy24/templates/cardgateprzelewy24.html delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatesofortbanking/classes/class.cardgatesofortbanking.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatesofortbanking/hooks/checkout_selectpayment_tpl_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatesofortbanking/hooks/order_edit_display_data.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatesofortbanking/images/cardgatesofortbanking.png delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatesofortbanking/installer/cardgatesofortbanking.xml delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatesofortbanking/installer/install.php delete mode 100755 xtcommerce-cardgate-master/plugins/cardgatesofortbanking/templates/cardgatesofortbanking.html delete mode 100644 xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgateafterpay/cardgateafterpay.html delete mode 100644 xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatebancontact/cardgatebancontact.html delete mode 100644 xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatebanktransfer/cardgatebanktransfer.html delete mode 100644 xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatebitcoin/cardgatebitcoin.html delete mode 100644 xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatecreditcard/cardgatecreditcard.html delete mode 100644 xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatedirectdebit/cardgatedirectdebit.html delete mode 100644 xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgategiropay/cardgategiropay.html delete mode 100644 xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgateideal/cardgateideal.html delete mode 100644 xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgateklarna/cardgateklarna.html delete mode 100644 xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatepaypal/cardgatepaypal.html delete mode 100644 xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatepaysafecard/cardgatepaysafecard.html delete mode 100644 xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgateprzelewy24/cardgateprzelewy24.html delete mode 100644 xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatesofortbanking/cardgatesofortbanking.html delete mode 100644 xtcommerce-cardgate-master/templates/xt_responsive/xtCore/pages/cardgate_checkout.html delete mode 100644 xtcommerce-cardgate-master/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_cancel.html delete mode 100644 xtcommerce-cardgate-master/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_failure.html delete mode 100644 xtcommerce-cardgate-master/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_pending.html delete mode 100644 xtcommerce-cardgate-master/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_success.html diff --git a/.gitignore b/.gitignore index f234c53..5f62049 100644 --- a/.gitignore +++ b/.gitignore @@ -23,7 +23,7 @@ plugins/* !templates templates/* !templates/xt_default -templated/xt_default/* +templates/xt_default/* !templates/xt_default/xtCore templates/xt_default/xtCore/* !templates/xt_default/xtCore/pages @@ -36,7 +36,7 @@ templates/xt_default/xtCore/pages/checkout/* !templates/xt_default/xtCore/pages/checkout/subpage_cardgate_pending.html !templates/xt_default/xtCore/pages/checkout/subpage_cardgate_success.html !templates/xt_grid -templated/xt_grid/* +templates/xt_grid/* !templates/xt_grid/xtCore templates/xt_grid/xtCore/* !templates/xt_grid/xtCore/pages @@ -56,7 +56,28 @@ templates/xt_mobile/plugins/* !templates/xt_mobile/plugins/cardgatebancontact !templates/xt_mobile/plugins/cardgatebanktransfer !templates/xt_mobile/plugins/cardgatebitcoin -!templates/xt_mobile/plugins/cardgate +!templates/xt_mobile/plugins/cardgatecreditcard +!templates/xt_mobile/plugins/cardgatedirectdebit +!templates/xt_mobile/plugins/cardgategiropay +!templates/xt_mobile/plugins/cardgateideal +!templates/xt_mobile/plugins/cardgateklarna +!templates/xt_mobile/plugins/cardgatepaypal +!templates/xt_mobile/plugins/cardgatepaysafecard +!templates/xt_mobile/plugins/cardgateprzelewy24 +!templates/xt_mobile/plugins/cardgatesofortbanking +!templates/xt_responsive +templates/xt_responsive/* +!templates/xt_responsive/xtCore +templates/xt_responsive/xtCore/* +!templates/xt_responsive/xtCore/pages +templates/xt_responsive/xtCore/pages/* +!templates/xt_responsive/xtCore/pages/cardgate_checkout.html +!templates/xt_responsive/xtCore/pages/checkout +templates/xt_responsive/xtCore/pages/checkout/* +!templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_cancel.html +!templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_failure.html +!templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_pending.html +!templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_success.html !README.md !README_DE.md !README_NL.md diff --git a/xtcommerce-cardgate-master/templates/xt_default/xtCore/pages/cardgate_checkout.html b/templates/xt_default/xtCore/pages/cardgate_checkout.html similarity index 100% rename from xtcommerce-cardgate-master/templates/xt_default/xtCore/pages/cardgate_checkout.html rename to templates/xt_default/xtCore/pages/cardgate_checkout.html diff --git a/xtcommerce-cardgate-master/templates/xt_default/xtCore/pages/checkout/subpage_cardgate_cancel.html b/templates/xt_default/xtCore/pages/checkout/subpage_cardgate_cancel.html similarity index 100% rename from xtcommerce-cardgate-master/templates/xt_default/xtCore/pages/checkout/subpage_cardgate_cancel.html rename to templates/xt_default/xtCore/pages/checkout/subpage_cardgate_cancel.html diff --git a/xtcommerce-cardgate-master/templates/xt_default/xtCore/pages/checkout/subpage_cardgate_failure.html b/templates/xt_default/xtCore/pages/checkout/subpage_cardgate_failure.html similarity index 100% rename from xtcommerce-cardgate-master/templates/xt_default/xtCore/pages/checkout/subpage_cardgate_failure.html rename to templates/xt_default/xtCore/pages/checkout/subpage_cardgate_failure.html diff --git a/xtcommerce-cardgate-master/templates/xt_default/xtCore/pages/checkout/subpage_cardgate_pending.html b/templates/xt_default/xtCore/pages/checkout/subpage_cardgate_pending.html similarity index 100% rename from xtcommerce-cardgate-master/templates/xt_default/xtCore/pages/checkout/subpage_cardgate_pending.html rename to templates/xt_default/xtCore/pages/checkout/subpage_cardgate_pending.html diff --git a/xtcommerce-cardgate-master/templates/xt_default/xtCore/pages/checkout/subpage_cardgate_success.html b/templates/xt_default/xtCore/pages/checkout/subpage_cardgate_success.html similarity index 100% rename from xtcommerce-cardgate-master/templates/xt_default/xtCore/pages/checkout/subpage_cardgate_success.html rename to templates/xt_default/xtCore/pages/checkout/subpage_cardgate_success.html diff --git a/xtcommerce-cardgate-master/templates/xt_grid/xtCore/pages/cardgate_checkout.html b/templates/xt_grid/xtCore/pages/cardgate_checkout.html similarity index 100% rename from xtcommerce-cardgate-master/templates/xt_grid/xtCore/pages/cardgate_checkout.html rename to templates/xt_grid/xtCore/pages/cardgate_checkout.html diff --git a/xtcommerce-cardgate-master/templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_cancel.html b/templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_cancel.html similarity index 100% rename from xtcommerce-cardgate-master/templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_cancel.html rename to templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_cancel.html diff --git a/xtcommerce-cardgate-master/templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_failure.html b/templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_failure.html similarity index 100% rename from xtcommerce-cardgate-master/templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_failure.html rename to templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_failure.html diff --git a/xtcommerce-cardgate-master/templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_pending.html b/templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_pending.html similarity index 100% rename from xtcommerce-cardgate-master/templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_pending.html rename to templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_pending.html diff --git a/xtcommerce-cardgate-master/templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_success.html b/templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_success.html similarity index 100% rename from xtcommerce-cardgate-master/templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_success.html rename to templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_success.html diff --git a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/init.php b/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/init.php deleted file mode 100755 index 8f2fd31..0000000 --- a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/init.php +++ /dev/null @@ -1,5 +0,0 @@ - 'firstname', - 'Initials' => 'initials', - 'LastName' => 'lastname', - 'Gender' => 'gender', - 'DayOfBirth' => 'dob', - 'Company' => 'company', - 'Address' => 'address', - 'City' => 'city', - 'State' => 'state', - 'ZipCode' => 'zipcode', - 'Country' => 'country_id' - ]; - - /** - * Sets the gender. - * @param string $sGender_ The gender to set. - * @return Address Returns this, makes the call chainable. - * @throws Exception - * @access public - * @api - */ - function setGender( $sGender_ ) { - if ( - ! is_string( $sGender_ ) - || strlen( $sGender_ ) != 1 - ) { - throw new Exception( 'Address.Gender.Invalid', 'invalid gender: ' . $sGender_ ); - } - return parent::setGender( $sGender_ ); - } - - /** - * Sets the day of birth. - * @param string $sDayOfBirth_ The day of birth to set. - * @return Address Returns this, makes the call chainable. - * @throws Exception - * @access public - * @api - */ - function setDayOfBirth( $sDayOfBirth_ ) { - if ( - ! is_string( $sDayOfBirth_ ) - || FALSE == ( $iDayOfBirthUnix = strtotime( $sDayOfBirth_ ) ) - ) { - throw new Exception( 'Address.DayOfBirth.Invalid', 'invalid day of birth: ' . $sDayOfBirth_ ); - } - return parent::setDayOfBirth( strftime( '%m/%d/%Y', $iDayOfBirthUnix ) ); - } - - /** - * Sets the country. - * @param string $sCountry_ The country to set (ISO 3166-1 alpha-2). - * @return Address Returns this, makes the call chainable. - * @throws Exception - * @access public - * @api - */ - function setCountry( $sCountry_ ) { - if ( - ! is_string( $sCountry_ ) - || strlen( $sCountry_ ) != 2 - ) { - throw new Exception( 'Address.Country.Invalid', 'invalid country: ' . $sCountry_ ); - } - return parent::setCountry( $sCountry_ ); - } - - } - -} diff --git a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Autoloader.php b/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Autoloader.php deleted file mode 100644 index f952b61..0000000 --- a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Autoloader.php +++ /dev/null @@ -1,58 +0,0 @@ -_aItems[] = $oItem; - return $oItem; - } - - function getAll() { - } - - function getData() { - $aData = []; - foreach( $this->_aItems as $oItem ) { - $aData[] = $oItem->getData(); - } - return $aData; - } - - } - -} diff --git a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Client.php b/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Client.php deleted file mode 100644 index 6f687d2..0000000 --- a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Client.php +++ /dev/null @@ -1,576 +0,0 @@ -setMerchantId( $iMerchantId_ )->setKey( $sKey_ )->setTestmode( $bTestmode_ ); - } - - /** - * Prevent leaking info in dumps. - * @ignore - */ - public function __debugInfo() { - return [ - 'Version' => $this->_oVersion, - 'Testmode' => $this->_bTestmode, - 'DebugLevel' => $this->_iDebugLevel, - 'iMerchantId' => $this->_iMerchantId, - 'API_URL' => $this->getUrl(), - 'LastRequest' => $this->_sLastRequest, - 'LastResult' => $this->_sLastResult - ]; - } - - /** - * Toggle testmode. - * @param bool $bTestmode_ Enable or disable testmode for this client. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setTestmode( $bTestmode_ ) { - if ( ! is_bool( $bTestmode_ ) ) { - throw new Exception( 'Client.Testmode.Invalid', 'invalid testmode: ' . $bTestmode_ ); - } - $this->_bTestmode = $bTestmode_; - return $this; - } - - /** - * Get currenct testmode setting. - * @return bool The current testmode setting - * @access public - * @api - */ - public function getTestmode() { - return $this->_bTestmode; - } - - /** - * Set debug level. - * @param int $iDebugLevel_ Level: 0 = None, 1 = Include request/resule in errors, 2 = Verbose cURL calls. - * @return $this - * @access public - * @api - */ - public function setDebugLevel( $iLevel_ ) { - $this->_iDebugLevel = $iLevel_; - return $this; - } - - /** - * Get current debug level setting. - * @return int The current debug level. - * @access public - * @api - */ - public function getDebugLevel() { - return $this->_iDebugLevel; - } - - /** - * Get debug information according to debug level. - * @param bool $bStartWithNewLine_ Optional flag to indicate the info should start with a new-line. - * @param bool $bAddResult_ Optional flag to indicate the result should be included too. - * @return string Debug info or empty if level = 0. - * @access public - * @api - */ - public function getDebugInfo( $bStartWithNewLine_ = TRUE, $bAddResult_ = TRUE ) { - if ( $this->getDebugLevel() > self::DEBUG_NONE ) { - $sResult = ( $bStartWithNewLine_ ? PHP_EOL : '' ); - $sResult .= 'Request: ' . $this->getLastRequest(); - if ( $bAddResult_ ) { - $sResult .= PHP_EOL . 'Result: ' . $this->getLastResult(); - } - return $sResult; - } else { - return ''; - } - } - - /** - * Configure the client object with a merchant id. - * @param int $iMerchantId_ Merchant id to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setMerchantId( $iMerchantId_ ) { - if ( ! is_integer( $iMerchantId_ ) ) { - throw new Exception( 'Client.MerchantId.Invalid', 'invalid merchant: ' . $iMerchantId_ ); - } - $this->_iMerchantId = $iMerchantId_; - return $this; - } - - /** - * Get the merchant id associated with this client. - * @return int The merchant id associated with this client - * @access public - * @api - */ - public function getMerchantId() { - return $this->_iMerchantId; - } - - /** - * Set the Merchant API key to authenticate the transaction request with. - * @param string $sKey_ The merchant API key to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setKey( $sKey_ ) { - if ( ! is_string( $sKey_ ) ) { - throw new Exception( 'Client.Key.Invalid', 'invalid merchant key: ' . $sKey_ ); - } - $this->_sKey = $sKey_; - return $this; - } - - /** - * Get the Merchant API key to authenticate the transaction request with. - * @return string The merchant API key. - * @access public - * @api - */ - public function getKey() { - return $this->_sKey; - } - - /** - * Set the IP address. - * @param string The IP address of the consumer. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setIp( $sIp_ ) { - if ( - ! is_string( $sIp_ ) - || FALSE === filter_var( $sIp_, FILTER_VALIDATE_IP ) // NOTE ipv6 - ) { - throw new Exception( 'Client.Ip.Invalid', 'invalid IP address: ' . $sIp_ ); - } - $this->_sIp = $sIp_; - return $this; - } - - /** - * Get the IP address. - * @return string The consumer IP address. - * @access public - * @api - */ - public function getIp() { - return $this->_sIp; - } - - /** - * Configure the language to use. - * @param string $sLanguage_ The language to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setLanguage( $sLanguage_ ) { - if ( ! is_string( $sLanguage_ ) ) { - throw new Exception( 'Client.Language.Invalid', 'invalid language: ' . $sLanguage_ ); - } - $this->_sLanguage = $sLanguage_; - return $this; - } - - /** - * Get the language the client is configured with. - * @return string The language the client is configured with. - * @access public - * @api - */ - public function getLanguage() { - return $this->_sLanguage; - } - - /** - * Get the URL to use with this connection, depending on testmode settings. - * @return string The URL to use - * @access public - * @api - */ - public function getUrl() { - if ( ! empty( $_SERVER['CG_API_URL'] ) ) { - return $_SERVER['CG_API_URL']; - } else { - return ( $this->getTestmode() ? self::URL_STAGING : self::URL_PRODUCTION ); - } - } - - /** - * Get the last request sent to the API. - * @return string The request string. - * @access public - * @api - */ - public function getLastRequest() { - return (string) $this->_sLastRequest; - } - - /** - * Get the last result from an API call. - * @return string The result string. - * @access public - * @api - */ - public function getLastResult() { - return (string) $this->_sLastResult; - } - - /** - * Pull the config from the API using a token provided by the site setup button in the backoffice. - * @return array Returns an array with settings. - * @throws Exception - * @access public - * @api - */ - static public function pullConfig( $sToken_, $bTestmode_ = FALSE ) { - if ( ! is_string( $sToken_ ) ) { - throw new Exception( 'Client.Token.Invalid', 'invalid token for settings pull: ' . $sToken_ ); - } - - $sResource = "pullconfig/{$sToken_}/"; - $sUrl = ( $bTestmode_ ? self::URL_STAGING : self::URL_PRODUCTION ) . $sResource; - - $rCh = curl_init(); - curl_setopt( $rCh, CURLOPT_URL, $sUrl ); - curl_setopt( $rCh, CURLOPT_RETURNTRANSFER, 1 ); - curl_setopt( $rCh, CURLOPT_TIMEOUT, 60 ); - curl_setopt( $rCh, CURLOPT_HEADER, FALSE ); - curl_setopt( $rCh, CURLOPT_HTTPHEADER, [ - 'Content-Type: application/json', - 'Accept: application/json' - ] ); - if ( $bTestmode_ ) { - curl_setopt( $rCh, CURLOPT_SSL_VERIFYPEER, FALSE ); - curl_setopt( $rCh, CURLOPT_SSL_VERIFYHOST, 0 ); - } else { - curl_setopt( $rCh, CURLOPT_SSL_VERIFYPEER, TRUE ); // verify SSL peer - curl_setopt( $rCh, CURLOPT_SSL_VERIFYHOST, 2 ); // check for valid common name and verify host - } - - if ( FALSE == ( $sResults = curl_exec( $rCh ) ) ) { - $sError = curl_error( $rCh ); - curl_close( $rCh ); - throw new Exception( 'Client.Request.Curl.Error', $sError ); - } else { - curl_close( $rCh ); - } - if ( NULL === ( $aResults = json_decode( $sResults, TRUE ) ) ) { - throw new Exception( 'Client.Request.JSON.Invalid', 'remote gave invalid JSON: ' . $sResults ); - } - if ( isset( $aResults['error'] ) ) { - throw new Exception( 'Client.Request.Remote.' . $aResults['error']['code'], $aResults['error']['message'] ); - } - - return $aResults; - } - - /** - * Accessor for the versioning resource. - * @return resource\Version - * @access public - * @api - */ - public function version() { - if ( NULL == $this->_oVersion ) { - $this->_oVersion = new resource\Version(); - } - return $this->_oVersion; - } - - /** - * Accessor for the transactions resource. - * @return resource\Transactions - * @access public - * @api - */ - public function transactions() { - if ( NULL == $this->_oTransactions ) { - $this->_oTransactions = new resource\Transactions( $this ); - } - return $this->_oTransactions; - } - - /** - * Accessor for the subscriptions resource. - * @return resource\Subscriptions - * @access public - * @api - */ - public function subscriptions() { - if ( NULL == $this->_oSubscriptions ) { - $this->_oSubscriptions = new resource\Subscriptions( $this ); - } - return $this->_oSubscriptions; - } - - /** - * Accessor for the consumers resource. - * @return resource\Consumers - * @access public - * @api - */ - public function consumers() { - if ( NULL == $this->_oConsumers ) { - $this->_oConsumers = new resource\Consumers( $this ); - } - return $this->_oConsumers; - } - - /** - * Accessor for the payment methods resource. - * @return resource\Methods - * @access public - * @api - */ - public function methods() { - if ( NULL == $this->_oMethods ) { - $this->_oMethods = new resource\Methods( $this ); - } - return $this->_oMethods; - } - - /** - * Send a request to the CardGate API. - * @param string $sResource_ The resource to call. - * @param array $aData_ Optional data to use for the call. - * @param string $sHttpMethod_ The http method to use (GET or POST, which is the default). - * @return array An array with request results. - * @throws Exception - */ - public function doRequest( $sResource_, $aData_ = NULL, $sHttpMethod_ = 'POST' ) { - - if ( ! in_array( $sHttpMethod_, [ 'GET', 'POST' ] ) ) { - throw new Exception( 'Client.HttpMethod.Invalid', 'invalid http method: ' . $sHttpMethod_ ); - } - - $sUrl = $this->getUrl() . $sResource_; - if ( is_array( $aData_ ) ) { - $aData_['ip'] = $this->getIp(); - $aData_['language_id'] = $this->getLanguage(); - } elseif ( is_null( $aData_ ) ) { - $aData_ = [ 'ip' => $this->getIp(), 'language_id' => $this->getLanguage() ]; - } else { - throw new Exception( 'Client.Data.Invalid', 'invalid data: ' . $aData_ ); - } - - if ( NULL !== $this->_oVersion ) { - $aData_ = array_merge( $aData_, $this->_oVersion->getData() ); - } - - $rCh = curl_init(); - curl_setopt( $rCh, CURLOPT_HTTPAUTH, CURLAUTH_BASIC ); - curl_setopt( $rCh, CURLOPT_USERPWD, $this->_iMerchantId . ':' . $this->_sKey ); - curl_setopt( $rCh, CURLOPT_RETURNTRANSFER, 1 ); - curl_setopt( $rCh, CURLOPT_TIMEOUT, 60 ); - curl_setopt( $rCh, CURLOPT_HEADER, FALSE ); - curl_setopt( $rCh, CURLOPT_HTTPHEADER, [ - 'Content-Type: application/json', - 'Accept: application/json' - ] ); - if ( $this->_bTestmode ) { - curl_setopt( $rCh, CURLOPT_SSL_VERIFYPEER, FALSE ); - curl_setopt( $rCh, CURLOPT_SSL_VERIFYHOST, 0 ); - } else { - curl_setopt( $rCh, CURLOPT_SSL_VERIFYPEER, TRUE ); // verify SSL peer - curl_setopt( $rCh, CURLOPT_SSL_VERIFYHOST, 2 ); // check for valid common name and verify host - } - - if ( 'POST' == $sHttpMethod_ ) { - $this->_sLastRequest = json_encode( $aData_ ); - curl_setopt( $rCh, CURLOPT_URL, $sUrl ); - curl_setopt( $rCh, CURLOPT_POST, TRUE ); - curl_setopt( $rCh, CURLOPT_POSTFIELDS, $this->_sLastRequest ); - $this->_sLastRequest = "[POST $sUrl] " . $this->_sLastRequest; - } else { - $this->_sLastRequest = $sUrl - . ( FALSE === strchr( $sUrl, '?' ) ? '?' : '&' ) - . http_build_query( $aData_ ) - ; - curl_setopt( $rCh, CURLOPT_URL, $this->_sLastRequest ); - } - - if ( self::DEBUG_VERBOSE == $this->_iDebugLevel ) { - curl_setopt( $rCh, CURLOPT_VERBOSE, TRUE ); - } - - $this->_sLastResult = curl_exec( $rCh ); - if ( FALSE == $this->_sLastResult ) { - $sError = curl_error( $rCh ); - curl_close( $rCh ); - throw new Exception( 'Client.Request.Curl.Error', $sError ); - } else { - curl_close( $rCh ); - } - if ( NULL === ( $aResults = json_decode( $this->_sLastResult, TRUE ) ) ) { - throw new Exception( 'Client.Request.JSON.Invalid', 'remote gave invalid JSON: ' . $this->_sLastResult ); - } - if ( isset( $aResults['error'] ) ) { - throw new Exception( 'Client.Request.Remote.' . $aResults['error']['code'], $aResults['error']['message'] . $this->getDebugInfo() ); - } - - return $aResults; - } - - } - -} diff --git a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Consumer.php b/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Consumer.php deleted file mode 100644 index e9c9e1e..0000000 --- a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Consumer.php +++ /dev/null @@ -1,96 +0,0 @@ - 'email', - 'Phone' => 'phone' - ]; - - /** - * The bill-to address. - * @var Address - * @access private - */ - private $_oAddress = NULL; - - /** - * The ship-to address. - * @var Address - * @access private - */ - private $_oShippingAddress = NULL; - - /** - * Accessor for the bill-to address. - * @return Address - * @access public - * @api - */ - public function address() { - if ( NULL == $this->_oAddress ) { - $this->_oAddress = new Address(); - } - return $this->_oAddress; - } - - /** - * Accessor for the ship-to address. - * @return Address - * @access public - * @api - */ - public function shippingAddress() { - if ( NULL == $this->_oShippingAddress ) { - $this->_oShippingAddress = new Address(); - } - return $this->_oShippingAddress; - } - - } - -} diff --git a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Entity.php b/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Entity.php deleted file mode 100644 index 35a5752..0000000 --- a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Entity.php +++ /dev/null @@ -1,122 +0,0 @@ - 'merchant_id', 'Name' => 'name' ] - */ - static protected $_aFields = []; - - /** - * This method can be used to retrieve all the data of the instance. - * @param string $sPrefix_ Optionally prefix all the data entries. - * @return array Returns an array with the data in the entity. - */ - public function getData( $sPrefix_ = NULL ) { - if ( is_string( $sPrefix_ ) ) { - $aResult = []; - foreach( $this->_aData as $sKey => $mValue ) { - $aResult[$sPrefix_ . $sKey] = $mValue; - } - return $aResult; - } else { - return $this->_aData; - } - } - - /** - * @ignore - * @internal The __call method translates get-, set-, unset- and has-methods to their configured fields. - * @return $this|mixed|bool Return $this on set and unset, mixed on get and bool on has - * @throws Exception|\ReflectionException - */ - public function __call( $sMethod_, $aArgs_ ) { - $sClassName = ( new \ReflectionClass( $this ) )->getShortName(); - switch ( substr( $sMethod_, 0, 3 ) ) { - case 'get': - $sKey = substr( $sMethod_, 3 ); - if ( isset( static::$_aFields[$sKey] ) ) { - return isset( $this->_aData[static::$_aFields[$sKey]] ) ? $this->_aData[static::$_aFields[$sKey]] : NULL; - } - break; - case 'set': - $sKey = substr( $sMethod_, 3 ); - if ( isset( static::$_aFields[$sKey] ) ) { - if ( isset( $aArgs_[0] ) ) { - if ( - is_scalar( $aArgs_[0] ) - && ( - ! is_string( $aArgs_[0] ) - || strlen( $aArgs_[0] ) > 0 - ) - ) { - $this->_aData[static::$_aFields[$sKey]] = $aArgs_[0]; - return $this; // makes the call chainable - } else { - throw new Exception( "{$sClassName}.Invalid.Method", "invalid value for {$sMethod_}" ); - } - } else { - throw new Exception( "{$sClassName}.Invalid.Method", "missing parameter 1 for {$sMethod_}" ); - } - } - break; - case 'uns': - $sKey = substr( $sMethod_, 5 ); - if ( isset( static::$_aFields[$sKey] ) ) { - unset( $this->_aData[static::$_aFields[$sKey]] ); - return $this; // makes the call chainable - } - break; - case 'has': - $sKey = substr( $sMethod_, 3 ); - if ( isset( static::$_aFields[$sKey] ) ) { - return isset( $this->_aData[static::$_aFields[$sKey]] ); - } - break; - } - throw new Exception( "{$sClassName}.Invalid.Method", "call to undefined method {$sMethod_}" ); - } - - } - -} diff --git a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Exception.php b/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Exception.php deleted file mode 100644 index c1ed98b..0000000 --- a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Exception.php +++ /dev/null @@ -1,68 +0,0 @@ -_sError = $sError_; - parent::__construct( $sMessage_, $iCode_, $oPrevious_ ); - } - - /** - * Get the unified string code associated with this exception. - * @return string The unified string code of the exception. - * @access public - * @api - */ - public function getError() { - return $this->_sError; - } - - } - -} diff --git a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Item.php b/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Item.php deleted file mode 100644 index 603483b..0000000 --- a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Item.php +++ /dev/null @@ -1,227 +0,0 @@ - 'sku', - 'Name' => 'name', - 'Link' => 'link', - 'Quantity' => 'quantity', - 'Price' => 'price', - 'Type' => 'type', - 'Vat' => 'vat', - 'VatIncluded' => 'vat_inc', - 'VatAmount' => 'vat_amount', - 'Stock' => 'stock' - ]; - - /** - * The constructor. - * @param int $iType_ The cart item type. - * @param string $sSKU_ The SKU of the cart item. - * @param string $sName_ The name of the cart item (productname). - * @param $iQuantity_ - * @param int $iPrice_ The price of the cart item. - * @param string $sLink_ An optional link to the product. - * @throws Exception|\ReflectionException - * @access public - * @api - */ - function __construct( $iType_, $sSKU_, $sName_, $iQuantity_, $iPrice_, $sLink_ = NULL ) { - $this->setType( $iType_ )->setSKU( $sSKU_ )->setName( $sName_ )->setQuantity( $iQuantity_ )->setPrice( $iPrice_ ); - if ( ! is_null( $sLink_ ) ) { - $this->setLink( $sLink_ ); - } - } - - /** - * Sets the type (must be one of the {@link \cardgate\api\Item::TYPE_*}} constants. - * @param int $iType_ The cart item type to set. - * @return Item Returns this, makes the call chainable. - * @throws Exception|\ReflectionException - * @access public - * @api - */ - function setType( $iType_ ) { - if ( - ! is_integer( $iType_ ) - || ! in_array( $iType_, ( new \ReflectionClass( '\cardgate\api\Item' ) )->getConstants() ) - ) { - throw new Exception( 'Item.Type.Invalid', 'invalid cart item type: ' . $iType_ ); - } - return parent::setType( $iType_ ); - } - - /** - * Sets the vat. - * @param float $fVat_ The vat to set. - * @return Item Returns this, makes the call chainable. - * @throws Exception - * @access public - * @api - */ - function setVat( $fVat_ ) { - if ( ! is_numeric( $fVat_ ) ) { - throw new Exception( 'Item.Vat.Invalid', 'invalid vat: ' . $fVat_ ); - } - return parent::setVat( $fVat_ ); - } - - /** - * Sets the vat included flag. - * @param bool $bVatIncluded_ The vat included flag to set. - * @return Item Returns this, makes the call chainable. - * @access public - * @api - */ - function setVatIncluded( $bVatIncluded_ ) { - return parent::setVatIncluded( !!$bVatIncluded_ ); - } - - /** - * Sets the vat amount. - * @param float $fVatAmount_ The vat amount to set. - * @return Item Returns this, makes the call chainable. - * @throws Exception - * @access public - * @api - */ - function setVatAmount( $fVatAmount_ ) { - if ( ! is_numeric( $fVatAmount_ ) ) { - throw new Exception( 'Item.Vat.Amount.Invalid', 'invalid vat amount: ' . $fVatAmount_ ); - } - return parent::setVatAmount( $fVatAmount_ ); - } - - /** - * Sets the stock. - * @param float $fStock_ The stock to set. - * @return Item Returns this, makes the call chainable. - * @throws Exception - * @access public - * @api - */ - function setStock( $fStock_ ) { - if ( ! is_numeric( $fStock_ ) ) { - throw new Exception( 'Item.Stock.Invalid', 'invalid stock: ' . $fStock_ ); - } - return parent::setStock( $fStock_ ); - } - - } - -} diff --git a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Method.php b/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Method.php deleted file mode 100644 index b6ae652..0000000 --- a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Method.php +++ /dev/null @@ -1,271 +0,0 @@ -getConstants(); - } - $this->_oClient = $oClient_; - if ( ! in_array( $sId_, $aValidMethods ) ) { - throw new Exception('Method.PaymentMethod.Invalid', 'invalid payment method: ' . $sId_); - } - $this->setId( $sId_ ); - $this->setName( $sName_ ); - } - - /** - * Set the method id. - * @param string $sId_ Method id to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setId( $sId_ ) { - if ( - ! is_string( $sId_ ) - || empty( $sId_ ) - ) { - throw new Exception( 'Method.Id.Invalid', 'invalid id: ' . $sId_ ); - } - $this->_sId = $sId_; - return $this; - } - - /** - * Get the payment method id. - * @return string The payment method id for this instance. - * @access public - * @api - */ - public function getId() { - return $this->_sId; - } - - /** - * Set the method name. - * @param string $sName_ Method name to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setName( $sName_ ) { - if ( - ! is_string( $sName_ ) - || empty( $sName_ ) - ) { - throw new Exception( 'Method.Name.Invalid', 'invalid name: ' . $sName_ ); - } - $this->_sName = $sName_; - return $this; - } - - /** - * Get the payment method name. - * @return string The payment method name for this instance. - * @access public - * @api - */ - public function getName() { - return $this->_sName; - } - - /** - * This method returns all the issuers available for the current payment method. - * @return array An array with issuers - * @throws Exception - * @access public - * @api - */ - public function getIssuers() { - - if ( TRUE ) { - // Use the static version which is automatically updated every day - $aResult = [ - 'issuers' => $this->_oClient->doRequest( - $this->_oClient->getTestMode() - ? '../../../cache/idealDirectoryCUROPayments-TEST.json' - : '../../../cache/idealDirectoryCUROPayments.json' - , NULL, 'GET' - ) - ]; - } else { - // Retrieve using API call. - // TODO: The response should be cached on the local system for 24 hours! - $sResource = $this->_sId . '/issuers/'; - $aResult = $this->_oClient->doRequest( $sResource, NULL, 'GET' ); - } - if ( empty( $aResult['issuers'] ) ) { - throw new Exception( 'Method.Issuers.Invalid', 'invalid issuer data returned' ); - } - - return $aResult['issuers']; - } - - } - -} diff --git a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Subscription.php b/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Subscription.php deleted file mode 100644 index f07ba31..0000000 --- a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Subscription.php +++ /dev/null @@ -1,514 +0,0 @@ -_oClient = $oClient_; - $this->setSiteId( $iSiteId_ ) - ->setPeriod( $iPeriod_ ) - ->setPeriodType( $sPeriodType_ ) - ->setPeriodPrice( $iPeriodAmount_ ) - ->setCurrency( $sCurrency_ ); - } - - /** - * Set the subscription id. - * @param string $sId_ Subscription id to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setId( $sId_ ) { - if ( - ! is_string( $sId_ ) - || empty( $sId_ ) - ) { - throw new Exception( 'Subscription.Id.Invalid', 'invalid id: ' . $sId_ ); - } - $this->_sId = $sId_; - return $this; - } - - /** - * Get the subscription id associated with this subscription. - * @return string The subscription id associated with this subscription. - * @throws Exception - * @access public - * @api - */ - public function getId() { - if ( empty( $this->_sId ) ) { - throw new Exception( 'Subscription.Not.Initialized', 'invalid subscription state' ); - } - return $this->_sId; - } - - /** - * Configure the subscription object with a period. - * @param int $iPeriod_ Period length to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setPeriod( $iPeriod_ ) { - if ( ! is_integer( $iPeriod_ ) ) { - throw new Exception( 'Subscription.Period.Invalid', 'invalid period: ' . $iPeriod_ ); - } - $this->_iPeriod = $iPeriod_; - return $this; - } - - /** - * Get the period of the subscription. - * @return int The period of the subscription. - * @access public - * @api - */ - public function getPeriod() { - return $this->_iPeriod; - } - - /** - * Configure the subscription object with a period type. - * @param string $sPeriodType_ Period type to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setPeriodType( $sPeriodType_ ) { - if ( - ! is_string( $sPeriodType_ ) - || ! in_array( $sPeriodType_, [ 'day', 'week', 'month', 'year' ] ) - ) { - throw new Exception( 'Subscription.Period.Type.Invalid', 'invalid period type: ' . $sPeriodType_ ); - } - $this->_sPeriodType = $sPeriodType_; - return $this; - } - - /** - * Get the period type of the subscription. - * @return string The period type of the subscription. - * @access public - * @api - */ - public function getPeriodType() { - return $this->_sPeriodType; - } - - /** - * Configure the subscription object with a period price. - * @param int $iPeriod_ Period price to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setPeriodPrice( $iPeriodPrice_ ) { - if ( ! is_integer( $iPeriodPrice_ ) ) { - throw new Exception( 'Subscription.Period.Price.Invalid', 'invalid period price: ' . $iPeriodPrice_ ); - } - $this->_iPeriodPrice = $iPeriodPrice_; - return $this; - } - - /** - * Get the period price of the subscription. - * @return int The period price of the subscription. - * @access public - * @api - */ - public function getPeriodPrice() { - return $this->_iPeriodPrice; - } - - /** - * Configure the subscription initial payment amount. - * @param int $iInitialPayment_ The initial payment amount to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setInitialPayment( $iAmount_ ) { - if ( ! is_integer( $iAmount_ ) ) { - throw new Exception( 'Subscription.Initial.Payment.Invalid', 'invalid initial payment amount: ' . $iAmount_ ); - } - $this->_iInitialPayment = $iAmount_; - return $this; - } - - - /** - * Configure the subscription object with a trial period. - * @param int $iPeriod_ Trial period length to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setTrialPeriod( $iTrialPeriod_ ) { - if ( ! is_integer( $iTrialPeriod_ ) ) { - throw new Exception( 'Subscription.Period.Invalid', 'invalid trial period: ' . $iTrialPeriod_ ); - } - $this->_iTrialPeriod = $iTrialPeriod_; - return $this; - } - - /** - * Get the trial period of the subscription. - * @return int The trial period of the subscription. - * @access public - * @api - */ - public function getTrialPeriod() { - return $this->_iTrialPeriod; - } - - /** - * Configure the subscription object with a trial period type. - * @param string $sTrialPeriodType_ Trial Period type to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setTrialPeriodType( $sTrialPeriodType_ ) { - if ( - ! is_string( $sTrialPeriodType_ ) - || ! in_array( $sTrialPeriodType_, [ 'day', 'week', 'month', 'year' ] ) - ) { - throw new Exception( 'Subscription.Period.Type.Invalid', 'invalid trial period type: ' . $sTrialPeriodType_ ); - } - $this->_sTrialPeriodType = $sTrialPeriodType_; - return $this; - } - - /** - * Get the trial period type of the subscription. - * @return string The trial period type of the subscription. - * @access public - * @api - */ - public function getTrialPeriodType() { - return $this->_sTrialPeriodType; - } - - /** - * Configure the subscription object with a trial period price. - * @param int $iPeriod_ Trial period price to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setTrialPeriodPrice( $iTrialPeriodPrice_ ) { - if ( ! is_integer( $iTrialPeriodPrice_ ) ) { - throw new Exception( 'Subscription.Period.Price.Invalid', 'invalid trial period price: ' . $iTrialPeriodPrice_ ); - } - $this->_iTrialPeriodPrice = $iTrialPeriodPrice_; - return $this; - } - - /** - * Get the period price of the subscription. - * @return int The period price of the subscription. - * @access public - * @api - */ - public function getTrialPeriodPrice() { - return $this->_iPeriodPrice; - } - - /** - * Configure the subscription date on which it should start. - * @param string $sStartDate_ The start date to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setStartDate( $sStartDate_ ) { - if ( ! is_string( $sStartDate_ ) ) { - throw new Exception( 'Subscription.Date.Start.Invalid', 'invalid start date: ' . $sStartDate_ ); - } - $this->_sStartDate = $sStartDate_; - return $this; - } - - /** - * Get the start date of the subscription. - * @return string The start date of the subscription. - * @access public - * @api - */ - public function getStartDate() { - return $this->_sStartDate; - } - - /** - * Configure the date on which the subscription should end. - * @param string $sEndDate_ The end date to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setEndDate( $sEndDate_ ) { - if ( ! is_string( $sEndDate_ ) ) { - throw new Exception( 'Subscription.Date.End.Invalid', 'invalid end date: ' . $sEndDate_ ); - } - $this->_sEndDate = $sEndDate_; - return $this; - } - - /** - * Get the end date of the subscription. - * @return string The end date of the subscription. - * @access public - * @api - */ - public function getEndDate() { - return $this->_sEndDate; - } - - /** - * Get the status of the subscription. - * @return string The end date of the subscription. - * @access public - * @api - */ - public function getStatus() { - return $this->_sStatus; - } - - /** - * Registers the subscription with the CardGate payment gateway. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function register() { - $aData = [ - 'site_id' => $this->_iSiteId, - 'currency_id' => $this->_sCurrency, - 'url_callback' => $this->_sCallbackUrl, - 'url_success' => $this->_sSuccessUrl, - 'url_failure' => $this->_sFailureUrl, - 'url_pending' => $this->_sPendingUrl, - 'description' => $this->_sDescription, - 'reference' => $this->_sReference, - 'recurring' => true, - 'period' => $this->_iPeriod, - 'period_type' => $this->_sPeriodType, - 'period_price' => $this->_iPeriodPrice, - 'initial_payment' => $this->_iInitialPayment, - 'trial_period' => $this->_iTrialPeriod, - 'trial_period_type' => $this->_sTrialPeriodType, - 'trial_period_price' => $this->_iTrialPeriodPrice, - 'start_date' => $this->_sStartDate, - 'end_date' => $this->_sEndDate, - ]; - if ( ! is_null( $this->_oConsumer ) ) { - $aData['email'] = $this->_oConsumer->getEmail(); - $aData['phone'] = $this->_oConsumer->getPhone(); - $aData['consumer'] = array_merge( - $this->_oConsumer->address()->getData(), - $this->_oConsumer->shippingAddress()->getData( 'shipto_' ) - ); - $aData['country_id'] = $this->_oConsumer->address()->getCountry(); - } - if ( ! is_null( $this->_oCart ) ) { - $aData['cartitems'] = $this->_oCart->getData(); - } - - $sResource = 'subscription/register/'; - - if ( ! empty( $this->_oPaymentMethod ) ) { - $aData['pt'] = $this->_oPaymentMethod->getId(); - $aData['issuer'] = $this->_sIssuer; - } - - $aData = array_filter( $aData ); // remove NULL values - $aResult = $this->_oClient->doRequest( $sResource, $aData, 'POST' ); - - if ( - empty( $aResult ) - || empty( $aResult['subscription'] ) - ) { - throw new Exception( 'Subscription.Request.Invalid', 'unexpected result: ' . $this->_oClient->getLastResult() . $this->_oClient->getDebugInfo( TRUE, FALSE ) ); - } - $this->_sId = $aResult['subscription']; - if ( - isset( $aResult['subscription']['action'] ) - && 'redirect' == $aResult['subscription']['action'] - ) { - $this->_sActionUrl = $aResult['subscription']['url']; - } - - return $this; - } - - /** - * Change the subscription status. - * @return bool Whether the status change succeeded. - * @throws Exception - * @access public - * @api - */ - public function changeStatus( $sStatus_ ) { - - if ( empty( $this->_sId ) ) { - throw new Exception( 'Subscription.Request.Invalid', 'invalid subscription id' ); - } - - if ( ! in_array( $sStatus_, [ 'reactivate' , 'suspend', 'cancel', 'deactivate' ] ) ) { - throw new Exception( 'Subscription.Status.Invalid', 'invalid subscription status provided' ); - } - - $aData = [ - 'subscription_id' => $this->_sId, - 'description' => $this->_sDescription, - ]; - - $sResource = 'subscription/' . $sStatus_ . '/'; - - $aData = array_filter( $aData ); // remove NULL values - $aResult = $this->_oClient->doRequest( $sResource, $aData, 'POST' ); - - if ( FALSE == $aResult['success'] ) { - // oClient will have thrown an error if there was a proper error from the API, so this is weird! - throw new Exception( 'Subscription.Request.Invalid', 'unexpected result: ' . $this->_oClient->getLastResult() . $this->_oClient->getDebugInfo( TRUE, FALSE ) ); - } - - return TRUE; - } - - } - -} diff --git a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Transaction.php b/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Transaction.php deleted file mode 100644 index ccd8bbb..0000000 --- a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Transaction.php +++ /dev/null @@ -1,793 +0,0 @@ -_oClient = $oClient_; - $this->setSiteId( $iSiteId_ )->setAmount( $iAmount_ )->setCurrency( $sCurrency_ ); - } - - /** - * Set the transaction id. - * @param string $sId_ Transaction id to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setId( $sId_ ) { - if ( - ! is_string( $sId_ ) - || empty( $sId_ ) - ) { - throw new Exception( 'Transaction.Id.Invalid', 'invalid id: ' . $sId_ ); - } - $this->_sId = $sId_; - return $this; - } - - /** - * Get the transaction id associated with this transaction. - * @return string The transaction id associated with this transaction. - * @throws Exception - * @access public - * @api - */ - public function getId() { - if ( empty( $this->_sId ) ) { - throw new Exception( 'Transaction.Not.Initialized', 'invalid transaction state' ); - } - return $this->_sId; - } - - /** - * Configure the transaction object with a site id. - * @param int $iSiteId_ Site id to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setSiteId( $iSiteId_ ) { - if ( ! is_integer( $iSiteId_ ) ) { - throw new Exception( 'Transaction.SiteId.Invalid', 'invalid site: ' . $iSiteId_ ); - } - $this->_iSiteId = $iSiteId_; - return $this; - } - - /** - * Get the site id associated with this transaction. - * @return int The site id associated with this transaction. - * @access public - * @api - */ - public function getSiteId() { - return $this->_iSiteId; - } - - /** - * Set the Site key to authenticate the hash in the request. - * @param string $sSiteKey_ The site key to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setSiteKey( $sSiteKey_ ) { - if ( ! is_string( $sSiteKey_ ) ) { - throw new Exception( 'Client.SiteKey.Invalid', 'invalid site key: ' . $sSiteKey_ ); - } - $this->_sSiteKey = $sSiteKey_; - return $this; - } - - /** - * Get the Merchant API key to authenticate the transaction request with. - * @return string The merchant API key. - * @access public - * @api - */ - public function getSiteKey() { - return $this->_sSiteKey; - } - - /** - * Configure the transaction object with an amount. - * @param int $iAmount_ Amount in cents to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setAmount( $iAmount_ ) { - if ( ! is_integer( $iAmount_ ) ) { - throw new Exception( 'Transaction.Amount.Invalid', 'invalid amount: ' . $iAmount_ ); - } - $this->_iAmount = $iAmount_; - return $this; - } - - /** - * Get the amount of the transaction. - * @return int The amount of the transaction. - * @access public - * @api - */ - public function getAmount() { - return $this->_iAmount; - } - - /** - * Configure the transaction currency. - * @param string $sCurrency_ The currency to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setCurrency( $sCurrency_ ) { - if ( ! is_string( $sCurrency_ ) ) { - throw new Exception( 'Transaction.Currency.Invalid', 'invalid currency: ' . $sCurrency_ ); - } - $this->_sCurrency = $sCurrency_; - return $this; - } - - /** - * Get the currency of the transaction. - * @return string The currency of the transaction. - * @access public - * @api - */ - public function getCurrency() { - return $this->_sCurrency; - } - - /** - * Configure the description for the transaction. - * @param string $sDescription_ The description to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setDescription( $sDescription_ ) { - if ( ! is_string( $sDescription_ ) ) { - throw new Exception( 'Transaction.Description.Invalid', 'invalid description: ' . $sDescription_ ); - } - $this->_sDescription = $sDescription_; - return $this; - } - - /** - * Get the description for the transaction. - * @return string The description of the transaction. - * @access public - * @api - */ - public function getDescription() { - return $this->_sDescription; - } - - /** - * Configure the reference for the transaction. - * @param string $sReference_ The reference to set. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setReference( $sReference_ ) { - if ( ! is_string( $sReference_ ) ) { - throw new Exception( 'Transaction.Reference.Invalid', 'invalid reference: ' . $sReference_ ); - } - $this->_sReference = $sReference_; - return $this; - } - - /** - * Get the reference for the transaction. - * @return string The reference of the transaction. - * @access public - * @api - */ - public function getReference() { - return $this->_sReference; - } - - /** - * Set the payment method to use for the transaction. - * @param Mixed $mPaymentMethod_ The payment method to use for the transaction. Can be one of the - * consts defined in {@link Method} or a {@link Method} instance. - * @return $this - * @throws Exception|\ReflectionException - * @access public - * @api - */ - public function setPaymentMethod( $mPaymentMethod_ ) { - if ( $mPaymentMethod_ instanceof Method ) { - $this->_oPaymentMethod = $mPaymentMethod_; - } elseif ( is_string( $mPaymentMethod_ ) ) { - $this->_oPaymentMethod = new Method( $this->_oClient, $mPaymentMethod_, $mPaymentMethod_ ); - } else { - throw new Exception( 'Transaction.PaymentMethod.Invalid', 'invalid payment method: ' . $mPaymentMethod_ ); - } - return $this; - } - - /** - * Get the payment method that will be used for the transaction. - * @return Method The payment method that will be used for the transaction. - * @access public - * @api - */ - public function getPaymentMethod() { - return $this->_oPaymentMethod; - } - - /** - * Set the optional payment method issuer to use for the transaction. - * @param string $sIssuer_ The payment method issuer to use for the transaction. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setIssuer( $sIssuer_ ) { - if ( - empty( $this->_oPaymentMethod ) - || ! is_string( $sIssuer_ ) - ) { - throw new Exception( 'Transaction.Issuer.Invalid', 'invalid issuer: ' . $sIssuer_ ); - } - $this->_sIssuer = $sIssuer_; - return $this; - } - - /** - * Get the optional payment method issuer that will be used for the transaction. - * @return string The payment method issuer that will be used for the transaction. - * @access public - * @api - */ - public function getIssuer() { - return $this->_sIssuer; - } - - /** - * Set the recurring flag on the transaction. - * @param bool $bRecurring_ Wether or not this transaction can be used for recurring. - * @return $this - * @access public - * @api - */ - public function setRecurring( $bRecurring_ ) { - $this->_bRecurring = (bool) $bRecurring_; - return $this; - } - - /** - * Get the recurring flag of the transaction. - * @return bool Returns wether or not this transaction can be used for recurring. - * @access public - * @api - */ - public function getRecurring() { - return $this->_bRecurring; - } - - /** - * Set the consumer for the transaction. - * @param Consumer $oConsumer_ The consumer for the transaction. - * @return $this - * @access public - * @api - */ - public function setConsumer( Consumer $oConsumer_ ) { - $this->_oConsumer = $oConsumer_; - return $this; - } - - /** - * Get the consumer for the transaction. - * @return Consumer The consumer for the transaction. - * @access public - * @api - */ - public function getConsumer() { - if ( empty( $this->_oConsumer ) ) { - $this->_oConsumer = new Consumer(); - } - return $this->_oConsumer; - } - - /** - * Get the consumer for the transaction. - * @return Consumer The consumer for the transaction. - * @access public - * @api - * @deprecated Will be removed in v2.0.0. - */ - public function getCustomer() { - return $this->getConsumer(); - } - - /** - * Set the cart for the transaction. - * @param Cart $oCart_ The cart for the transaction. - * @return $this - * @access public - * @api - */ - public function setCart( Cart $oCart_ ) { - $this->_oCart = $oCart_; - return $this; - } - - /** - * Get the cart for the transaction. - * @return Cart The cart for the transaction. - * @access public - * @api - */ - public function getCart() { - if ( empty( $this->_oCart ) ) { - $this->_oCart = new Cart(); - } - return $this->_oCart; - } - - /** - * Set the callback URL. - * @param string $sUrl_ The URL to send callbacks to. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setCallbackUrl( $sUrl_ ) { - if ( FALSE === filter_var( $sUrl_, FILTER_VALIDATE_URL ) ) { - throw new Exception( 'Transaction.CallbackUrl.Invalid', 'invalid url: ' . $sUrl_ ); - } - $this->_sCallbackUrl = $sUrl_; - return $this; - } - - /** - * Get the callbacl URL. - * @return string The URL callbacks are being sent to. - * @access public - * @api - */ - public function getCallbackUrl() { - return $this->_sCallbackUrl; - } - - /** - * Set the success URL. - * @param string $sUrl_ The URL to send successful transaction redirects. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setSuccessUrl( $sUrl_ ) { - if ( FALSE === filter_var( $sUrl_, FILTER_VALIDATE_URL ) ) { - throw new Exception( 'Transaction.SuccessUrl.Invalid', 'invalid url: ' . $sUrl_ ); - } - $this->_sSuccessUrl = $sUrl_; - return $this; - } - - /** - * Get the success URL. - * @return string The URL successful transactions are being redirected to. - * @access public - * @api - */ - public function getSuccessUrl() { - return $this->_sSuccessUrl; - } - - /** - * Set the failure URL. - * @param string $sUrl_ The URL to send failed transaction redirects. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setFailureUrl( $sUrl_ ) { - if ( FALSE === filter_var( $sUrl_, FILTER_VALIDATE_URL ) ) { - throw new Exception( 'Transaction.FailureUrl.Invalid', 'invalid url: ' . $sUrl_ ); - } - $this->_sFailureUrl = $sUrl_; - return $this; - } - - /** - * Get the failure URL. - * @return string The URL failed transactions are being redirected to. - * @access public - * @api - */ - public function getFailureUrl() { - return $this->_sFailureUrl; - } - - /** - * Set the failure URL. - * @param string $sUrl_ The URL to send failed transaction redirects. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setPendingUrl( $sUrl_ ) { - if ( FALSE === filter_var( $sUrl_, FILTER_VALIDATE_URL ) ) { - throw new Exception( 'Transaction.PendingUrl.Invalid', 'invalid url: ' . $sUrl_ ); - } - $this->_sPendingUrl = $sUrl_; - return $this; - } - - /** - * Use this method to set the url for success, failure and pending all at once. - * @param string $sUrl_ The URL to use for success, failure and pending. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function setRedirectUrl( $sUrl_ ) { - $this->setSuccessUrl( $sUrl_ )->setFailureUrl( $sUrl_ )->setPendingUrl( $sUrl_ ); - return $this; - } - - /** - * Get the pending URL. - * @return string The URL pending transactions are being redirected to. - * @access public - * @api - */ - public function getPendingUrl() { - return $this->_sPendingUrl; - } - - /** - * Get the redirect URL after transaction register. - * @return string The URL to redirect to after register. - * @access public - * @api - */ - public function getActionUrl() { - return $this->_sActionUrl; - } - - /** - * Registers the transaction with the cardgate payment gateway. - * @return $this - * @throws Exception - * @access public - * @api - */ - public function register() { - $aData = [ - 'site_id' => $this->_iSiteId, - 'amount' => $this->_iAmount, - 'currency_id' => $this->_sCurrency, - 'url_callback' => $this->_sCallbackUrl, - 'url_success' => $this->_sSuccessUrl, - 'url_failure' => $this->_sFailureUrl, - 'url_pending' => $this->_sPendingUrl, - 'description' => $this->_sDescription, - 'reference' => $this->_sReference, - 'recurring' => $this->_bRecurring ? '1' : '0' - ]; - if ( ! is_null( $this->_oConsumer ) ) { - $aData['email'] = $this->_oConsumer->getEmail(); - $aData['phone'] = $this->_oConsumer->getPhone(); - $aData['consumer'] = array_merge( - $this->_oConsumer->address()->getData(), - $this->_oConsumer->shippingAddress()->getData( 'shipto_' ) - ); - $aData['country_id'] = $this->_oConsumer->address()->getCountry(); - } - if ( ! is_null( $this->_oCart ) ) { - $aData['cartitems'] = $this->_oCart->getData(); - } - - $sResource = 'payment/'; - if ( ! empty( $this->_oPaymentMethod ) ) { - $sResource .= $this->_oPaymentMethod->getId() . '/'; - $aData['issuer'] = $this->_sIssuer; - } - - $aData = array_filter( $aData ); // remove NULL values - $aResult = $this->_oClient->doRequest( $sResource, $aData, 'POST' ); - - if ( - empty( $aResult['payment'] ) - || empty( $aResult['payment']['transaction'] ) - ) { - throw new Exception( 'Transaction.Request.Invalid', 'unexpected result: ' . $this->_oClient->getLastResult() . $this->_oClient->getDebugInfo( TRUE, FALSE ) ); - } - $this->_sId = $aResult['payment']['transaction']; - if ( - isset( $aResult['payment']['action'] ) - && 'redirect' == $aResult['payment']['action'] - ) { - $this->_sActionUrl = $aResult['payment']['url']; - } - - return $this; - } - - /** - * This method can be used to determine if this transaction can be refunded. - * @param bool $iRemainder_ Will be set to the amount that can be refunded. - * refunds are supported. - * @return bool - * @throws Exception - * @access public - */ - public function canRefund( &$iRemainder_ = NULL ) { - $sResource = "transaction/{$this->_sId}/"; - - $aResult = $this->_oClient->doRequest( $sResource, NULL, 'GET' ); - - if ( empty( $aResult['transaction'] ) ) { - throw new Exception( 'Transaction.CanRefund.Invalid', 'unexpected result: ' . $this->_oClient->getLastResult() . $this->_oClient->getDebugInfo( TRUE, FALSE ) ); - } - - $iRemainder_ = (int) @$aResult['transaction']['refund_remainder']; - - return !empty( $aResult['transaction']['can_refund'] ); - } - - /** - * This method can be used to (partially) refund a transaction. - * @param int $iAmount_ - * @return Transaction The new (refund) transaction. - * @throws Exception - * @access public - * @api - */ - public function refund( $iAmount_ = NULL, $sDescription_ = NULL ) { - if ( - ! is_null( $iAmount_ ) - && ! is_integer( $iAmount_ ) - ) { - throw new Exception( 'Transaction.Amount.Invalid', 'invalid amount: ' . $iAmount_ ); - } - - $aData = [ - 'amount' => is_null( $iAmount_ ) ? $this->_iAmount : $iAmount_, - 'currency_id' => $this->_sCurrency, - 'description' => $sDescription_ - ]; - - $sResource = "refund/{$this->_sId}/"; - - $aData = array_filter( $aData ); // remove NULL values - $aResult = $this->_oClient->doRequest( $sResource, $aData, 'POST' ); - - if ( - empty( $aResult['refund'] ) - || empty( $aResult['refund']['transaction'] ) - ) { - throw new Exception( 'Transaction.Refund.Invalid', 'unexpected result: ' . $this->_oClient->getLastResult() . $this->_oClient->getDebugInfo( TRUE, FALSE ) ); - } - - // This is a bit unlogical! Why not leave this to the callee? - return $this->_oClient->transactions()->get( $aResult['refund']['transaction'] ); - } - - /** - * This method can be used to recur a transaction. - * @param int $iAmount_ - * @param string $sReference_ Optional reference for the recurring transaction. - * @param string $sDescription_ Optional description for the recurring transaction. - * @return Transaction The new (recurred) transaction. - * @throws Exception - * @access public - * @api - */ - public function recur( $iAmount_, $sReference_ = NULL, $sDescription_ = NULL ) { - if ( ! is_integer( $iAmount_ ) ) { - throw new Exception( 'Transaction.Amount.Invalid', 'invalid amount: ' . $iAmount_ ); - } - - $aData = [ - 'amount' => $iAmount_, - 'currency_id' => $this->_sCurrency, - 'reference' => $sReference_, - 'description' => $sDescription_ - ]; - - $sResource = "recurring/{$this->_sId}/"; - - $aData = array_filter( $aData ); // remove NULL values - $aResult = $this->_oClient->doRequest( $sResource, $aData, 'POST' ); - - if ( - empty( $aResult['recurring'] ) - || empty( $aResult['recurring']['transaction_id'] ) - ) { - throw new Exception( 'Transaction.Recur.Invalid', 'unexpected result: ' . $this->_oClient->getLastResult() . $this->_oClient->getDebugInfo( TRUE, FALSE ) ); - } - - // Same unlogical stuff as method above! Why not leave this to the callee? - return $this->_oClient->transactions()->get( $aResult['recurring']['transaction_id'] ); - } - - } - -} diff --git a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Base.php b/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Base.php deleted file mode 100644 index 0aa6998..0000000 --- a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Base.php +++ /dev/null @@ -1,54 +0,0 @@ -_oClient = $oClient_; - } - - } - -} diff --git a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Consumers.php b/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Consumers.php deleted file mode 100644 index eeb5cb7..0000000 --- a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Consumers.php +++ /dev/null @@ -1,47 +0,0 @@ -_oClient, $sId_, $sId_ ); - } - - /** - * This method can be used to retrieve a list of all available payment methods for a site. - * @param int $iSiteId_ The site to retrieve payment methods for. - * @return array - * @throws \cardgate\api\Exception|\ReflectionException - * @access public - * @api - */ - public function all( $iSiteId_ ) { - if ( ! is_integer( $iSiteId_ ) ) { - throw new \cardgate\api\Exception( 'Methods.SiteId.Invalid', 'invalid site id: ' . $iSiteId_ ); - } - - $sResource = "options/{$iSiteId_}/"; - - $aResult = $this->_oClient->doRequest( $sResource, NULL, 'GET' ); - - if ( empty( $aResult['options'] ) ) { - throw new \cardgate\api\Exception( 'Method.Options.Invalid', 'unexpected result: ' . $this->_oClient->getLastResult() . $this->_oClient->getDebugInfo( TRUE, FALSE ) ); - } - - $aMethods = []; - foreach( $aResult['options'] as $aOption ) { - try { - $aMethods[] = new \cardgate\api\Method( $this->_oClient, $aOption['id'], $aOption['name'] ); - } catch ( \cardgate\api\Exception $oException_ ) { - trigger_error( $oException_->getMessage() . '. Please update this SDK to the latest version.', E_USER_WARNING ); - } - } - return $aMethods; - } - - } - -} diff --git a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Subscriptions.php b/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Subscriptions.php deleted file mode 100644 index 0544a3d..0000000 --- a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Subscriptions.php +++ /dev/null @@ -1,115 +0,0 @@ -_oClient->doRequest( $sResource, NULL, 'GET' ); - - if ( empty( $aResult['subscription'] ) ) { - throw new \cardgate\api\Exception( 'Subscription.Details.Invalid', 'invalid subscription data returned' ); - } - - if ( ! is_null( $aDetails_ ) ) { - $aDetails_ = array_merge( $aDetails_, $aResult['subscription'] ); - } - - $oSubscription = new \cardgate\api\Subscription( - $this->_oClient, - (int) $aResult['subscription']['site_id'], - (int) $aResult['subscription']['period'], - $aResult['subscription']['period_type'], - (int) $aResult['subscription']['period_price'] - ); - $oSubscription->setId( $aResult['subscription']['nn_id'] ); - if ( ! empty( $aResult['subscription']['description'] ) ) { - $oSubscription->setDescription( $aResult['subscription']['description'] ); - } - if ( ! empty( $aResult['subscription']['reference'] ) ) { - $oSubscription->setReference( $aResult['subscription']['reference'] ); - } - if ( ! empty( $aResult['subscription']['start_date'] ) ) { - $oSubscription->setStartDate( $aResult['subscription']['start_date'] ); - } - if ( ! empty( $aResult['subscription']['end_date'] ) ) { - $oSubscription->setEndDate( $aResult['subscription']['end_date'] ); - } - // TODO: map other subscription fields? method_id can't be used in client::Method currently... - /* - if ( ! empty( $aResult['subscription']['code'] ) ) { - $oSubscription->setCode( $aResult['subscription']['code'] ); - } - if ( ! empty( $aResult['subscription']['payment_type_id'] ) ) { - $oSubscription->setPaymentMethod( $aResult['subscription']['payment_type_id'] ); - } - if ( ! empty( $aResult['subscription']['last_payment_date'] ) ) { - $oSubscription->setPaymentMethod( $aResult['subscription']['last_payment_date'] ); - } - */ - - return $oSubscription; - } - - /** - * This method can be used to create a new subscription. - * @param int $iSiteId_ Site id to create the subscription for. - * @param int $iPeriod_ The period length of the subscription. - * @param string $sPeriodType_ The period type of the subscription (e.g. day, week, month, year). - * @param int $iPeriodAmount_ The period amount of the subscription in cents. - * @param string $sCurrency_ Currency (ISO 4217) - * @return \cardgate\api\Subscription - * @throws \cardgate\api\Exception - * @access public - * @api - */ - public function create( $iSiteId_, $iPeriod_, $sPeriodType_, $iPeriodAmount_, $sCurrency_ = 'EUR' ) { - return new \cardgate\api\Subscription( $this->_oClient, $iSiteId_, $iPeriod_, $sPeriodType_, $iPeriodAmount_, $sCurrency_ ); - } - - } - -} diff --git a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Transactions.php b/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Transactions.php deleted file mode 100644 index 00ec455..0000000 --- a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Transactions.php +++ /dev/null @@ -1,169 +0,0 @@ -_oClient->doRequest( $sResource, NULL, 'GET' ); - - if ( empty( $aResult['transaction'] ) ) { - throw new \cardgate\api\Exception( 'Transaction.Details.Invalid', 'invalid transaction data returned' . $this->_oClient->getDebugInfo() ); - } - - if ( ! is_null( $aDetails_ ) ) { - $aDetails_ = array_merge( $aDetails_, $aResult['transaction'] ); - } - - $oTransaction = new \cardgate\api\Transaction( - $this->_oClient, - (int) $aResult['transaction']['site_id'], - (int) $aResult['transaction']['amount'], - $aResult['transaction']['currency_id'] - ); - $oTransaction->setId( $aResult['transaction']['id'] ); - if ( ! empty( $aResult['transaction']['description'] ) ) { - $oTransaction->setDescription( $aResult['transaction']['description'] ); - } - if ( ! empty( $aResult['transaction']['reference'] ) ) { - $oTransaction->setReference( $aResult['transaction']['reference'] ); - } - if ( ! empty( $aResult['transaction']['option'] ) ) { - $oTransaction->setPaymentMethod( $aResult['transaction']['option'] ); - } - - return $oTransaction; - } - - /** - * This method can be used to retrieve a transaction status. - * @param string $sTransactionId_ The transaction identifier. - * @return string - * @throws \cardgate\api\Exception - * @access public - * @api - */ - public function status( $sTransactionId_ ) { - if ( ! is_string( $sTransactionId_ ) ) { - throw new \cardgate\api\Exception( 'Transaction.Id.Invalid', 'invalid transaction id: ' . $sTransactionId_ ); - } - - $sResource = "status/{$sTransactionId_}/"; - - $aResult = $this->_oClient->doRequest( $sResource, NULL, 'GET' ); - - if ( - empty( $aResult['status'] ) - || ! is_string( $aResult['status'] ) - ) { - throw new \cardgate\api\Exception( 'Transaction.Status.Invalid', 'invalid transaction status returned' . $this->_oClient->getDebugInfo() ); - } - - return $aResult['status']; - } - - /** - * This method can be used to create a new transaction. - * @param int $iSiteId_ Site id to create transaction for. - * @param int $iAmount_ The amount of the transaction in cents. - * @param string $sCurrency_ Currency (ISO 4217) - * @return \cardgate\api\Transaction - * @throws \cardgate\api\Exception - * @access public - * @api - */ - public function create( $iSiteId_, $iAmount_, $sCurrency_ = 'EUR' ) { - return new \cardgate\api\Transaction( $this->_oClient, $iSiteId_, $iAmount_, $sCurrency_ ); - } - - /** - * This method can be used to verify a callback for a transaction. - * @param array $aData_ The callback data (usually $_GET) to use for verification. - * @param string $sSiteKey_ The site key used to verify hash. Leave empty to check hash with the - * use of the merchant key only (otherwise both are checked). - * @return bool Returns TRUE if the callback is valid or FALSE if not. - * @throws \cardgate\api\Exception - * @access public - * @api - */ - public function verifyCallback( $aData_, $sSiteKey_ = NULL ) { - foreach( [ 'transaction', 'currency', 'amount', 'reference', 'code', 'hash', 'status' ] as $sRequiredKey ) { - if ( ! isset( $aData_[$sRequiredKey] ) ) { - throw new \cardgate\api\Exception( 'Transaction.Callback.Missing', 'missing callback data: ' . $sRequiredKey ); - } - } - $sPrefix = ''; - if ( ! empty( $aData_['testmode'] ) ) { - $sPrefix = 'TEST'; - } - return ( - ( - NULL !== $sSiteKey_ - && md5( - $sPrefix - . $aData_['transaction'] - . $aData_['currency'] - . $aData_['amount'] - . $aData_['reference'] - . $aData_['code'] - . $sSiteKey_ - ) == $aData_['hash'] - ) - || md5( - $sPrefix - . $aData_['transaction'] - . $aData_['currency'] - . $aData_['amount'] - . $aData_['reference'] - . $aData_['code'] - . $this->_oClient->getKey() - ) == $aData_['hash'] - ); - } - - } - -} diff --git a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Version.php b/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Version.php deleted file mode 100644 index bcb4d78..0000000 --- a/xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/resource/Version.php +++ /dev/null @@ -1,68 +0,0 @@ - 'platform_name', - 'PlatformVersion' => 'platform_version', - 'PluginName' => 'plugin_name', - 'PluginVersion' => 'plugin_version', - ]; - - } - -} diff --git a/xtcommerce-cardgate-master/cardgate/classes/cardgate.php b/xtcommerce-cardgate-master/cardgate/classes/cardgate.php deleted file mode 100755 index ff72617..0000000 --- a/xtcommerce-cardgate-master/cardgate/classes/cardgate.php +++ /dev/null @@ -1,446 +0,0 @@ - 'afterpay', - 'CARDGATE_BANCONTACT' => 'bancontact', - 'CARDGATE_BANKTRANSFER' => 'banktransfer', - 'CARDGATE_BILLINK' => 'billink', - 'CARDGATE_BITCOIN' => 'bitcoin', - 'CARDGATE_CREDITCARD' => 'creditcard', - 'CARDGATE_DIRECTDEBIT' => 'directdebit', - 'CARDGATE_GIFTCARD' => 'giftcard', - 'CARDGATE_GIROPAY' => 'giropay', - 'CARDGATE_IDEALPRO' => 'idealpro', - 'CARDGATE_IDEALQR' => 'idealqr', - 'CARDGATE_KLARNA' => 'klarna', - 'CARDGATE_PAYPAL' => 'paypal', - 'CARDGATE_PAYSAFECARD' => 'paysafecard', - 'CARDGATE_PAYSAFECASH' => 'paysafecash', - 'CARDGATE_PRZELEWY24' => 'przelewy24', - 'CARDGATE_SOFORTBANKING' => 'sofortbanking' - ); - - /** - * php style constructor - * - * @access public - */ - function __construct() { - global $xtLink; - } - - /** - * XTC-Funktion, um das Paymentrequest an einen externen PSP zu senden - * - * Die Funktion spiegelt in etwa die alte "payment_action" wieder. An dieser Stelle - * wird die Anfrage gestellt und je nach der Ergebnis der Sprung auf die entsprechende - * Seite vorbereitet (idR IFrame oder Fehlerseite) - * - * @param $order_data array - * mit den wichtigsten Infos zur Bestellung - * @return URL, zu der als nächstes gesprungen werden soll - * @access public - */ - function pspRedirect($aOrderData = null) { - global $xtLink, $filter, $order, $db, $language; - require_once 'cardgate-clientlib-php/init.php'; - - if (! $aOrderData) { - $aOrderData = $order->order_data; - } - $iOrderId = ( int ) $aOrderData ['orders_id']; - if (! is_int ( $iOrderId )) { - return $xtLink->_link ( array ( - 'page' => 'cardgate_checkout', - 'paction' => 'failure', - 'conn' => 'SSL', - 'params' => 'code_1=210' - ) ); - } - // Special, da xt der Meinung ist alle alten GET Parameter mit anzuh�ngen - $_GET = array (); - - // Anfrage durchführen - - try { - - $iMerchantId = ( int ) CARDGATE_MERCHANT_ID; - $sMerchantApiKey = CARDGATE_MERCHANT_API_KEY; - $bIsTest = (CARDGATE_TEST_MODE == 'true' ? true : false); - $sLanguage = $aOrderData ['language_code']; - if ($this->getMajorVersion () <= 4) { - $sPlatformVersion = 'xtCommerce4'; - } else { - $sPlatformVersion = 'xtCommerce5'; - } - $iSiteId = ( int ) CARDGATE_SITE_ID; - $iAmount = ( int ) round ( $order->order_total ['total'] ['plain'] * 100 ); - $sCurrency = $aOrderData ['currency_code']; - $sPaymentMethod = substr ( $aOrderData ['payment_code'], 8 ); - - $sSuccessUrl = $this->_link ( array ( - 'page' => 'cardgate_checkout', - 'conn' => 'SSL' - ) ); - $sFailureUrl = $sSuccessUrl; - $sCallbackUrl = $this->_link ( array ( - 'lang_code' => $language->default_language, - 'page' => 'cardgate_checkout', - 'paction' => 'confirm', - 'conn' => 'SSL' - ) ); - $reference = 'O' . time () . $iOrderId; - - $oCardGate = new cardgate\api\Client ( ( int ) $iMerchantId, $sMerchantApiKey, $bIsTest ); - $oCardGate->setIp ( $_SERVER ['REMOTE_ADDR'] ); - $oCardGate->setLanguage ( $sLanguage ); - $oCardGate->version ()->setPlatformName ( 'xtCommerce' ); - $oCardGate->version ()->setPlatformVersion ( $sPlatformVersion ); - $oCardGate->version ()->setPluginName ( 'CardGate' ); - $oCardGate->version ()->setPluginVersion ( $this->version ); - - $oTransaction = $oCardGate->transactions ()->create ( $iSiteId, $iAmount, $sCurrency ); - - // Configure payment option. - $oTransaction->setPaymentMethod ( $sPaymentMethod ); - if ($sPaymentMethod == 'ideal') { - $oTransaction->setIssuer ( $_SESSION ['cardgate_ideal_bank'] ); - } - - // Configure customer. - $oConsumer = $oTransaction->getConsumer (); - $oConsumer->setEmail ( $order->order_data ['customers_email_address'] ); - $oConsumer->address ()->setFirstName ( $order->order_data ['billing_firstname'] ); - $oConsumer->address ()->setLastName ( $order->order_data ['billing_lastname'] ); - $oConsumer->address ()->setAddress ( $order->order_data ['billing_street_address'] ); - $oConsumer->address ()->setZipCode ( $order->order_data ['billing_postcode'] ); - $oConsumer->address ()->setCity ( $order->order_data ['billing_city'] ); - $oConsumer->address ()->setCountry ( $order->order_data ['billing_country_code'] ); - - // add cartitmes - - $oCart = $oTransaction->getCart (); - $aCartItems = $this->getCartItems ( $order, $iAmount ); - - foreach ( $aCartItems as $item ) { - switch ($item ['type']) { - case 'product' : - $iItemType = \cardgate\api\Item::TYPE_PRODUCT; - break; - case 'shipping' : - $iItemType = \cardgate\api\Item::TYPE_SHIPPING; - break; - case 'paymentfee' : - $iItemType = \cardgate\api\Item::TYPE_HANDLING; - break; - case 'discount' : - $iItemType = \cardgate\api\Item::TYPE_DISCOUNT; - break; - } - - $oItem = $oCart->addItem ( $iItemType, $item ['model'], $item ['name'], $item ['quantity'], $item ['price_wt'] ); - $oItem->setVat ( $item ['vat'] ); - $oItem->setVatAmount ( $item ['vat_amount'] ); - $oItem->setVatIncluded ( 0 ); - } - - $oTransaction->setCallbackUrl ( $sCallbackUrl ); - $oTransaction->setSuccessUrl ( $sSuccessUrl ); - $oTransaction->setFailureUrl ( $sFailureUrl ); - - $oTransaction->setReference ( $reference ); - $oTransaction->setDescription ( 'Order ' . $iOrderId ); - - $result = @$db->Execute ( "INSERT INTO " . $this->_transaction_table . " (TRID, PAYSYS, STATE, DATE, ORDERID) VALUES ('" . $reference . "', '" . $sPaymentMethod . "','REDIRECTED', NOW(), $iOrderId)" ); - - $oTransaction->register (); - - $sActionUrl = $oTransaction->getActionUrl (); - - if (NULL !== $sActionUrl) { - return $sActionUrl; - } else { - $sErrorMessage = 'CardGate error: ' . htmlspecialchars ( $oException_->getMessage () ); - $this->_failureRedirect ( $sErrorMessage ); - } - } catch ( cardgate\api\Exception $oException_ ) { - $sErrorMessage = 'CardGate error: ' . htmlspecialchars ( $oException_->getMessage () ); - $this->_failureRedirect ( $sErrorMessage ); - } - } - - /** - * XTC-Funktion, um auf eine spezielle Success-Seite zu springen - * - * Da der Aufruf in der checkout-Klasse "payment_process" falsch ausgewertet wird (!= anstatt !==) - * macht die Funktion zur Zeit keinen Sinn, da auch eine URL "true" wäre und nie aufgerufen werden - * würde. - * - * @return URL oder true - * @access public - */ - function pspSuccess() { - return true; - } - - /** - * Führt Prüfungen vor Absenden des Request durch - * - * @return true im Erfolgsfall, ansonsten Array mit Daten für Sprung zur Fehlerseite - * @access private - */ - function _checkOrderData($order_data) { - // Prüfen, ob Paymenttype gsetezt - if (! array_key_exists ( $_SESSION ['selected_payment_sub'], $this->paymentTypes )) { - return array ( - 'page' => 'cardgate_checkout', - 'paction' => 'failure', - 'conn' => 'SSL', - 'params' => 'code_1=209' - ); - } - return true; - } - function _link($data) { - global $xtLink; - $ampedLink = $xtLink->_link ( $data ); - $link = str_replace ( '&', '&', $ampedLink ); - return $link; - } - function _failureRedirect($message) { - global $xtLink; - $failureUrl = $xtLink->_link ( array ( - 'page' => 'cardgate_checkout', - 'params' => 'message=' . $message, - 'conn' => 'SSL' - ) ); - $xtLink->_redirect ( $failureUrl ); - } - function getMajorVersion() { - $parts = explode ( '.', _SYSTEM_VERSION ); - return ( int ) $parts [0]; - } - function getMinorVersion() { - $parts = explode ( '.', _SYSTEM_VERSION ); - return ( int ) $parts [1]; - } - private function getCartItems($oOrder, $iAmount) { - $items = array (); - $nr = 0; - $iCartItemTotal = 0; - $iCartItemTaxTotal = 0; - $iOrderTotal = ( int ) round ( $oOrder->order_total ['total'] ['plain'] * 100 ); - $aOrderItems = $oOrder->order_products; - - // any discount will be already calculated in the item total - foreach ( $aOrderItems as $aItem ) { - - $iQty = ( int ) $aItem ['products_quantity']; - $iPrice = ( int ) round ( $aItem ['products_price'] ['plain_otax'] * 100 ); - $iTax = ( int ) round ( $aItem ['products_tax'] ['plain'] * 100 ); - $iTotal = ( int ) round ( $iPrice + $iTax ); - $iTaxrate = ($iTax > 0 ? round ( ($iTotal / $iPrice - 1) * 100, 2 ) : 0); - - $nr ++; - - $items [$nr] ['type'] = 'product'; - $items [$nr] ['model'] = $aItem ['products_model']; - $items [$nr] ['name'] = $aItem ['products_name']; - $items [$nr] ['quantity'] = $iQty; - $items [$nr] ['price_wt'] = $iPrice; - $items [$nr] ['vat'] = $iTaxrate; - $items [$nr] ['vat_amount'] = $iTax; - - $iCartItemTotal += round ( $iPrice * $iQty ); - $iCartItemTaxTotal += round ( $iTax * $iQty ); - } - - $iShippingTotal = 0; - $iShippingVatTotal = 0; - $sub_content = $_SESSION ['cart']->show_sub_content; - if (isset ( $sub_content ['shipping'] )) { - $aShipping = $sub_content ['shipping']; - - $iQty = ( int ) $aShipping ['products_quantity']; - $iPrice = ( int ) round ( $aShipping ['products_price'] ['plain_otax'] * 100 ); - $iTax = ( int ) round ( $aShipping ['products_tax'] ['plain'] * 100 ); - $iTotal = ( int ) round ( $iPrice + $iTax ); - $iTaxrate = ($iTax > 0 ? round ( ($iTotal / $iPrice - 1) * 100, 2 ) : 0); - - $nr ++; - - $items [$nr] ['type'] = 'shipping'; - $items [$nr] ['model'] = $aShipping ['products_model']; - $items [$nr] ['name'] = $aShipping ['products_name']; - $items [$nr] ['quantity'] = $iQty; - $items [$nr] ['price_wt'] = $iPrice; - $items [$nr] ['vat'] = $iTaxrate; - $items [$nr] ['vat_amount'] = $iTax; - - $iShippingTotal = $iPrice; - $iShippingVatTotal = $iTax; - } - - $iExtraFee=0; - - $aOrderTotals = $oOrder->order_total_data; - foreach($aOrderTotals as $aOrderTotal){ - if ($aOrderTotal['orders_total_key'] == 'payment'){ - $iQty = ( int ) 1; - $iPrice = ( int ) round ( $aOrderTotal ['orders_total_price'] ['plain_otax'] * 100 ); - - $nr ++; - - $items [$nr] ['type'] = 'paymentfee'; - $items [$nr] ['model'] = $aOrderTotal['orders_total_model']; - $items [$nr] ['name'] = $aOrderTotal ['orders_total_name']; - $items [$nr] ['quantity'] = $iQty; - $items [$nr] ['price_wt'] = $iPrice; - $items [$nr] ['vat'] = 0; - $items [$nr] ['vat_amount'] = 0; - $iExtraFee += $iPrice; - } - } - - $iCorrection = round ( $iOrderTotal - $iCartItemTotal - $iCartItemTaxTotal - $iShippingTotal - $iShippingVatTotal - $iExtraFee ); - - if ($iCorrection != 0) { - - $nr ++; - $items [$nr] ['type'] = 'product'; - $items [$nr] ['model'] = 'Correction'; - $items [$nr] ['name'] = 'item_correction'; - $items [$nr] ['quantity'] = 1; - $items [$nr] ['price_wt'] = $iCorrection; - $items [$nr] ['vat'] = 0; - $items [$nr] ['vat_amount'] = 0; - } - return $items; - } - function getBanks() { - $this->checkBanks(); - $aIssuers = $this->fetchIssuers(); - - $options = array (); - - foreach ( $aIssuers as $aIssuer ) { - - $options [] = array ( - 'id' => $aIssuer ['id'], - 'name' => $aIssuer ['name'] - ); - } - return $options; - } - - function checkBanks(){ - global $db; - - $sMode = (CARDGATE_TEST_MODE == 'true'? 'TEST': 'LIVE'); - - $sIssuerRefresh = $db->GetOne("SELECT config_value FROM ".TABLE_CONFIGURATION_PAYMENT." WHERE config_key='CARDGATEIDEAL_ISSUER_REFRESH'"); - if ($sIssuerRefresh === NULL){ - $oResult = $db->Execute("SELECT payment_id, shop_id FROM ".TABLE_CONFIGURATION_PAYMENT." WHERE config_key='CARDGATEIDEAL_ORDER_STATUS_NEW'"); - $aFields = $oResult->fields; - $db->Execute("INSERT INTO ". TABLE_CONFIGURATION_PAYMENT." (config_key, config_value, type, payment_id, shop_id ) VALUES ('CARDGATEIDEAL_ISSUER_REFRESH', '".$sMode."0', 'hidden', ". $aFields['payment_id'].", '". $aFields['shop_id']."')"); - } - $sIssuerRefresh = $db->GetOne("SELECT config_value FROM ".TABLE_CONFIGURATION_PAYMENT." WHERE config_key='CARDGATEIDEAL_ISSUER_REFRESH'"); - $sIssuerMode = substr($sIssuerRefresh, 0, 4); - $iIssuerRefresh = (int) substr($sIssuerRefresh, 4); - - if (($sMode != $sIssuerMode) || ($iIssuerRefresh < time())){ - $this->refreshIssuers(); - } - } - - function refreshIssuers(){ - global $db; - - $sIssuers = $db->GetOne("SELECT config_value FROM ".TABLE_CONFIGURATION_PAYMENT." WHERE config_key='CARDGATEIDEAL_ISSUERS'"); - if ($sIssuers === NULL){ - $oResult = $db->Execute("SELECT payment_id, shop_id FROM ".TABLE_CONFIGURATION_PAYMENT." WHERE config_key='CARDGATEIDEAL_ORDER_STATUS_NEW'"); - $aFields = $oResult->fields; - $db->Execute("INSERT INTO ". TABLE_CONFIGURATION_PAYMENT." (config_key, config_value, type, payment_id, shop_id ) VALUES ('CARDGATEIDEAL_ISSUERS', '', 'hidden', ". $aFields['payment_id'].", '". $aFields['shop_id']."')"); - } - - try { - - require_once 'cardgate-clientlib-php/init.php'; - - $iMerchantId = ( int ) CARDGATE_MERCHANT_ID; - $sMerchantApiKey = CARDGATE_MERCHANT_API_KEY; - $bIsTest = (CARDGATE_TEST_MODE == 'true' ? true : false); - - $oCardGate = new cardgate\api\Client ( ( int ) $iMerchantId, $sMerchantApiKey, $bIsTest ); - $oCardGate->setIp ( $_SERVER ['REMOTE_ADDR'] ); - - $aIssuers = $oCardGate->methods ()->get ( cardgate\api\Method::IDEAL )->getIssuers (); - } catch ( cardgate\api\Exception $oException_ ) { - $aIssuers [0] = [ - 'id' => 0, - 'name' => htmlspecialchars ( $oException_->getMessage () ) - ]; - } - - $sIssuers = serialize($aIssuers); - $sMode = ($bIsTest ? 'TEST':'LIVE'); - $iRefreshTime = $sMode . (24 * 60 * 60 + time()); - - $db->execute("UPDATE ". TABLE_CONFIGURATION_PAYMENT. " SET config_value='" .$sIssuers ."' WHERE config_key = 'CARDGATEIDEAL_ISSUERS'" ); - $db->execute("UPDATE ". TABLE_CONFIGURATION_PAYMENT. " SET config_value='" .$iRefreshTime ."' WHERE config_key = 'CARDGATEIDEAL_ISSUER_REFRESH'" ); - } - - function fetchIssuers(){ - global $db; - - $sIssuers = $db->GetOne("SELECT config_value FROM ".TABLE_CONFIGURATION_PAYMENT." WHERE config_key='CARDGATEIDEAL_ISSUERS'"); - $aIssuers = unserialize($sIssuers); - return $aIssuers; - } -} diff --git a/xtcommerce-cardgate-master/cardgate/installer/install.php b/xtcommerce-cardgate-master/cardgate/installer/install.php deleted file mode 100755 index 42a5355..0000000 --- a/xtcommerce-cardgate-master/cardgate/installer/install.php +++ /dev/null @@ -1,63 +0,0 @@ -Execute(" -CREATE TABLE IF NOT EXISTS `cardgate_transaction` ( - `TRID` varchar(255) NOT NULL default '', - `DATE` datetime NOT NULL default '0000-00-00 00:00:00', - `PAYSYS` varchar(50) NOT NULL default '', - `BRAND` varchar(100) NOT NULL default '', - `ORDERNUMBER` int(11) unsigned NOT NULL default '0', - `ORDERDESCRIPTION` varchar(255) NOT NULL default '', - `STATE` varchar(20) NOT NULL default '', - `MESSAGE` varchar(255) NOT NULL default '', - `ORDERID` int(11) unsigned NOT NULL default '0', - `RESPONSEDATA` TEXT NULL DEFAULT NULL, - PRIMARY KEY (`TRID`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1; -"); - -$db->IgnoreErrors(); -$db->Execute("INSERT INTO ".TABLE_PAYMENT_COST." (`payment_id`, `payment_geo_zone`, `payment_country_code`, `payment_type_value_from`, `payment_type_value_to`, `payment_price`,`payment_allowed`) VALUES(".$payment_id.", 24, '', 0, 10000.00, 0, 1);"); -$db->Execute("INSERT INTO ".TABLE_PAYMENT_COST." (`payment_id`, `payment_geo_zone`, `payment_country_code`, `payment_type_value_from`, `payment_type_value_to`, `payment_price`,`payment_allowed`) VALUES(".$payment_id.", 25, '', 0, 10000.00, 0, 1);"); -$db->Execute("INSERT INTO ".TABLE_PAYMENT_COST." (`payment_id`, `payment_geo_zone`, `payment_country_code`, `payment_type_value_from`, `payment_type_value_to`, `payment_price`,`payment_allowed`) VALUES(".$payment_id.", 26, '', 0, 10000.00, 0, 1);"); -$db->Execute("INSERT INTO ".TABLE_PAYMENT_COST." (`payment_id`, `payment_geo_zone`, `payment_country_code`, `payment_type_value_from`, `payment_type_value_to`, `payment_price`,`payment_allowed`) VALUES(".$payment_id.", 27, '', 0, 10000.00, 0, 1);"); -$db->Execute("INSERT INTO ".TABLE_PAYMENT_COST." (`payment_id`, `payment_geo_zone`, `payment_country_code`, `payment_type_value_from`, `payment_type_value_to`, `payment_price`,`payment_allowed`) VALUES(".$payment_id.", 28, '', 0, 10000.00, 0, 1);"); -$db->Execute("INSERT INTO ".TABLE_PAYMENT_COST." (`payment_id`, `payment_geo_zone`, `payment_country_code`, `payment_type_value_from`, `payment_type_value_to`, `payment_price`,`payment_allowed`) VALUES(".$payment_id.", 29, '', 0, 10000.00, 0, 1);"); -$db->Execute("INSERT INTO ".TABLE_PAYMENT_COST." (`payment_id`, `payment_geo_zone`, `payment_country_code`, `payment_type_value_from`, `payment_type_value_to`, `payment_price`,`payment_allowed`) VALUES(".$payment_id.", 30, '', 0, 10000.00, 0, 1);"); -$db->Execute("INSERT INTO ".TABLE_PAYMENT_COST." (`payment_id`, `payment_geo_zone`, `payment_country_code`, `payment_type_value_from`, `payment_type_value_to`, `payment_price`,`payment_allowed`) VALUES(".$payment_id.", 31, '', 0, 10000.00, 0, 1);"); \ No newline at end of file diff --git a/xtcommerce-cardgate-master/plugins/cardgate/classes/class.cardgate.php b/xtcommerce-cardgate-master/plugins/cardgate/classes/class.cardgate.php deleted file mode 100755 index 9c5ac55..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgate/classes/class.cardgate.php +++ /dev/null @@ -1,397 +0,0 @@ - 'afterpay', - 'CARDGATE_BANCONTACT' => 'bancontact', - 'CARDGATE_BANKTRANSFER' => 'banktransfer', - 'CARDGATE_BILLINK' => 'billink', - 'CARDGATE_BITCOIN' => 'bitcoin', - 'CARDGATE_CREDITCARD' => 'creditcard', - 'CARDGATE_DIRECTDEBIT' => 'directdebit', - 'CARDGATE_GIROPAY' => 'giropay', - 'CARDGATE_IDEALPRO' => 'idealpro', - 'CARDGATE_IDEALQR' => 'idealqr', - 'CARDGATE_KLARNA' => 'klarna', - 'CARDGATE_PAYPAL' => 'paypal', - 'CARDGATE_PAYSAFECARD' => 'paysafecard', - 'CARDGATE_PRZELEWY24' => 'przelewy24', - 'CARDGATE_SOFORTBANKING' => 'sofortbanking' - ); - - /** - * php style constructor - * - * @access public - */ - function cardgate() { - global $xtLink; - } - - /** - * XTC-Funktion, um das Paymentrequest an einen externen PSP zu senden - * - * Die Funktion spiegelt in etwa die alte "payment_action" wieder. An dieser Stelle - * wird die Anfrage gestellt und je nach der Ergebnis der Sprung auf die entsprechende - * Seite vorbereitet (idR IFrame oder Fehlerseite) - * - * @param $order_data array - * mit den wichtigsten Infos zur Bestellung - * @return URL, zu der als nächstes gesprungen werden soll - * @access public - */ - function pspRedirect($aOrderData = null) { - - global $xtLink, $filter, $order, $db, $language; - require_once 'cardgate-clientlib-php/init.php'; - - if (! $aOrderData) { - $aOrderData = $order->order_data; - } - if (($res = $this->_checkOrderData ( $aOrderData )) !== true) { - return $xtLink->_link ( $res ); - } - - $iOrderId = ( int ) $aOrderData ['orders_id']; - if (! is_int ( $iOrderId )) { - return $xtLink->_link ( array ( - 'page' => 'cardgate_checkout', - 'paction' => 'failure', - 'conn' => 'SSL', - 'params' => 'code_1=210' - ) ); - } - // Special, da xt der Meinung ist alle alten GET Parameter mit anzuh�ngen - $_GET = array (); - - // Anfrage durchführen - - try { - - $iMerchantId = ( int ) CARDGATE_MERCHANT_ID; - $sMerchantApiKey = CARDGATE_MERCHANT_API_KEY; - $bIsTest = (CARDGATE_TEST_MODE == 'true' ? true : false); - $sLanguage = $aOrderData ['language_code']; - if ($this->getMajorVersion () <= 4) { - $sPlatformVersion = 'xtCommerce4'; - } else { - $sPlatformVersion = 'xtCommerce5'; - } - $iSiteId = ( int ) CARDGATE_SITE_ID; - $iAmount = ( int ) round ( $order->order_total ['total'] ['plain'] * 100 ); - $sCurrency = $aOrderData ['currency_code']; - $sPaymentMethod = $this->paymentTypes [$_SESSION ['selected_payment_sub']]; - $sSuccessUrl = $this->_link ( array ( - 'page' => 'cardgate_checkout', - 'conn' => 'SSL' - ) ); - $sFailureUrl = $sSuccessUrl; - $sCallbackUrl = $this->_link ( array ( - 'lang_code' => $language->default_language, - 'page' => 'cardgate_checkout', - 'paction' => 'confirm', - 'conn' => 'SSL' - ) ); - $reference = 'O' . time () . $iOrderId; - - $oCardGate = new cardgate\api\Client ( ( int ) $iMerchantId, $sMerchantApiKey, $bIsTest ); - $oCardGate->setIp ( $_SERVER ['REMOTE_ADDR'] ); - $oCardGate->setLanguage ( $sLanguage ); - $oCardGate->version ()->setPlatformName ( 'xtCommerce' ); - $oCardGate->version ()->setPlatformVersion ( $sPlatformVersion ); - $oCardGate->version ()->setPluginName ( 'CardGate' ); - $oCardGate->version ()->setPluginVersion ( $this->version ); - - $oTransaction = $oCardGate->transactions ()->create ( $iSiteId, $iAmount, $sCurrency ); - - // Configure payment option. - $oTransaction->setPaymentMethod ( $sPaymentMethod ); - if ($sPaymentMethod == 'idealpro') { - $oTransaction->setIssuer ( $_SESSION['cardgate_ideal_bank']); - } - - // Configure customer. - $oCustomer = $oTransaction->getCustomer (); - $oCustomer->setEmail ( $order->order_data ['customers_email_address'] ); - $oCustomer->address ()->setFirstName ( $order->order_data ['billing_firstname'] ); - $oCustomer->address ()->setLastName ( $order->order_data ['billing_lastname'] ); - $oCustomer->address ()->setAddress ( $order->order_data ['billing_street_address'] ); - $oCustomer->address ()->setZipCode ( $order->order_data ['billing_postcode'] ); - $oCustomer->address ()->setCity ( $order->order_data ['billing_city'] ); - $oCustomer->address ()->setCountry ( $order->order_data ['billing_country_code'] ); - - //add cartitmes if necessary - if ($sPaymentMethod =='afterpay' || $sPaymentMethod == 'klarna') { - $oCart = $oTransaction->getCart (); - $aCartItems = $this->getCartItems( $order, $iAmount); - - foreach ( $aCartItems as $item ) { - switch ($item ['type']) { - case 'product' : - $iItemType = \cardgate\api\Item::TYPE_PRODUCT; - break; - case 'shipping' : - $iItemType = \cardgate\api\Item::TYPE_SHIPPING; - break; - case 'paymentfee' : - $iItemType = \cardgate\api\Item::TYPE_HANDLING; - break; - case 'discount' : - $iItemType = \cardgate\api\Item::TYPE_DISCOUNT; - break; - } - - $oItem = $oCart->addItem ( $iItemType, $item ['model'], $item ['name'], ( int ) $item ['quantity'], ( int ) $item ['price_wt'] ); - $oItem->setVat ( $item ['vat'] ); - $oItem->setVatAmount ( $item ['vat_amount'] ); - $oItem->setVatIncluded ( 0 ); - } - } - - $oTransaction->setCallbackUrl ( $sCallbackUrl ); - $oTransaction->setSuccessUrl ( $sSuccessUrl ); - $oTransaction->setFailureUrl ( $sFailureUrl ); - - $oTransaction->setReference ( $reference ); - $oTransaction->setDescription ( 'Order ' . $iOrderId ); - - $result = @$db->Execute ( "INSERT INTO " . $this->_transaction_table . " (TRID, PAYSYS, STATE, DATE, ORDERID) VALUES ('" . $reference . "', '" . $sPaymentMethod . "','REDIRECTED', NOW(), $iOrderId)" ); - - $oTransaction->register (); - - $sActionUrl = $oTransaction->getActionUrl (); - - if (NULL !== $sActionUrl) { - return $sActionUrl; - } else { - $sErrorMessage = 'CardGate error: ' . htmlspecialchars ( $oException_->getMessage () ); - $this->_failureRedirect ( $sErrorMessage ); - } - } catch ( cardgate\api\Exception $oException_ ) { - $sErrorMessage = 'CardGate error: ' . htmlspecialchars ( $oException_->getMessage () ); - $this->_failureRedirect ( $sErrorMessage ); - } - } - - /** - * XTC-Funktion, um auf eine spezielle Success-Seite zu springen - * - * Da der Aufruf in der checkout-Klasse "payment_process" falsch ausgewertet wird (!= anstatt !==) - * macht die Funktion zur Zeit keinen Sinn, da auch eine URL "true" wäre und nie aufgerufen werden - * würde. - * - * @return URL oder true - * @access public - */ - function pspSuccess() { - return true; - } - - /** - * Führt Prüfungen vor Absenden des Request durch - * - * @return true im Erfolgsfall, ansonsten Array mit Daten für Sprung zur Fehlerseite - * @access private - */ - function _checkOrderData($order_data) { - // Prüfen, ob Paymenttype gsetezt - if (! array_key_exists ( $_SESSION ['selected_payment_sub'], $this->paymentTypes )) { - return array ( - 'page' => 'cardgate_checkout', - 'paction' => 'failure', - 'conn' => 'SSL', - 'params' => 'code_1=209' - ); - } - return true; - } - function _link($data) { - global $xtLink; - $ampedLink = $xtLink->_link ( $data ); - $link = str_replace ( '&', '&', $ampedLink ); - return $link; - } - function _failureRedirect($message) { - global $xtLink; - $failureUrl = $xtLink->_link ( array ( - 'page' => 'cardgate_checkout', - 'params' => 'message=' . $message, - 'conn' => 'SSL' - ) ); - $xtLink->_redirect ( $failureUrl ); - } - function getMajorVersion() { - $parts = explode ( '.', _SYSTEM_VERSION ); - return ( int ) $parts [0]; - } - function getMinorVersion() { - $parts = explode ( '.', _SYSTEM_VERSION ); - return ( int ) $parts [1]; - } - private function getCartItems($oOrder, $iAmount) { - - $items = array (); - $nr = 0; - $iCartItemTotal = 0; - $iCartItemTaxTotal = 0; - - $iOrderTotal = (int) round($oOrder->order_total['total']['plain']*100); - $aOrderItems = $oOrder->order_products; - - // any discount will be already calculated in the item total - foreach ( $aOrderItems as $aItem ) { - - $iQty = (int) $aItem['products_quantity']; - $iPrice = (int) round($aItem['products_price']['plain_otax'] *100); - $iTax = (int) round($aItem['products_tax']['plain']*100); - $iTotal = (int) round ( $iPrice + $iTax ); - $iTaxrate = ($iTax > 0 ? round ( ($iTotal / $iPrice - 1) * 100, 2 ) : 0); - - $nr ++; - - $items [$nr] ['type'] = 'product'; - $items [$nr] ['model'] = $aItem['products_model']; - $items [$nr] ['name'] = $aItem['products_name']; - $items [$nr] ['quantity'] = $iQty; - $items [$nr] ['price_wt'] = $iPrice; - $items [$nr] ['vat'] = $iTaxrate; - $items [$nr] ['vat_amount'] = $iTax; - - $iCartItemTotal += round ( $iPrice * $iQty ); - $iCartItemTaxTotal += round ( $iTax * $iQty ); - } - - $iShippingTotal = 0; - $iShippingVatTotal = 0; - $sub_content = $_SESSION['cart']->show_sub_content; - if (isset($sub_content['shipping'])){ - $aShipping = $sub_content['shipping']; - - $iQty = (int) $aShipping['products_quantity']; - $iPrice = (int) round($aShipping['products_price']['plain_otax'] *100); - $iTax = (int) round($aShipping['products_tax']['plain']*100); - $iTotal = (int) round ( $iPrice + $iTax ); - $iTaxrate = ($iTax > 0 ? round ( ($iTotal / $iPrice - 1) * 100, 2 ) : 0); - - $nr ++; - - $items [$nr] ['type'] = 'shipping'; - $items [$nr] ['model'] = $aShipping['products_model']; - $items [$nr] ['name'] = $aShipping['products_name']; - $items [$nr] ['quantity'] = $iQty; - $items [$nr] ['price_wt'] = $iPrice; - $items [$nr] ['vat'] = $iTaxrate; - $items [$nr] ['vat_amount'] = $iTax; - - $iShippingTotal = $iPrice; - $iShippingVatTotal = $iTax; - } - - $iExtraFee; - - /* - $fpExtraFee = (empty ( $woocommerce->session->extra_cart_fee ) ? 0 : $woocommerce->session->extra_cart_fee); - $iExtraFee = round ( $fpExtraFee * 100 ); - - if ($iExtraFee > 0) { - - $nr ++; - $items [$nr] ['type'] = 'paymentfee'; - $items [$nr] ['model'] = 'extra_costs'; - $items [$nr] ['name'] = 'payment_fee'; - $items [$nr] ['quantity'] = 1; - $items [$nr] ['price_wt'] = $iExtraFee; - $items [$nr] ['vat'] = 0; - $items [$nr] ['vat_amount'] = 0; - } - */ - - $iCorrection = round ( $iOrderTotal - $iCartItemTotal - $iCartItemTaxTotal - $iShippingTotal - $iShippingVatTotal - $iExtraFee ); - - if ($iCorrection != 0) { - - $nr ++; - $items [$nr] ['type'] = 'product'; - $items [$nr] ['model'] = 'Correction'; - $items [$nr] ['name'] = 'item_correction'; - $items [$nr] ['quantity'] = 1; - $items [$nr] ['price_wt'] = $iCorrection; - $items [$nr] ['vat'] = 0; - $items [$nr] ['vat_amount'] = 0; - } - return $items; - } - function getBanks(){ - try { - - require_once 'cardgate-clientlib-php/init.php'; - - $iMerchantId = ( int ) CARDGATE_MERCHANT_ID; - $sMerchantApiKey = CARDGATE_MERCHANT_API_KEY; - $bIsTest = (CARDGATE_TEST_MODE == 'true' ? true : false); - - $oCardGate = new cardgate\api\Client ( ( int ) $iMerchantId, $sMerchantApiKey, $bIsTest ); - $oCardGate->setIp ( $_SERVER ['REMOTE_ADDR'] ); - - $aIssuers = $oCardGate->methods ()->get ( cardgate\api\Method::IDEAL )->getIssuers (); - } catch ( cardgate\api\Exception $oException_ ) { - $aIssuers [0] = [ - 'id' => 0, - 'name' => htmlspecialchars ( $oException_->getMessage () ) - ]; - } - - $options = array (); - - foreach ( $aIssuers as $aIssuer ) { - - $options[] = array('id'=>$aIssuer ['id'],'name' => $aIssuer ['name']); - } - return $options; - } -} diff --git a/xtcommerce-cardgate-master/plugins/cardgate/images/cg_logo.png b/xtcommerce-cardgate-master/plugins/cardgate/images/cg_logo.png deleted file mode 100755 index 448274b6ad75b0f41cb0b661a51b897467d221fe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cwjDum05+S1o)ysiYzB^Ho3r zLhyg8aR91rKr;;JhH)+|Xu1KzV1L!UiJ$iXlu}p)0-rAklPqF*BDku(cW8E7@5q|d zodfF=u}Lc=5s(Bx)d5|{P1mh|SFKxo|95ZP_>it=te9UYi2T1k|8fdt zjKO6yY$ya2X*4k|^lj?5vT6HDx=lUcdCey>4f3 kGNrY6xU$Fhp00Voq%^$I83jhEB07*qoM6N<$f`C;Kxc~qF diff --git a/xtcommerce-cardgate-master/plugins/cardgate/installer/cardgate.xml b/xtcommerce-cardgate-master/plugins/cardgate/installer/cardgate.xml deleted file mode 100755 index bc84f03..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgate/installer/cardgate.xml +++ /dev/null @@ -1,551 +0,0 @@ - - - CardGate - payment - 1.0.0 - cardgate - http://cardgate.com - Zahlungsmodul CardGate - cg_logo.png - - cardgate - cardgate - - cardgate.html - - CardGate - - - - CardGate - - - - CardGate - - - - - - - - - page_registry.php:bottom - - 1 - 1 - - - - - - ORDER_STATUS_PENDING - dropdown - status:order_status - 17 - 90 - - Bestellstatus für ausstehende Zahlung - - - Order Status for Pending transactions - - - Order Status voor Pending transactie - - - - ORDER_STATUS_CANCEL - dropdown - status:order_status - 32 - 80 - - Abbruchstatus - - - Cancelstatus - - - Annuleerstatus - - - - ORDER_STATUS_FAILED - dropdown - status:order_status - 32 - 70 - - Fehlerstatus - - - failure status - - - faal status - - - - ORDER_STATUS_COMPLETED - dropdown - status:order_status - 23 - 60 - - Erfolgsstatus - - - success status - - - success status - - - - SITE_ID - textfield - - 20 - - Site ID - - - Site ID - - - Site ID - - - - HASH_KEY - textfield - - 30 - - Hash key - - - Hash key - - - Hash key - - - - MERCHANT_ID - textfield - - 40 - - Merchant ID - - - Merchant ID - - - Merchant ID - - - - MERCHANT_API_KEY - textfield - - 50 - - API key - - - API key - - - API key - - - - TEST_MODE - dropdown - true - conf_truefalse - 10 - - Test Mode - - - Test Mode - - - Test Mode - - - - - - - TEXT_PAYMENT_CARDGATE_AFTERPAY - store - - Afterpay - - - Afterpay - - - Afterpay - - - - TEXT_PAYMENT_CARDGATE_BANCONTACT - store - - Bancontact - - - Bancontact - - - Bancontact - - - - TEXT_PAYMENT_CARDGATE_BANKTRANSFER - store - - Banktransfer - - - Banktransfer - - - Bankoverboeking - - - - TEXT_PAYMENT_CARDGATE_BILLINK - store - - Billink - - - Billink - - - Billink - - - - TEXT_PAYMENT_CARDGATE_BITCOIN - store - - Bitcoin - - - Bitcoin - - - Bitcoin - - - - TEXT_PAYMENT_CARDGATE_CREDITCARD - store - - Kreditkarte - - - Credit Card - - - Creditcard - - - - TEXT_PAYMENT_CARDGATE_DIRECTDEBIT - store - - Lastschriftverfahren - - - Direct Debit - - - Direct Debit - - - - TEXT_PAYMENT_CARDGATE_GIROPAY - store - - Giropay - - - Giropay - - - Giropay - - - - TEXT_PAYMENT_CARDGATE_IDEALQR - store - - iDEAL QR - - - iDEAL QR - - - iDEAL QR - - - - TEXT_PAYMENT_CARDGATE_IDEALPRO - store - - iDEAL - - - iDEAL - - - iDEAL - - - - TEXT_PAYMENT_CARDGATE_KLARNA - store - - Klarna - - - Klarna - - - Klarna - - - - TEXT_PAYMENT_CARDGATE_PAYPAL - store - - PayPal - - - PayPal - - - PayPal - - - - TEXT_PAYMENT_CARDGATE_PAYSAFECARD - store - - Paysafecard - - - Paysafecard - - - Paysafecard - - - - TEXT_PAYMENT_CARDGATE_PRZELEWY24 - store - - Przelewy24 - - - Przelewy24 - - - Przelewy24 - - - - TEXT_PAYMENT_CARDGATE_SOFORTBANKING - store - - SOFORT Überweisung (PIN/TAN) - - - SOFORT Banking (PIN/TAN) - - - SOFORT Banking (PIN/TAN) - - - - TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_SUCCESS - store - - - - - Your order was successfully executed - - - Uw order is succesvol verwerkt - - - - TEXT_CARDGATE_CHECKOUT_SUCCESS_DESC - store - - - - - - Your order has been received and will be processed - immediately. For your personal control you - received an email with - your order details! - - - - Uw order is ontvangen en zal meteen verwerkt worden. - U heeft een email ontvangen waarmee u de details van de order kan - controleren. - - - - - TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_PENDING - store - - - - - Your order was successfully executed - - - Uw order is succesvol uitgevoerd - - - - TEXT_CARDGATE_CHECKOUT_PENDING_DESC - store - - - - - - Thank you for your purchase, your order will be shipped as - soon as we get the payment - confirmation from your bank! - - - - Bedankt voor uw aankoop, uw order wordt verstuurd zodra wij - de - betalingsbevestiging van uw bank hebben gekregen! - - - - - TEXT_CARDGATE_CHECKOUT_SUCCESS_THANKS - store - - - - - Thank you for your purchase! - - - Bedankt voor uw aankoop! - - - - TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_CANCEL - store - - Der Zahlvorgang wurde abgebrochen. - - - The payment transaction was canceled. - - - De betaling is geanulleerd. - - - - TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_CANCEL_DESC - store - - Leider wurde der Zahlungsvorgang abgebrochen. Bei Fragen zu - Ihrer Bestellung, wenden Sie sich - bitte an den Shop-Betreiber. - - - - Regrettably the payment transaction was canceled. Please - contact the shop owner for questions - about your order. - - - - Helaas is de betaling geannuleerd. Neem contact op met - de webwinkeleigenaar indien u vragen heeft. - - - - - TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_FAIL - store - - Es ist ein Fehler aufgetreten. - - - An error has occured. - - - Er is een fout opgetreden. - - - - TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_FAIL_DESC - store - - - - - Please check your data. Following errors occurred: - - - Controleer uw data a.u.bv. De volgende fouten kwamen voor: - - - - - TEXT_CARDGATE_PAYMENT_COMMENT - store - - - - - The amount has been paid using: - - - Het bedrag is betaald met: - - - - TEXT_CARDGATE_PAYMENT_PENDINGCOMMENT - store - - - - - The payment is pending, waiting for bank approval. - - - De betaling is pending, wachtend op bevestiging van de bank. - - - - diff --git a/xtcommerce-cardgate-master/plugins/cardgate/installer/install.php b/xtcommerce-cardgate-master/plugins/cardgate/installer/install.php deleted file mode 100755 index 5a5567f..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgate/installer/install.php +++ /dev/null @@ -1,37 +0,0 @@ -page_action == 'confirm') { - // hash check - if (! empty ( $_GET ['hash'] )) { - $sRoot = dirname ( dirname ( dirname ( dirname ( __FILE__ ) ) ) ); - - require_once ($sRoot . '/cardgate/classes/cardgate-clientlib-php/init.php'); - - try { - $data = $_REQUEST; - $iMerchantId = ( int ) CARDGATE_MERCHANT_ID; - $sMerchantApiKey = CARDGATE_MERCHANT_API_KEY; - $sHashKey = CARDGATE_HASH_KEY; - $bTestMode = (CARDGATE_TEST_MODE == 'true' ? true : false); - - $oCardGate = new cardgate\api\Client ( $iMerchantId, $sMerchantApiKey, $bTestMode ); - $oCardGate->setIp ( $_SERVER ['REMOTE_ADDR'] ); - - if (FALSE == $oCardGate->transactions ()->verifyCallback ( $data, $sHashKey )) { - die ( 'Hashcheck failed!' ); - } - } catch ( cardgate\api\Exception $oException_ ) { - die ( 'Hashckeck failed!' ); - } - } - - // hashcheck has passed - // process order - - $result = $db->Execute ( "SELECT ORDERID FROM " . TABLE_CARDGATE_TRANSACTION . " WHERE TRID = '" . $data ['reference'] . "' LIMIT 1" ); - $fields = $result->fields; - $iOrderId = ( int ) $fields ['ORDERID']; - - $order = new order ( $iOrderId, - 1 ); - - if (checkPaid ( $order )) { - die ( 'Payment already processed!' ); - } - - if ($data ['code'] == '0') { - $paymentState = 'PENDING'; - } - if ($data ['code'] >= '200' && $data ['code'] < '300') { - $paymentState = 'SUCCESS'; - } - if ($data ['code'] >= '300' && $data ['code'] < '400') { - if ($data ['code'] == 309) { - $paymentState = 'CANCEL'; - } else { - $paymentState = 'FAILURE'; - } - } - if ($data ['code'] >= '700' && $data ['code'] < '800') { - $paymentState = 'PENDING'; - } - - if ($paymentState == 'SUCCESS') { - if (! empty ( $iOrderId )) { - $result = $db->AutoExecute ( TABLE_CARDGATE_TRANSACTION, Array ( - 'STATE' => $paymentState - ), 'UPDATE', 'TRID="' . $data ['reference'] . '"' ); - updateOrderPayment ( $iOrderId, $paymentState ); - } - - $strMsg = TEXT_CARDGATE_PAYMENT_COMMENT . ' ' . constant ( "TEXT_PAYMENT_CARDGATE_" . strtoupper ( $data ['pt'] ) ); - ; - - $order->_sendOrderMail (); - $order->_updateOrderStatus ( CARDGATE_ORDER_STATUS_COMPLETED, $strMsg, 'true', 'true', 'user', $data ['transaction'] ); - } - - if ($paymentState == 'PENDING') { - updateOrderPayment ( $iOrderId, $paymentState ); - $txtOk = $db->AutoExecute ( TABLE_CARDGATE_TRANSACTION, Array ( - 'STATE' => $paymentState - ), 'UPDATE', 'TRID="' . $data ['reference'] . '"' ); - - $strMsg = TEXT_CARDGATE_PAYMENT_PENDINGCOMMENT; - $order->_updateOrderStatus ( CARDGATE_ORDER_STATUS_PENDING, $strMsg, 'true', 'true', 'user', $data ['transaction'] ); - } - - if ($paymentState == 'CANCEL') { - $strMsg = 'Customer canceled the payment process'; - $order->_updateOrderStatus ( CARDGATE_ORDER_STATUS_CANCEL, $strMsg, 'false' ); - $txtOk = $db->AutoExecute ( TABLE_CARDGATE_TRANSACTION, Array ( - 'STATE' => $paymentState - ), 'UPDATE', 'TRID="' . $data ['reference'] . '"' ); - } - - if ($paymentState == 'FAILURE') { - $payment_error_message = 'An error occured during the payment process:
' . $data ['reference']; - // Order-Status setzen und History speichern - $order->_updateOrderStatus ( CARDGATE_ORDER_STATUS_FAILED, $payment_error_message, 'false' ); - $txtOk = $db->AutoExecute ( TABLE_CARDGATE_TRANSACTION, Array ( - 'STATE' => $paymentState - ), 'UPDATE', 'TRID="' . $data ['reference'] . '"' ); - } - - die ( $data ['transaction'] . '.' . $data ['code'] ); -} else { - - $strState = ""; - if (isset ( $_GET ['reference'] )) { - - if (isset ( $_SESSION ['redirect_url'] )) { - unset ( $_SESSION ['redirect_url'] ); - } - - $rs = $db->Execute ( 'SELECT STATE,MESSAGE FROM ' . TABLE_CARDGATE_TRANSACTION . ' WHERE `TRID`="' . $_GET ['reference'] . '" ' ); - if ($rs->RecordCount () == 1) { - $strState = $rs->fields ['STATE']; - } - } - if ($strState == 'SUCCESS') { - unset ( $_SESSION ['last_order_id'] ); - $_SESSION ['cart']->_resetCart (); - $checkout_data = array ( - 'page_action' => 'success' - ); - } elseif ($strState == 'CANCEL') { - $checkout_data = array ( - 'page_action' => 'cancel' - ); - } elseif ($strState == 'PENDING') { - unset ( $_SESSION ['last_order_id'] ); - $_SESSION ['cart']->_resetCart (); - $checkout_data = array ( - 'page_action' => 'pending' - ); - } elseif ($strState == 'FAILURE') { - $messages = array (); - $messages [0] ['message'] = 'An error occured during the payment process:
' . $data ['reference']; - $checkout_data = array ( - 'page_action' => 'failure', - 'messages' => $messages - ); - } else { - $messages = array (); - if (isset ( $_GET ['message'] )) { - $messages [0] ['message'] = htmlentities ( $_GET ['message'] ); - } else { - $messages [0] ['message'] = 'Invalid call'; - } - $checkout_data = array ( - 'page_action' => 'failure', - 'messages' => $messages - ); - } - - if (is_array ( $checkout_data )) { - $tpl_data = $checkout_data; - ($plugin_code = $xtPlugin->PluginCode ( 'module_checkout.php:checkout_data' )) ? eval ( $plugin_code ) : false; - $template = new Template (); - $tpl = 'cardgate_checkout.html'; - ($plugin_code = $xtPlugin->PluginCode ( 'module_checkout.php:checkout_bottom' )) ? eval ( $plugin_code ) : false; - - $page_data = $template->getTemplate ( 'smarty', '/' . _SRV_WEB_CORE . 'pages/' . $tpl, $tpl_data ); - } -} -function checkPaid($order) { - return ( bool ) ($order->order_data ['orders_status_id'] == CARDGATE_ORDER_STATUS_COMPLETED); -} -function updateOrderPayment($oid, $strOrderStatus, $callback_id='',$callback_messge='') { - $parts = explode ( '.', _SYSTEM_VERSION ); - $iVersion = ( int ) $parts [0]; - - if ($iVersion < 5) { - if (! empty ( $strOrderStatus ) && $oid > 0) { - global $db; - $ok = $db->AutoExecute ( TABLE_ORDERS, Array ( - 'subpayment_code' => $strOrderStatus - ), 'UPDATE', 'orders_id="' . $oid . '" AND subpayment_code!="' . $strOrderStatus . '"' ); - if (! $ok) { - - return cardgateCheckoutPageConfirmResponse ( 'Paymenttype update failed' ); - } - } - return true; - } -} -function cardgateCheckoutPageConfirmResponse($message = null) { - if ($message != null) { - $value = 'result="NOK" message="' . $message . '" '; - } else { - $value = 'result="OK"'; - } - return ''; -} - -?> diff --git a/xtcommerce-cardgate-master/plugins/cardgate/templates/cardgate.html b/xtcommerce-cardgate-master/plugins/cardgate/templates/cardgate.html deleted file mode 100755 index 312e9a3..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgate/templates/cardgate.html +++ /dev/null @@ -1,138 +0,0 @@ -{* - * Shop System Plugins - Terms of Use - * - * These plugins are offered by CardGate - * - * They have been tested and approved for full functionality in the standard - * configuration - * (status on delivery) of the corresponding shop system. They are under - * General Public License Version 2 (GPLv2) and can be used, developed and - * passed on to third parties under the same terms. - * - * However, CardGate does not provide any guarantee or accept any liability - * for any errors occurring when used in an enhanced, customized shop system - * configuration. - * - * Operation in an enhanced, customized configuration is at your own risk and - * requires a comprehensive test phase by the user of the plugin. - * - * Customers use the plugins at their own risk. CardGate does not guarantee - * their full functionality neither does CardGate assume liability for any - * disadvantages related to the use of the plugins. Additionally, CardGate - * does not guarantee the full functionality for customized shop systems or - * installed plugins of other vendors of plugins within the same shop system. - * - * Customers are responsible for testing the plugin's functionality before - * starting productive operation. - * - * By installing the plugin into the shop system the customer agrees to these - * terms of use. Please do not use the plugin if you do not agree to these - * terms of use! -*} - -{if $plugin} - -{capture name="paymenttypes"} -{/capture} - -{if $plugin->getMajorVersion() > 4} -{capture name="paymenttypes"} -
- {$payment_name} -
- -
-
-{/capture} -{/if} - -{if $plugin->getMajorVersion() <= 4} -{capture name="paymenttypes"} - - {form type=radio name=selected_payment value=$payment_code} - - {$payment_name} - -{/capture} -{/if} - -{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} -{literal} - -{/literal} - -
- -
-
-

- - {$smarty.capture.paymenttypes} -
-

-
-
- -
- -{elseif $plugin->getMajorVersion() > 4} -{$smarty.capture.paymenttypes} -{else} - - - - - - - - - - -
{$payment_name}{$payment_price.formated}
- - - - - - - - -
- {$smarty.capture.paymenttypes} -   - -
- -
-
- -{/if} -{/if} \ No newline at end of file diff --git a/xtcommerce-cardgate-master/plugins/cardgateafterpay/classes/class.cardgateafterpay.php b/xtcommerce-cardgate-master/plugins/cardgateafterpay/classes/class.cardgateafterpay.php deleted file mode 100755 index 3aa56a6..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgateafterpay/classes/class.cardgateafterpay.php +++ /dev/null @@ -1,59 +0,0 @@ -order_data['order_data']['payment_code'] == 'afterpay') { - /** @global ADODB_mysql $db */ - global $db; - - $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); - if (count($rs)) - { - $cg_data = array_pop($rs); - if (strlen($cg_data['RESPONSEDATA'])) - { - $blacklist = array('last_order_id'); - $info = json_decode($cg_data['RESPONSEDATA']); - foreach ($info as $k => $v) - { - if (in_array($k, $blacklist)) - continue; - $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); - } - - } - } - -// if($rs->RecordCount()>0) { -// print "xxx"; -// foreach ($rs as $v) -// print_r($v); -// } - -} - diff --git a/xtcommerce-cardgate-master/plugins/cardgateafterpay/images/cardgateafterpay.png b/xtcommerce-cardgate-master/plugins/cardgateafterpay/images/cardgateafterpay.png deleted file mode 100755 index dad36b397c86ae02e8f3fb4c606acec96c2e2d54..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2871 zcmZ{m3pkW%8^>R5663In5Y;4M3Ud(F7=$qnG0fx;DhEw+kLO=d7tOG@Bi<)pZmV<_qyIhXRM8k)K)0~ z0A%cJ(Rks!T{Jds5WY=d6~73l^&|^N3jnA}11%B6g?q5CE#46TLNx&(Di#11g{G)i z01ylVfY-+W0GSB@O7!esaVVifl5Xq41OU)x(GUZ&vXueg2V1hsA=V*B2c$2Jsz>mn z`4II&sC1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r2%Q z=XfQiTmUg!eX6d2k|QK4-QKjrvW>6T1UzTGk*M$Umeo5Po6^k5*b?0~PI#N5hPA*E zF9|r!D{tc$F3vcgN(~K~UM?EO2G*SlbJ-&BgmkNTjv6e=n!p>2oX33zdD_wsYhRc!dATV0Lsddx1>#?UfL$hY%-d4);S)ggP!W+SiG>fWVStB^_LMHk0C z5}HG`oYGh&4-cgviw^m*n&2vNwQaa7a4tR{@HU#gDhB2y46kLPRi#X+JW@6-6j6((}O%Ytd%?NeY2H1%cHaYre;6+VsS71Qi*D` z{2-Ee28DZWu)Ee(t-v1q{^yTJLhD_POp=J=jYNs&YwI$wsOMO?pcK(HCx)op?Y_*} z%(uC=SX3qFX(M*Ixx3_@WyIXMFYm*iK~A2M9vmKMS>m=-x_#D>yioYWnf3lji_RxR zg?Dga>{FC^(D?HbtvvA#s;*lU^%vKq zGfpMsL5I;cMr6Qp^^Py{pmon6yu0ceUFuE^e$QjPlq#(ADq4w6s&&Jy(|L?RwTMPR zo>JVx;tp@)=V_{Ak&6%SZ48w`9hEgqk#4$fAlK8t4?f;s3chIj`Lo0vX2~d1+T&*D Tg2Fk`@2Q - - Afterpay - payment - 1.0.0 - cardgateafterpay - http://cardgate.com - Zahlungsmodul Afterpay - cardgateafterpay.png - - cardgateafterpay - cardgateafterpay - - cardgateafterpay.html - - Afterpay - - - - Afterpay - - - - Afterpay - - - - - - - - - page_registry.php:bottom - - 1 - 1 - - - class.checkout.php:_getPayment - $v) { - if ($k != 'afterpay') { - unset($payment_data[$k]); - } - } - reset($payment_data); - } - ]]> - 1 - 1 - - - - class.checkout.php:_selectPayment_tpl_data - - 1 - 1 - - - - order_edit.php:display_data - - 0 - 1 - - - - - - - TEXT_PAYMENT_CARDGATE_AFTERPAY - store - - Afterpay - - - Afterpay - - - Afterpay - - - - diff --git a/xtcommerce-cardgate-master/plugins/cardgateafterpay/installer/install.php b/xtcommerce-cardgate-master/plugins/cardgateafterpay/installer/install.php deleted file mode 100755 index 8a74265..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgateafterpay/installer/install.php +++ /dev/null @@ -1,37 +0,0 @@ -getMajorVersion() > 4} -{capture name="paymenttypes"} -
- {$payment_name} -
- -
-
-{/capture} -{/if} - -{if $plugin->getMajorVersion() <= 4} -{capture name="paymenttypes"} - - {form type=radio name=selected_payment value=$payment_code} - - {$payment_name} - -{/capture} -{/if} - -{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} -{literal} - -{/literal} - -
- -
-
-

- - {$smarty.capture.paymenttypes} -
-

-
-
- -
- -{elseif $plugin->getMajorVersion() > 4} -{$smarty.capture.paymenttypes} -{else} - - - - - - - - - - -
{$payment_name}{$payment_price.formated}
- - - - - - - - -
- {$smarty.capture.paymenttypes} -   - -
- -
-
- -{/if} -{/if} \ No newline at end of file diff --git a/xtcommerce-cardgate-master/plugins/cardgatebancontact/classes/class.cardgatebancontact.php b/xtcommerce-cardgate-master/plugins/cardgatebancontact/classes/class.cardgatebancontact.php deleted file mode 100755 index 50d283e..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatebancontact/classes/class.cardgatebancontact.php +++ /dev/null @@ -1,59 +0,0 @@ -order_data['order_data']['payment_code'] == 'bancontact') { - /** @global ADODB_mysql $db */ - global $db; - - $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); - if (count($rs)) - { - $cg_data = array_pop($rs); - if (strlen($cg_data['RESPONSEDATA'])) - { - $blacklist = array('last_order_id'); - $info = json_decode($cg_data['RESPONSEDATA']); - foreach ($info as $k => $v) - { - if (in_array($k, $blacklist)) - continue; - $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); - } - - } - } - -// if($rs->RecordCount()>0) { -// print "xxx"; -// foreach ($rs as $v) -// print_r($v); -// } - -} - diff --git a/xtcommerce-cardgate-master/plugins/cardgatebancontact/images/cardgatebancontact.png b/xtcommerce-cardgate-master/plugins/cardgatebancontact/images/cardg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Hckd+Cc7gN-foeLnU+k|HAyJiFkFEeoQ>?2gV! z5OWdPl%vuGv7a8%UhABI=e-Nv;L%4_;uq2)S(HyE?R!4s{B_-)iYC^batf}#Km@)k z*tiWx;5a_Hp5$7rl$eaQx^v=uC3_#tjia7QlR>N>E4@*=Asxm$-^rF6P?}FxFIudC zG+T1Ev*5p>FMd1$41KO0#q2%=Ltj1JrDg9s*d9$xb&oxKHT4=@^Q3&l;SH2)hiE1M zkJ;(&HrU)j256hx3p8-_7O&G695FdN$1R*#%b25g!T|&@>w7KZR-eV?0b#B;^nm4m z51T;-XfOga*aS(Jp9WJ#D{BF?ChRV-4}{(0=M?|iFbr>$9ck1FB}Q(NNGYa}huQ|r zUhSYYKV6nAqfqX@AZWLA4zu0+aFHpb!bg<<^Ui++7yxQVmr-5L0eAoa002ovPDHLk FV1n;6?_2-? diff --git a/xtcommerce-cardgate-master/plugins/cardgatebancontact/installer/cardgatebancontact.xml b/xtcommerce-cardgate-master/plugins/cardgatebancontact/installer/cardgatebancontact.xml deleted file mode 100755 index 20f0dc4..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatebancontact/installer/cardgatebancontact.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - Bancontact - payment - 1.0.0 - cardgatebancontact - http://cardgate.com - Zahlungsmodul Bancontact - cardgatebancontact.png - - cardgatebancontact - cardgatebancontact - - cardgatebancontact.html - - Bancontact - - - - Bancontact - - - - Bancontact - - - - - - - - - page_registry.php:bottom - - 1 - 1 - - - class.checkout.php:_getPayment - $v) { - if ($k != 'bancontact') { - unset($payment_data[$k]); - } - } - reset($payment_data); - } - ]]> - 1 - 1 - - - - class.checkout.php:_selectPayment_tpl_data - - 1 - 1 - - - - order_edit.php:display_data - - 0 - 1 - - - - - - - TEXT_PAYMENT_CARDGATE_BANCONTACT - store - - Bancontact - - - Bancontact - - - Bancontact - - - - diff --git a/xtcommerce-cardgate-master/plugins/cardgatebancontact/installer/install.php b/xtcommerce-cardgate-master/plugins/cardgatebancontact/installer/install.php deleted file mode 100755 index 8a74265..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatebancontact/installer/install.php +++ /dev/null @@ -1,37 +0,0 @@ -getMajorVersion() > 4} -{capture name="paymenttypes"} -
- {$payment_name} -
- -
-
-{/capture} -{/if} - -{if $plugin->getMajorVersion() <= 4} -{capture name="paymenttypes"} - - {form type=radio name=selected_payment value=$payment_code} - - {$payment_name} - -{/capture} -{/if} - -{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} -{literal} - -{/literal} - -
- -
-
-

- - {$smarty.capture.paymenttypes} -
-

-
-
- -
- -{elseif $plugin->getMajorVersion() > 4} -{$smarty.capture.paymenttypes} -{else} - - - - - - - - - - -
{$payment_name}{$payment_price.formated}
- - - - - - - - -
- {$smarty.capture.paymenttypes} -   - -
- -
-
- -{/if} -{/if} \ No newline at end of file diff --git a/xtcommerce-cardgate-master/plugins/cardgatebanktransfer/classes/class.cardgatebanktransfer.php b/xtcommerce-cardgate-master/plugins/cardgatebanktransfer/classes/class.cardgatebanktransfer.php deleted file mode 100755 index 9352caa..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatebanktransfer/classes/class.cardgatebanktransfer.php +++ /dev/null @@ -1,59 +0,0 @@ -order_data['order_data']['payment_code'] == 'banktransfer') { - /** @global ADODB_mysql $db */ - global $db; - - $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); - if (count($rs)) - { - $cg_data = array_pop($rs); - if (strlen($cg_data['RESPONSEDATA'])) - { - $blacklist = array('last_order_id'); - $info = json_decode($cg_data['RESPONSEDATA']); - foreach ($info as $k => $v) - { - if (in_array($k, $blacklist)) - continue; - $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); - } - - } - } - -// if($rs->RecordCount()>0) { -// print "xxx"; -// foreach ($rs as $v) -// print_r($v); -// } - -} - diff --git a/xtcommerce-cardgate-master/plugins/cardgatebanktransfer/images/cardgatebanktransfer.png b/xtcommerce-cardgate-master/plugins/cardgatebanktransfer/images/cardgatebanktransfer.png deleted file mode 100755 index f56f5f2f271117f4854770b5523daadd872f8aea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3208 zcmV;340rR1P){m7Q+wLub0HwzgB9ZVMI_U#MWM+O1U) zHGrTbKp;FqAnzBsNp5npf20j5#co~M>FjQQf1Z23bI$$c`@ZwLCrBt1g5PjIK!5E5 z{`>G7W%mv2*Dhc@q1WsEe!oN_VYAuMc9+ZLa5#o>JZ;jX2hW21^e*%H{YI{beFYvYHzALdxlItpAP^eLVkuKxiB-G!(u&nvM`1{o_!yEbm9E@h(#`! zCrzCA^wUr0=H#I0_}>*Smy5w*WMpKFOSBQng27;;y5saWSM2WLywsG5@lyLRUfH*{VV@FP(KHa6&e){RBB9UlZvP7e- ztgN)Ol*=8T<1#{--Q}*me9hr<&3}02oEg)?#?++5s&f}=uicV~#f4du$0sF*VHgGg zN~Lo3>eT?yxOo2Jg$qxeI;C!JFa8fuCY4I1Qt5a_8=LO8(-I`pGSef*Nr?#$ zWu@0%y>X?fH78Zk)7S6z`V>itTn-xmfFo z6h-|6VK7^qE_a+*L{np5ftX z4?Q$wG<9gy94@yYKVQJ-hZlxIA&cGKsqOL&yCczZa&sdNBb2r4`T!tJspLep8!DA5 zm&rIx=8)AkXt7+l(bzL+e0EVum@===SNq*H*RW^Rf>;DaZnUbeHn%#QE|h|DIqZ2e zre>v0(i_buFMWr5y~-qcx86YD_;XUpsMiYw0#2us#bPNHim>I}xpU=z{_}ud?{>Qd zLSb=n@#amNQd3jIPmdfqvU~ULaDSA=#lQUWORH9`8g*~f*Vk{_v?((qW8a4#)|@=K z=Wl!FFI=$u{r7J-HNN@A>ntX7+O%okUA;Qc-_Kw$SFBvIb;}kelL-J9|MBhaUGH~y z>jRzQ_Zz|E zF_}yTgW*I?&F$N_mo8m8At3<(zOBEpZvBQHo$mENy?OO|!xMAneDV3`Z@%@m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@P`Nl28^Zw zlf~g4Mo~m2icJuUM(JC($8)!<2LMvyWg?*rJRVPdeSMooW3|~86O;1t@|2S% zMT+*|_>G2!mX;QS!N88;=I7<+=jTf#lCx*e+HAI2vt}hGCgM1L{rYviUZ0+xPNh;? zT3V8mlV{GH+1uND{rYttk5^Pw6mGRmO-&sg9XUBU+1c60jvs$@!-h34zO;PVQgxep z_wHR^ef3rG!;c(2TqTwK@X-<)3nWPrM1TkcNRk}W;b#yC1pIy?7!2O;!k>Z&1iW6~ zy=ou`!sGFHeZB`z6o%DiTd{H#o6UB)-C@hETep&uk{AqzR;!J;jXj(~5Cp?07=;q< z==TK*g+irb<1+TbC=@!KcCQ*R3}Z5x<28~300aPm5J{5l?d^eJ5CH5>r_blhoic?L zB_aN&2H6h?KA*pI+48H`uC0INmAP~0hC-p!XKN`G%IejtBj4mO<{ - - Bank transfer - payment - 1.0.0 - cardgatebanktransfer - http://cardgate.com - Zahlungsmodul Bank transfer - cardgatebanktransfer.png - - cardgatebanktransfer - cardgatebanktransfer - - cardgatebanktransfer.html - - Bank transfer - - - - Bank transfer - - - - Bank overboeking - - - - - - - - - page_registry.php:bottom - - 1 - 1 - - - class.checkout.php:_getPayment - $v) { - if ($k != 'banktransfer') { - unset($payment_data[$k]); - } - } - reset($payment_data); - } - ]]> - 1 - 1 - - - - class.checkout.php:_selectPayment_tpl_data - - 1 - 1 - - - - order_edit.php:display_data - - 0 - 1 - - - - - - - TEXT_PAYMENT_CARDGATE_BANKTRANSFER - store - - Bank transfer - - - Bank transfer - - - Bankoverboeking - - - - diff --git a/xtcommerce-cardgate-master/plugins/cardgatebanktransfer/installer/install.php b/xtcommerce-cardgate-master/plugins/cardgatebanktransfer/installer/install.php deleted file mode 100755 index 8a74265..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatebanktransfer/installer/install.php +++ /dev/null @@ -1,37 +0,0 @@ -getMajorVersion() > 4} -{capture name="paymenttypes"} -
- {$payment_name} -
- -
-
-{/capture} -{/if} - -{if $plugin->getMajorVersion() <= 4} -{capture name="paymenttypes"} - - {form type=radio name=selected_payment value=$payment_code} - - {$payment_name} - -{/capture} -{/if} - -{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} -{literal} - -{/literal} - -
- -
-
-

- - {$smarty.capture.paymenttypes} -
-

-
-
- -
- -{elseif $plugin->getMajorVersion() > 4} -{$smarty.capture.paymenttypes} -{else} - - - - - - - - - - -
{$payment_name}{$payment_price.formated}
- - - - - - - - -
- {$smarty.capture.paymenttypes} -   - -
- -
-
- -{/if} -{/if} \ No newline at end of file diff --git a/xtcommerce-cardgate-master/plugins/cardgatebillink/classes/class.cardgatebillink.php b/xtcommerce-cardgate-master/plugins/cardgatebillink/classes/class.cardgatebillink.php deleted file mode 100755 index 888b064..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatebillink/classes/class.cardgatebillink.php +++ /dev/null @@ -1,59 +0,0 @@ -order_data['order_data']['payment_code'] == 'billink') { - /** @global ADODB_mysql $db */ - global $db; - - $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); - if (count($rs)) - { - $cg_data = array_pop($rs); - if (strlen($cg_data['RESPONSEDATA'])) - { - $blacklist = array('last_order_id'); - $info = json_decode($cg_data['RESPONSEDATA']); - foreach ($info as $k => $v) - { - if (in_array($k, $blacklist)) - continue; - $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); - } - - } - } - -// if($rs->RecordCount()>0) { -// print "xxx"; -// foreach ($rs as $v) -// print_r($v); -// } - -} - diff --git a/xtcommerce-cardgate-master/plugins/cardgatebillink/images/cardgatebillink.png b/xtcommerce-cardgate-master/plugins/cardgatebillink/images/cardgatebillink.png deleted file mode 100644 index e7f21535104e9d52046946bb5f7d6af844fe4155..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4679 zcmY*dbyO5iyIu+DR60aZQrM-WmR`CPl*}Db@ zE~_C6093>iU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HN{zf78jJW;K}?se%43tLU0TEnf)<{pos_SW`yM1AO2TFH5$e@|uvj7UQE zf2+I1V&=j&YXM->44!j&Yws#VCb?*zueeY@wbD3J=}E|?3Ay$3$hSRP2$BcM)7G9l zg0_@2PnKWq$(Oc%Q>*ijT<*vm!~-HJhM0GWFN6(kt?h|tuO>XL@z2at+3>r(dC)&Q z988KXolDyADD>CdafaP5pHJ#viGC+x; z!PJc<&rj0e;n9Jd%dTy`k|rwCR<6#K@JaqA3Yv&oW`W6HZFRVDUlK>`Z47I#o&Ae0 z9FY5ZpqZKQ*8^uQX~pEuz6X5sL#Z82H24&u>F&u|x=^@{BXyaSW$Zd!GhZ;lWoS<=dej`yIr$j6jTg`iH-4 zep4wogO#%nKpn!`&aj>M@vGY+%_4%d+NZAbue1;7J77*si$pD~2PIn7YF+aLId~wx@ak$2k%_tcU}Ny-hsbkX z_BinoGvXz!(ilD&%q!?`st)ov-ox^}Y$N2FmdQ4fuc7=@uu;1@%3n+L8`tob_By3) z)XV&F)A%HG>7rMt8lhv}HSDW@{h$DQz6+@Yj>^AbI4f%RYNq7S~7yKFA!T> ym%~GG9SwAdiLsM!vt^B^>5b4XQgj}A{Hhu1T-?6A7rgrSyGBJp6H+Q?9{exE0>sP! diff --git a/xtcommerce-cardgate-master/plugins/cardgatebillink/installer/cardgatebillink.xml b/xtcommerce-cardgate-master/plugins/cardgatebillink/installer/cardgatebillink.xml deleted file mode 100755 index b5f6c1d..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatebillink/installer/cardgatebillink.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - Billink - payment - 1.0.0 - cardgatebillink - http://cardgate.com - Zahlungsmodul Billink - cardgatebillink.png - - cardgatebillink - cardgatebillink - - cardgatebillink.html - - Billink - - - - Billink - - - - Billink - - - - - - - - - page_registry.php:bottom - - 1 - 1 - - - class.checkout.php:_getPayment - $v) { - if ($k != 'billink') { - unset($payment_data[$k]); - } - } - reset($payment_data); - } - ]]> - 1 - 1 - - - - class.checkout.php:_selectPayment_tpl_data - - 1 - 1 - - - - order_edit.php:display_data - - 0 - 1 - - - - - - - TEXT_PAYMENT_CARDGATE_BILLINK - store - - Billink - - - Billink - - - Billink - - - - diff --git a/xtcommerce-cardgate-master/plugins/cardgatebillink/installer/install.php b/xtcommerce-cardgate-master/plugins/cardgatebillink/installer/install.php deleted file mode 100755 index 8a74265..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatebillink/installer/install.php +++ /dev/null @@ -1,37 +0,0 @@ -getMajorVersion() > 4} -{capture name="paymenttypes"} -
- {$payment_name} -
- -
-
-{/capture} -{/if} - -{if $plugin->getMajorVersion() <= 4} -{capture name="paymenttypes"} - - {form type=radio name=selected_payment value=$payment_code} - - {$payment_name} - -{/capture} -{/if} - -{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} -{literal} - -{/literal} - -
- -
-
-

- - {$smarty.capture.paymenttypes} -
-

-
-
- -
- -{elseif $plugin->getMajorVersion() > 4} -{$smarty.capture.paymenttypes} -{else} - - - - - - - - - - -
{$payment_name}{$payment_price.formated}
- - - - - - - - -
- {$smarty.capture.paymenttypes} -   - -
- -
-
- -{/if} -{/if} \ No newline at end of file diff --git a/xtcommerce-cardgate-master/plugins/cardgatebitcoin/classes/class.cardgatebitcoin.php b/xtcommerce-cardgate-master/plugins/cardgatebitcoin/classes/class.cardgatebitcoin.php deleted file mode 100755 index e73d10c..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatebitcoin/classes/class.cardgatebitcoin.php +++ /dev/null @@ -1,59 +0,0 @@ -order_data['order_data']['payment_code'] == 'bitcoin') { - /** @global ADODB_mysql $db */ - global $db; - - $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); - if (count($rs)) - { - $cg_data = array_pop($rs); - if (strlen($cg_data['RESPONSEDATA'])) - { - $blacklist = array('last_order_id'); - $info = json_decode($cg_data['RESPONSEDATA']); - foreach ($info as $k => $v) - { - if (in_array($k, $blacklist)) - continue; - $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); - } - - } - } - -// if($rs->RecordCount()>0) { -// print "xxx"; -// foreach ($rs as $v) -// print_r($v); -// } - -} - diff --git a/xtcommerce-cardgate-master/plugins/cardgatebitcoin/images/cardgatebitcoin.png b/xtcommerce-cardgate-master/plugins/cardgatebitcoin/images/cardgatebitcoin.png deleted file mode 100755 index 02c13a2da94a16344fcac04f2c046726326f00af..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3090 zcmZvecRbbmAIFb%tm0&zGCJpQ%zGRhWM>@XI7X-(kv%#%4#$aeXqcImnUNV4a!+K3 z%qz0V2o-USGBV1D{HX4|zx8=MKI{E`y~p$Y`R5yb&eY&I+bK2x0B{^*h_*P~MUEy5 z@NgA=Q*M2@(fL^z=m2QFf{TY2Rv$xaKLCK8`)JYuGBUx3f-d}d92sX~tm;f8$T+$X zom^!o1fN4S0H97$Jv;G~;ylKF$kjXx(NMt}jfJ^{NhDdTp%BiTRAZ6u|^74p7 z1;UT&O?IRpy!}Le2Kg%v+SSjQg!duiiQbT-xQ?qOS<5!&opT84%`~9Li z*%eUNf8vdI7EM8>=QQ{I1g9ew%f_JitYGWEmOsOpkj9mzz}c_PtE^N0xV?dj+2 z=;M0CrH=e>#Xps*AB9vkBjH^SS&xV`<1dlm~HA0$z-&xTlF-X$K9>%zk!@iC9{?_h?trx>5mJX`HaA zZ>2`lx2>Lfj&9Es|8T=ev(4-4?#}Gfy^dP*xP&*xG8+1(ye%xB^ z<7R3x>d40ug2R!p5&QIt?@N))x${a3m_G{+cqg5sHX4?@(l_tlxc4cvUQ#R4<~6P} z*4;5OMreON`C3*P) z40!I?f+GSVai)VI-f%WasZKXMR5TjEb;@dxKPj%c1v=DaowNVIvqW!@8m(2P12Efs zEFA3KHshhsUv!JlV#p0cGM{^4--M&a_!A+hb-pq+fos$OxPGGYdP@h-)H5$|q0qu* zFFLx&L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|d%7=M*6>vrvQRe@&xLDf(7EoS95#3jpt`1cC2E%q9r`&&bX zYifYKKsLJtS4+2P8)zcmqJSwY$*Xg|Ct>ndvmSh(b{+HyuvlrgE6+6N&^{x0N3sLH zZb4VdVUhJ9zu<0OAtvEfcfrCJW(n^aA-Y|6ms9i_nhbn$C1YljiQ{~n&RP)o%!j?? zGt|h<45NKl4@>pIxg3H`$nE*l%}q>8AE0JzXmi02+R!A%$G-)38u-VyrUMsJ2JPvc zPI??j^_di0oK@Ovbbec|g3xl6ZLtPc91o78iroLRL<7;J4Hjnicmga*{7UN7dGqq`Q-xzM2$jLG%E=DMCP3sLYjzwisZV&+QT&UG-Isi{v=Bpft0_9fFn-%2;yc9w~CFFY({ z=*le<;LQ`FWaM5_QrAsGRRuj`p9%v9xp(C6|NaS>@Ch7Z^L;e+$pO8}d81f$uZp~* OA9akLDVnC^5c)4kDR8L( diff --git a/xtcommerce-cardgate-master/plugins/cardgatebitcoin/installer/cardgatebitcoin.xml b/xtcommerce-cardgate-master/plugins/cardgatebitcoin/installer/cardgatebitcoin.xml deleted file mode 100755 index a9359a5..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatebitcoin/installer/cardgatebitcoin.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - Bitcoin - payment - 1.0.0 - cardgatebitcoin - http://cardgate.com - Zahlungsmodul Bitcoin - cardgatebitcoin.png - - cardgatebitcoin - cardgatebitcoin - - cardgatebitcoin.html - - Bitcoin - - - - Bitcoin - - - - Bitcoin - - - - - - - - - page_registry.php:bottom - - 1 - 1 - - - class.checkout.php:_getPayment - $v) { - if ($k != 'bitcoin') { - unset($payment_data[$k]); - } - } - reset($payment_data); - } - ]]> - 1 - 1 - - - - class.checkout.php:_selectPayment_tpl_data - - 1 - 1 - - - - order_edit.php:display_data - - 0 - 1 - - - - - - - TEXT_PAYMENT_CARDGATE_BITCOIN - store - - Bitcoin - - - Bitcoin - - - Bitcoin - - - - diff --git a/xtcommerce-cardgate-master/plugins/cardgatebitcoin/installer/install.php b/xtcommerce-cardgate-master/plugins/cardgatebitcoin/installer/install.php deleted file mode 100755 index 8a74265..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatebitcoin/installer/install.php +++ /dev/null @@ -1,37 +0,0 @@ -getMajorVersion() > 4} -{capture name="paymenttypes"} -
- {$payment_name} -
- -
-
-{/capture} -{/if} - -{if $plugin->getMajorVersion() <= 4} -{capture name="paymenttypes"} - - {form type=radio name=selected_payment value=$payment_code} - - {$payment_name} - -{/capture} -{/if} - -{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} -{literal} - -{/literal} - -
- -
-
-

- - {$smarty.capture.paymenttypes} -
-

-
-
- -
- -{elseif $plugin->getMajorVersion() > 4} -{$smarty.capture.paymenttypes} -{else} - - - - - - - - - - -
{$payment_name}{$payment_price.formated}
- - - - - - - - -
- {$smarty.capture.paymenttypes} -   - -
- -
-
- -{/if} -{/if} \ No newline at end of file diff --git a/xtcommerce-cardgate-master/plugins/cardgatecreditcard/classes/class.cardgatecreditcard.php b/xtcommerce-cardgate-master/plugins/cardgatecreditcard/classes/class.cardgatecreditcard.php deleted file mode 100755 index 7422285..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatecreditcard/classes/class.cardgatecreditcard.php +++ /dev/null @@ -1,59 +0,0 @@ -order_data['order_data']['payment_code'] == 'creditcard') { - /** @global ADODB_mysql $db */ - global $db; - - $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); - if (count($rs)) - { - $cg_data = array_pop($rs); - if (strlen($cg_data['RESPONSEDATA'])) - { - $blacklist = array('last_order_id'); - $info = json_decode($cg_data['RESPONSEDATA']); - foreach ($info as $k => $v) - { - if (in_array($k, $blacklist)) - continue; - $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); - } - - } - } - -// if($rs->RecordCount()>0) { -// print "xxx"; -// foreach ($rs as $v) -// print_r($v); -// } - -} - diff --git a/xtcommerce-cardgate-master/plugins/cardgatecreditcard/images/cardgatecreditcard.png b/xtcommerce-cardgate-master/plugins/cardgatecreditcard/images/cardgatecreditcard.png deleted file mode 100755 index 021ad0811ce403af9ae499f07cd8094a41d8286f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1009 zcmZ?wbhEHb3}ldExXJ(mDYN%IWm5h>lOaQwn@OjLi8ue;kAKrTIvJf>zGle&yAXQj z%ozp-$MX0XowCJ$4>9h#^i)kfMM*X3iC3#cM5U;46g z-!cxZFOBowUjNTvoVH=fCco~Dum1h7U32XF`}^1LKl^{?%-0{knL~R%eEsw9^QUkB z{=fY2{r}&$VCRrV=zx@i{KCNY-=U|#Lr1Fr#G;f#Iac#8te7%$P1O3+FN8u~_-*n% zdC9@7X6f}URUBnix&@xw56H~co!YfTCieH*T;W(TS*Esj*(Tu>F)o4r36kCEzV*}G z6N*^d=gg5!VeV&Myrf?;C1LuioKjY?xf|LSE!ncTe?`dZRo+GGH*Vl!+Io1QK-x|z zZtjy(E`p3If)Xl>(#~osN=l5EoCUAkUDLGxKwICDEdtBEomIJ)oOR+)5fn_}cVbNa z?kt`9!{vyGhD)DtOCZ;Ut4$lyodktAAKx@?$aiL9W;FQWJs}~wsmIAhV#kaJP6rBE zPs)aPoN8!k=QPscsGP{cR?D`=c1MQq3HJYr-z?&I+80h|;1cOm>)l%PbVUkhyRN~r z2_2mijiV?0vD9zevW~waN#N(i#lB|D)-ne!FdpXQQs*iBaDbtifnRQl(gA^kbK3&n ziz!GjCQh7KDe9gUbMb3BOJ9o1pCcb0E_yOii77AZv?2=|yV8=i77q>_VdWEa3rHw@ zaG;5YWyjPHJ&R1+7)5y`4oW&62{7t8BUDrjuvVqs^q*fIBZhb!~Ghs?5^1s$KB#+thr*zJ7bz$e{vz%f=v z;Q2OK!G5+*ceOYJadVBIAe_q=NFfzBncjKmpbWK7dH2Y zCoUdjRdiVp)}SnN;1I`)Rs|+*d6xr@>`FZbhf0)PE;zBNT$$m+94dNI)P3?xVWnbz z76FDx&YBM?OvfY(!UBCHE*+eaGD(xcQF6&lM<Jq8gpA8%;f3_SnvkgpB^+?#|q@km8 z@lnv^U4JGXbyz%a@`^>GCI|dhO=~!qwR%0@<`*khTw3KOyj zuzEQ7vB%B` - - Creditcard - payment - 1.0.0 - cardgatecreditcard - http://cardgate.com - Zahlungsmodul Creditcard - cardgatecreditcard.png - - cardgatecreditcard - cardgatecreditcard - - cardgatecreditcard.html - - Creditcard - - - - Creditcard - - - - Creditcard - - - - - - - - - page_registry.php:bottom - - 1 - 1 - - - class.checkout.php:_getPayment - $v) { - if ($k != 'creditcard') { - unset($payment_data[$k]); - } - } - reset($payment_data); - } - ]]> - 1 - 1 - - - - class.checkout.php:_selectPayment_tpl_data - - 1 - 1 - - - - order_edit.php:display_data - - 0 - 1 - - - - - - - TEXT_PAYMENT_CARDGATE_CREDITCARD - store - - Creditcard - - - Creditcard - - - Creditcard - - - - diff --git a/xtcommerce-cardgate-master/plugins/cardgatecreditcard/installer/install.php b/xtcommerce-cardgate-master/plugins/cardgatecreditcard/installer/install.php deleted file mode 100755 index 8a74265..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatecreditcard/installer/install.php +++ /dev/null @@ -1,37 +0,0 @@ -getMajorVersion() > 4} -{capture name="paymenttypes"} -
- {$payment_name} -
- -
-
-{/capture} -{/if} - -{if $plugin->getMajorVersion() <= 4} -{capture name="paymenttypes"} - - {form type=radio name=selected_payment value=$payment_code} - - {$payment_name} - -{/capture} -{/if} - -{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} -{literal} - -{/literal} - -
- -
-
-

- - {$smarty.capture.paymenttypes} -
-

-
-
- -
- -{elseif $plugin->getMajorVersion() > 4} -{$smarty.capture.paymenttypes} -{else} - - - - - - - - - - -
{$payment_name}{$payment_price.formated}
- - - - - - - - -
- {$smarty.capture.paymenttypes} -   - -
- -
-
- -{/if} -{/if} \ No newline at end of file diff --git a/xtcommerce-cardgate-master/plugins/cardgatedirectdebit/classes/class.cardgatedirectdebit.php b/xtcommerce-cardgate-master/plugins/cardgatedirectdebit/classes/class.cardgatedirectdebit.php deleted file mode 100755 index 3b33be3..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatedirectdebit/classes/class.cardgatedirectdebit.php +++ /dev/null @@ -1,59 +0,0 @@ -order_data['order_data']['payment_code'] == 'directdebit') { - /** @global ADODB_mysql $db */ - global $db; - - $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); - if (count($rs)) - { - $cg_data = array_pop($rs); - if (strlen($cg_data['RESPONSEDATA'])) - { - $blacklist = array('last_order_id'); - $info = json_decode($cg_data['RESPONSEDATA']); - foreach ($info as $k => $v) - { - if (in_array($k, $blacklist)) - continue; - $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); - } - - } - } - -// if($rs->RecordCount()>0) { -// print "xxx"; -// foreach ($rs as $v) -// print_r($v); -// } - -} - diff --git a/xtcommerce-cardgate-master/plugins/cardgatedirectdebit/images/cardgatedirectdebit.png b/xtcommerce-cardgate-master/plugins/cardgatedirectdebit/images/cardgatedirectdebit.png deleted file mode 100755 index 2e0f0b6d1e36b753608fb28e20ba8324651e3efb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3902 zcmcJSc~Fzdw!r)QvWEl$31JHm_8nvon=E19K?FolFbNQrfFS`yL_tIaMi3EML=+eW zanNxA#0^nL9T@~v+|U8N2#kt2in!-~8LQN}_3pj(Ue)VAx_*87oI0mZpYH1R@$+Wc zCs+d-xCNw*L?ThCR0e~gt*vclW@cq&FMe3?;jo>9v2tK<#N-~(z3F$^78UZ zN=nMh%d4xa8yg#2T3R|fI*uPde(Kbz3l}a73=E8pj*g9uJ$m$Lc6RpFt5*_<3AOofVkS-7jkqKt>vKS_A5Ws){u)q?4 z1Ws0F&=T(mX>@*GY-Sds^!G^Li~>k1xnbrT%4Gh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dlt_BNljl}XVG!-Ckinfr<`2Fi}{ zSE{s7CJPx#Oy3dkV!2^8l9B0~Ba?2xQqQlJIYFm~$~?^7Lh(g;v}jf*f-QLMBH3We z)sHrqvU?g8RGs73?k$9?7&K8RaXi{wj-(CpX|GJRWYP2>S2_4VU{yK$+?}0aZyp!vdt`%05MJpGlzhbc)EW;mp)ut0efH*sR;S{o$Q>S- unc0b_zh6J+`q7eIyLpru%Ibbth_63@!KvCzk8h-S8%`9{?C>EJ;Pg*q5ad(< diff --git a/xtcommerce-cardgate-master/plugins/cardgatedirectdebit/installer/cardgatedirectdebit.xml b/xtcommerce-cardgate-master/plugins/cardgatedirectdebit/installer/cardgatedirectdebit.xml deleted file mode 100755 index e8f83aa..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatedirectdebit/installer/cardgatedirectdebit.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - DirectDebit - payment - 1.0.0 - cardgatedirectdebit - http://cardgate.com - Zahlungsmodul DirectDebit - cardgatedirectdebit.png - - cardgatedirectdebit - cardgatedirectdebit - - cardgatedirectdebit.html - - DirectDebit - - - - DirectDebit - - - - DirectDebit - - - - - - - - - page_registry.php:bottom - - 1 - 1 - - - class.checkout.php:_getPayment - $v) { - if ($k != 'directdebit') { - unset($payment_data[$k]); - } - } - reset($payment_data); - } - ]]> - 1 - 1 - - - - class.checkout.php:_selectPayment_tpl_data - - 1 - 1 - - - - order_edit.php:display_data - - 0 - 1 - - - - - - - TEXT_PAYMENT_CARDGATE_DIRECTDEBIT - store - - Lastschriftverfahren - - - Direct Debit - - - Direct Debit - - - - diff --git a/xtcommerce-cardgate-master/plugins/cardgatedirectdebit/installer/install.php b/xtcommerce-cardgate-master/plugins/cardgatedirectdebit/installer/install.php deleted file mode 100755 index 8a74265..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatedirectdebit/installer/install.php +++ /dev/null @@ -1,37 +0,0 @@ -getMajorVersion() > 4} -{capture name="paymenttypes"} -
- {$payment_name} -
- -
-
-{/capture} -{/if} - -{if $plugin->getMajorVersion() <= 4} -{capture name="paymenttypes"} - - {form type=radio name=selected_payment value=$payment_code} - - {$payment_name} - -{/capture} -{/if} - -{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} -{literal} - -{/literal} - -
- -
-
-

- - {$smarty.capture.paymenttypes} -
-

-
-
- -
- -{elseif $plugin->getMajorVersion() > 4} -{$smarty.capture.paymenttypes} -{else} - - - - - - - - - - -
{$payment_name}{$payment_price.formated}
- - - - - - - - -
- {$smarty.capture.paymenttypes} -   - -
- -
-
- -{/if} -{/if} \ No newline at end of file diff --git a/xtcommerce-cardgate-master/plugins/cardgategiftcard/classes/class.cardgategiftcard.php b/xtcommerce-cardgate-master/plugins/cardgategiftcard/classes/class.cardgategiftcard.php deleted file mode 100755 index f0c5845..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgategiftcard/classes/class.cardgategiftcard.php +++ /dev/null @@ -1,59 +0,0 @@ -order_data['order_data']['payment_code'] == 'giftcard') { - /** @global ADODB_mysql $db */ - global $db; - - $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); - if (count($rs)) - { - $cg_data = array_pop($rs); - if (strlen($cg_data['RESPONSEDATA'])) - { - $blacklist = array('last_order_id'); - $info = json_decode($cg_data['RESPONSEDATA']); - foreach ($info as $k => $v) - { - if (in_array($k, $blacklist)) - continue; - $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); - } - - } - } -} - diff --git a/xtcommerce-cardgate-master/plugins/cardgategiftcard/images/cardgategiftcard.png b/xtcommerce-cardgate-master/plugins/cardgategiftcard/images/cardgategiftcard.png deleted file mode 100644 index 74fc7e70fe60688e6bea36fbe112c62d80489348..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 715 zcmZ?wbh9u|bYswCxXJ(qp$rUZ3=Fvp3^fc44L~Ht(4fH3pv}wkpGX1^xvp467IzR%tW* zXZZjBKg0&wk%~WAIE@$-7<52Zfc(V3_TOQGK!}D^|A|8ZKPK4ByRf3fYpv7t!-tek z>L$&;wxL36VvO94bx}K6rXMfZXuSJf-Q15g73+va98K5v~uamh0Ao!WxTcv_bE0DoeFZ4oD#QM+j~abuO(}_ZchnV zozgS=yW`;rzE|Gud}W$HcY+UVJLB&skx_?d-f`_RIiqtyT|ndO*(qmEG*t#DX-#vT z;rVpyOa|56$>(Ov&DgHe*EVUE>Xx~ik5B15nNysrvLMj1vG?mq-I%~S=61Inojn&% z-8Y=Rt$fnG7f&{Mp6-fNlALp~Ie7Zd$z2+69<@(;CtSDd*U^j(%r5`t@dSK%_uBhr b?%K}}|9o|2xhBN&XWG1~sV9_O1Q@IV>1q)l diff --git a/xtcommerce-cardgate-master/plugins/cardgategiftcard/installer/cardgategiftcard.xml b/xtcommerce-cardgate-master/plugins/cardgategiftcard/installer/cardgategiftcard.xml deleted file mode 100755 index ea6266d..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgategiftcard/installer/cardgategiftcard.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - Gift Card - payment - 1.0.0 - cardgategiftcard - http://cardgate.com - Zahlungsmodul Gift Card - cardgategiftcard.png - - cardgategiftcard - cardgategiftcard - - cardgategiftcard.html - - Gift Card - - - - Gift Card - - - - Gift Card - - - - - - - - - page_registry.php:bottom - - 1 - 1 - - - class.checkout.php:_getPayment - $v) { - if ($k != 'giftcard') { - unset($payment_data[$k]); - } - } - reset($payment_data); - } - ]]> - 1 - 1 - - - - class.checkout.php:_selectPayment_tpl_data - - 1 - 1 - - - - order_edit.php:display_data - - 0 - 1 - - - - - - - TEXT_PAYMENT_CARDGATE_GIFTCARD - store - - Gift Card - - - Gift Card - - - Gift Card - - - - diff --git a/xtcommerce-cardgate-master/plugins/cardgategiftcard/installer/install.php b/xtcommerce-cardgate-master/plugins/cardgategiftcard/installer/install.php deleted file mode 100755 index 8a74265..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgategiftcard/installer/install.php +++ /dev/null @@ -1,37 +0,0 @@ -getMajorVersion() > 4} -{capture name="paymenttypes"} -
- {$payment_name} -
- -
-
-{/capture} -{/if} - -{if $plugin->getMajorVersion() <= 4} -{capture name="paymenttypes"} - - {form type=radio name=selected_payment value=$payment_code} - - {$payment_name} - -{/capture} -{/if} - -{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} -{literal} - -{/literal} - -
- -
-
-

- - {$smarty.capture.paymenttypes} -
-

-
-
- -
- -{elseif $plugin->getMajorVersion() > 4} -{$smarty.capture.paymenttypes} -{else} - - - - - - - - - - -
{$payment_name}{$payment_price.formated}
- - - - - - - - -
- {$smarty.capture.paymenttypes} -   - -
- -
-
- -{/if} -{/if} \ No newline at end of file diff --git a/xtcommerce-cardgate-master/plugins/cardgategiropay/classes/class.cardgategiropay.php b/xtcommerce-cardgate-master/plugins/cardgategiropay/classes/class.cardgategiropay.php deleted file mode 100755 index 5a623e2..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgategiropay/classes/class.cardgategiropay.php +++ /dev/null @@ -1,59 +0,0 @@ -order_data['order_data']['payment_code'] == 'giropay') { - /** @global ADODB_mysql $db */ - global $db; - - $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); - if (count($rs)) - { - $cg_data = array_pop($rs); - if (strlen($cg_data['RESPONSEDATA'])) - { - $blacklist = array('last_order_id'); - $info = json_decode($cg_data['RESPONSEDATA']); - foreach ($info as $k => $v) - { - if (in_array($k, $blacklist)) - continue; - $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); - } - - } - } - -// if($rs->RecordCount()>0) { -// print "xxx"; -// foreach ($rs as $v) -// print_r($v); -// } - -} - diff --git a/xtcommerce-cardgate-master/plugins/cardgategiropay/images/cardgategiropay.png b/xtcommerce-cardgate-master/plugins/cardgategiropay/images/cardgategiropay.png deleted file mode 100755 index 3d9810138af746d09948668bcc12cc8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mT9RL8op?^3PF|sRUkbskl$&;l{9iR0asb!6t{zao=)jX6xFpB_}XN+ zs2BB5vP-URGn+9@@j1~sN_JKOM?&Ln>`qr1Q2p&-esblrVe`@XhBp4a)-8vh?4YXE z#W7FKA}Kxc;2FhaA8I=`PLns#qIy+Q)&(-sZYuHNG$ zh~UCUyPj36$J|bv>bQS`tJLXv0d*-3>Q5Y))UH`nc0r_T$hCA1u>+`r?8{qx_{yk; zfP(I+Q6tr;-rq?AFN7qF#T`S!n}oZhsAXo<*YWQmd{cx+TP zX{x07NK-~~lf0@lo3SionNa0tBKP*KuT5vSeX#6&Vzw+}&#v|8X(XDS(j=|B?X)vE zbtYw5v}L_Wp>;c*=LrhYiU zVG^cm?S^P^ zkG(bZ(3JebGwryYz2_I#yQd|+_c5z<%GE`k^mjWKm_WUa${k6yG57Yb=_R6~4Buvk zNZsjMb+W)oGV7yT?4X%5>nl+!Ch4_|dZuf4+QMGftQbMhB+_k*>Cl6Go!TM#>Zd}j z!MNEMuhN$n(1H~?)E}sXU#l*MKYcIRE7>DjfWt2&?>p&ui^aC??SD12GS#*?GO0QS sVC`#v^pj@9Y^_##5zu9p^?Iu^h;XNxGoal-*!U46SUKWvS^CHQ4eaqZp8x;= diff --git a/xtcommerce-cardgate-master/plugins/cardgategiropay/installer/cardgategiropay.xml b/xtcommerce-cardgate-master/plugins/cardgategiropay/installer/cardgategiropay.xml deleted file mode 100755 index 09dbfef..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgategiropay/installer/cardgategiropay.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - Giropay - payment - 1.0.0 - cardgategiropay - http://cardgate.com - Zahlungsmodul Giropay - cardgategiropay.png - - cardgategiropay - cardgategiropay - - cardgategiropay.html - - Giropay - - - - Giropay - - - - Giropay - - - - - - - - - page_registry.php:bottom - - 1 - 1 - - - class.checkout.php:_getPayment - $v) { - if ($k != 'giropay') { - unset($payment_data[$k]); - } - } - reset($payment_data); - } - ]]> - 1 - 1 - - - - class.checkout.php:_selectPayment_tpl_data - - 1 - 1 - - - - order_edit.php:display_data - - 0 - 1 - - - - - - - TEXT_PAYMENT_CARDGATE_GIROPAY - store - - Giropay - - - Giropay - - - Giropay - - - - diff --git a/xtcommerce-cardgate-master/plugins/cardgategiropay/installer/install.php b/xtcommerce-cardgate-master/plugins/cardgategiropay/installer/install.php deleted file mode 100755 index 8a74265..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgategiropay/installer/install.php +++ /dev/null @@ -1,37 +0,0 @@ -getMajorVersion() > 4} -{capture name="paymenttypes"} -
- {$payment_name} -
- -
-
-{/capture} -{/if} - -{if $plugin->getMajorVersion() <= 4} -{capture name="paymenttypes"} - - {form type=radio name=selected_payment value=$payment_code} - - {$payment_name} - -{/capture} -{/if} - -{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} -{literal} - -{/literal} - -
- -
-
-

- - {$smarty.capture.paymenttypes} -
-

-
-
- -
- -{elseif $plugin->getMajorVersion() > 4} -{$smarty.capture.paymenttypes} -{else} - - - - - - - - - - -
{$payment_name}{$payment_price.formated}
- - - - - - - - -
- {$smarty.capture.paymenttypes} -   - -
- -
-
- -{/if} -{/if} \ No newline at end of file diff --git a/xtcommerce-cardgate-master/plugins/cardgateideal/classes/class.cardgateideal.php b/xtcommerce-cardgate-master/plugins/cardgateideal/classes/class.cardgateideal.php deleted file mode 100755 index a0a58a1..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgateideal/classes/class.cardgateideal.php +++ /dev/null @@ -1,59 +0,0 @@ -getBanks(); -} diff --git a/xtcommerce-cardgate-master/plugins/cardgateideal/hooks/module_checkout_payment_check.php b/xtcommerce-cardgate-master/plugins/cardgateideal/hooks/module_checkout_payment_check.php deleted file mode 100755 index 48ef2d7..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgateideal/hooks/module_checkout_payment_check.php +++ /dev/null @@ -1,41 +0,0 @@ -order_data['order_data']['payment_code'] == 'ideal') { - /** @global ADODB_mysql $db */ - global $db; - - $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); - if (count($rs)) - { - $cg_data = array_pop($rs); - if (strlen($cg_data['RESPONSEDATA'])) - { - $blacklist = array('last_order_id'); - $info = json_decode($cg_data['RESPONSEDATA']); - foreach ($info as $k => $v) - { - if (in_array($k, $blacklist)) - continue; - $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); - } - - } - } - -// if($rs->RecordCount()>0) { -// print "xxx"; -// foreach ($rs as $v) -// print_r($v); -// } - -} - diff --git a/xtcommerce-cardgate-master/plugins/cardgateideal/images/cardgateideal.png b/xtcommerce-cardgate-master/plugins/cardgateideal/images/cardgateideal.png deleted file mode 100755 index ae41d86a3f5cac3ee646fb5922e5aafe7559ed98..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 939 zcmV;c162HpP)@imQoaM_Pq=y_E8nGUt9;19{Qj>)}1O=9wSF~D; zT*B6M7D;{UpfB*lVd(Quz@0`+KyCtP1yCr4x2v1FokB#NJ*=n_7 ztZ!(jH=7LxL-xgc;1?b)mn#?y{?8{n91a+^+wFS2KATS@PbMaeMx)B3qtPhFx!KuB zBmyP)N8E1r$jC@vU!TGTx-O^F$#GmP7R&p>7X*P0fj~(l60!wbeEKGeioyOatO#dE z6+Nr49o04(%PmH}+2r&2t_}=b9~z>I@Or&$B+JwUY9p~GP78{EN%OiEzUIEbh>^`41xv!>VjvIz z?vZ5DB!Z*f*w;HRc#{dZhg<&+kzo%I;u!J!{j^|x;fwfcX{O~Ge$dmep}ChO7x06E zSIk3?k4HXw9ze&I=ixAWg4`z{hkZqUB$G+P-umlk-LM^#`}k@x{C@TE8}e0CTS*|q zSYBHNDB{l6Cg+b?ESRBeQ*}?NREn?{yY+N$Q#!AI#zkHG5u8W{HkMacMxRxlYGQZc zI|$+kAih<>5>Xk;F(5Qe1&43Pp+7#v(|E1Y;b<6!4g*|=x#n^gMyy$1j=74s-`zHBR-G2f$mOS?ny0^#E0k6A#jsjS5x(Oa*F&h>5w~ZqV z21<3%nv@E3Pg0VSy}voMIlpxAF2+RY9r+5YNUV$uyI-dR#3fK58xTy;rHmsKbs33} ze-s<7R;v&_xFRbb%EY{r5MJo22pV!ksIMB?1)PiUuro!e?!X?`Tss*GK?n5}(Gp0V zvK}MlZ&55A@^l~UX$5maNBxybRB6G@0Nh|zatPU(@t&wV$nS0%LmrrcH(i~b)Rknb zx#*`@3ZeTXHc~9@1Za=~cqE;Rn>`lHNQqyVjs=|w3JppF+pb_{`^qgo4Gs?G6fs$j zBN%KsSMK+~I@GY`(NNO%4x0^icIO@zLRBPJ$<(oC>tWUJ$xnU@FaQyQtT|-curdGu N002ovPDHLkV1nc&rrH1i diff --git a/xtcommerce-cardgate-master/plugins/cardgateideal/installer/cardgateideal.xml b/xtcommerce-cardgate-master/plugins/cardgateideal/installer/cardgateideal.xml deleted file mode 100755 index 69128fe..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgateideal/installer/cardgateideal.xml +++ /dev/null @@ -1,99 +0,0 @@ - - - iDEAL - payment - 1.0.0 - cardgateideal - http://cardgate.com - Zahlungsmodul iDEAL - cardgateideal.png - - cardgateideal - cardgateideal - - cardgateideal.html - - iDEAL - - - - iDEAL - - - - iDEAL - - - - - - - - - page_registry.php:bottom - - 1 - 1 - - - class.checkout.php:_getPayment - $v) { - if ($k != 'ideal') { - unset($payment_data[$k]); - } - } - reset($payment_data); - } - ]]> - 1 - 1 - - - - class.checkout.php:_selectPayment_tpl_data - - 1 - 1 - - - module_checkout.php:checkout_payment_check - - 1 - 1 - - - order_edit.php:display_data - - 0 - 1 - - - - - - - TEXT_PAYMENT_CARDGATE_IDEAL - store - - iDEAL - - - iDEAL - - - iDEAL - - - - diff --git a/xtcommerce-cardgate-master/plugins/cardgateideal/installer/install.php b/xtcommerce-cardgate-master/plugins/cardgateideal/installer/install.php deleted file mode 100755 index 8a74265..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgateideal/installer/install.php +++ /dev/null @@ -1,37 +0,0 @@ -No CardGate paymenttype activated -{/capture} - -{if $plugin->getMajorVersion() > 4} -{capture name="paymenttypes"} -
- {$payment_name} -
- -
-
- -
-
-{/capture} -{/if} - -{if $plugin->getMajorVersion() <= 4} -{capture name="paymenttypes"} - - {form type=radio name=selected_payment value=$payment_code} - - - - {$payment_name} - -{/capture} -{/if} - -{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} -{literal} - -{/literal} - -
- -
-
-

- - {$smarty.capture.paymenttypes} -
-

-
-
-
-
- -
- -{elseif $plugin->getMajorVersion() > 4} -{$smarty.capture.paymenttypes} -{else} - - - - - - - - - - - -
{$payment_name}{$payment_price.formated}
- - - - - - - - -
- {$smarty.capture.paymenttypes} -   - -
- -
-
- -{/if} -{/if} \ No newline at end of file diff --git a/xtcommerce-cardgate-master/plugins/cardgateidealqr/classes/class.cardgateidealqr.php b/xtcommerce-cardgate-master/plugins/cardgateidealqr/classes/class.cardgateidealqr.php deleted file mode 100755 index b084dd9..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgateidealqr/classes/class.cardgateidealqr.php +++ /dev/null @@ -1,59 +0,0 @@ -order_data['order_data']['payment_code'] == 'idealqr') { - /** @global ADODB_mysql $db */ - global $db; - - $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); - if (count($rs)) - { - $cg_data = array_pop($rs); - if (strlen($cg_data['RESPONSEDATA'])) - { - $blacklist = array('last_order_id'); - $info = json_decode($cg_data['RESPONSEDATA']); - foreach ($info as $k => $v) - { - if (in_array($k, $blacklist)) - continue; - $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); - } - - } - } - -// if($rs->RecordCount()>0) { -// print "xxx"; -// foreach ($rs as $v) -// print_r($v); -// } - -} - diff --git a/xtcommerce-cardgate-master/plugins/cardgateidealqr/images/cardgateidealqr.png b/xtcommerce-cardgate-master/plugins/cardgateidealqr/images/cardgateidealqr.png deleted file mode 100644 index fec6326cd1a6a281493d2d72162db6e275e96900..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3251 zcmY*c2|Sct`?l{}X$-QA5!uE}mNzCt7$KpU$r=VD`!@DvFbdfsB)v0~r5GiO5Je<4 zVr)^7rHmPSLb8A3ec%84|Gww;bOjJK0k9{R;)N1QzMp|KB+lohd0>F0ms6^FM3#5S?&_WnE(eLlzo`JLmbr@Km4+H|~g?f6yZII{w8P4n>z}{hD!Eh)vGBQ#c5sgJmio^6Q_{`wRI$wtsZ=poilBHJQIX z{maU9Ri94}`fu3u`7U&vWG(~WnmN)CWzSo1hqpePCYiF5V7(adee!wHryJKG&q_Uy z8>KvT#F|Oba?(plln$c+VuNp$lGYux5MKfKNY-pKwpe4#EB2}2WONPvQNl?-5^iM6 zvE|^PZDns_GkS%NU#8=)2aY!#xn?A{XE3_4Fba^C-jj8$(**zk8-;X35k}kN&NXo^ zPb}7FW#Z+Fn2mW?#ipg_V{wCs*k6_Sz3ud@tdDgb-C;XRjjEcOwx-!qNAiM8Vl!2p zoEKT*d#l~D@bLNkHc^MP$m+|F$)zS4l+MY;9Hw6vn-|LI~T z<`vL2?vm+E8MLo2ncDSj=z-;soohVJ!-4*L^}D_hs7X&;OiIf;XSta!QquU}G7P?&p0)fe^7eQ+D%L}u#6%vU`;CM)~o^km#n^3{hQ$>=q~H(gy@;8Ukg z?HAp-!&uWWaPS^)s!ML?V)EYeN%DWge=SvW%S5%Gev03Vk=>blSVDI1O8@da;7?{`W;UljH{%0?mn zU~jWe^J0lOyf?b~4)i|#bp9g;Z zGPE%k)TaAg^ypFK{>qC5b<-PHUgt_^dR4}5E~_{<)sEC$S;!FKFsyNI9t0-GHa9nK zGXt|LO{V{(^-$iwUybZ3P<@z_dlFQ*C?Vu{SmINj#Kp&>+L@V&6P!D7Bw1_!%q+cSCA&Xr_TRjI%2 zGWcy-ilF5D)IR(C)=VCu+&?`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E^=#p?=Y=&$!1TY2>x>N&7iTjY7-)v4?VpM(89Jgm$Q$7SRP8&bQbL|~cc z|9}EiC4B&y%#}@uYuRu=UA*i2Z8KFC&$!jzl9@$3E2oJzX$Eq5EQU05&%RFP-YH6B z<>+va^DcuTP)9~?i*X>p-D7N= z59A0|GwodidHMI*8SDXsPKh~|ip|M{$sSSnQ1#Nqtv9|?;RB-CP!3*)X+fHE^<@ZM zE{UKP$7xbSaC--to3`hRt`cuTR=fs$0206He+L6nyKgXfmPL^E`5{s!Q()w*y9-fz zo<9iY_k)x4J+v>l9y|K`iVWN2`rOc7qRCwDRYwHCNX61(H?l-Oo@n=jZQ`|pn&Njc zb!P_TI!?@VJTp^3n2^V1!V)qqF-ORA4m`89DG_Q(o)XSm%Egf eGLZ}Mv)e#Ke~#lTwhG(Bn}oTE6|%<2jqo4i#Rx?J diff --git a/xtcommerce-cardgate-master/plugins/cardgateidealqr/installer/cardgateidealqr.xml b/xtcommerce-cardgate-master/plugins/cardgateidealqr/installer/cardgateidealqr.xml deleted file mode 100755 index a31b207..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgateidealqr/installer/cardgateidealqr.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - iDEAL QR - payment - 1.0.0 - cardgateidealqr - http://cardgate.com - Zahlungsmodul iDEAL QR - cardgateidealqr.png - - cardgateidealqr - cardgateidealqr - - cardgateidealqr.html - - IDEAL QR - - - - IDEAL QR - - - - IDEAL QR - - - - - - - - - page_registry.php:bottom - - 1 - 1 - - - class.checkout.php:_getPayment - $v) { - if ($k != 'idealqr') { - unset($payment_data[$k]); - } - } - reset($payment_data); - } - ]]> - 1 - 1 - - - - class.checkout.php:_selectPayment_tpl_data - - 1 - 1 - - - - order_edit.php:display_data - - 0 - 1 - - - - - - - TEXT_PAYMENT_CARDGATE_IDEALQR - store - - IDEAL QR - - - IDEAL QR - - - IDEAL QR - - - - diff --git a/xtcommerce-cardgate-master/plugins/cardgateidealqr/installer/install.php b/xtcommerce-cardgate-master/plugins/cardgateidealqr/installer/install.php deleted file mode 100755 index 8a74265..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgateidealqr/installer/install.php +++ /dev/null @@ -1,37 +0,0 @@ -getMajorVersion() > 4} -{capture name="paymenttypes"} -
- {$payment_name} -
- -
-
-{/capture} -{/if} - -{if $plugin->getMajorVersion() <= 4} -{capture name="paymenttypes"} - - {form type=radio name=selected_payment value=$payment_code} - - {$payment_name} - -{/capture} -{/if} - -{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} -{literal} - -{/literal} - -
- -
-
-

- - {$smarty.capture.paymenttypes} -
-

-
-
- -
- -{elseif $plugin->getMajorVersion() > 4} -{$smarty.capture.paymenttypes} -{else} - - - - - - - - - - -
{$payment_name}{$payment_price.formated}
- - - - - - - - -
- {$smarty.capture.paymenttypes} -   - -
- -
-
- -{/if} -{/if} \ No newline at end of file diff --git a/xtcommerce-cardgate-master/plugins/cardgateklarna/classes/class.cardgateklarna.php b/xtcommerce-cardgate-master/plugins/cardgateklarna/classes/class.cardgateklarna.php deleted file mode 100755 index 65169a1..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgateklarna/classes/class.cardgateklarna.php +++ /dev/null @@ -1,59 +0,0 @@ -order_data['order_data']['payment_code'] == 'klarna') { - /** @global ADODB_mysql $db */ - global $db; - - $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); - if (count($rs)) - { - $cg_data = array_pop($rs); - if (strlen($cg_data['RESPONSEDATA'])) - { - $blacklist = array('last_order_id'); - $info = json_decode($cg_data['RESPONSEDATA']); - foreach ($info as $k => $v) - { - if (in_array($k, $blacklist)) - continue; - $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); - } - - } - } - -// if($rs->RecordCount()>0) { -// print "xxx"; -// foreach ($rs as $v) -// print_r($v); -// } - -} - diff --git a/xtcommerce-cardgate-master/plugins/cardgateklarna/images/cardgateklarna.png b/xtcommerce-cardgate-master/plugins/cardgateklarna/images/cardgateklarna.png deleted file mode 100755 index 4d3b982c552f1de42297b76701f0b5343675b787..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5235 zcmai22{@GN+aLSBhwPKJ5@VRLOoK3F$r{<0*(}M7WiS!RE+V9avJ_JGWJ$Ix9c15$ z$a2WOMb>Y0>VNuQ=X~GyUe~+b&;9$|zx%$Q=XtN|jWRO0%tX&i4*&p|bhHsBq&tRm zo}r~CT|vIg(WD!tlbXI708kRgaDb#Dy#vwOCi(z?pEv*z6bbCp{KKmv(wH*j7s zqO$N04;bnB#0(M!{%|3(AM8X_$ttU?b20^yz*N0nEJ_rY!7C zAh^RoAYWf!XMyr&ZgtfZs_l92_;%1V(uq`Yq82uPw7&P(Jkl3zRstQXqT#hu`S z#{o}xktn=3L0MS%B+!43pE}*#_4WS~3g`7RFH(jeBGMfMmX-mzxqrR(q;mAmy-f@{VXQ76J$T1O8t<_{omJqrKg*I0A|NuSr8PkRrG{ z;|X{#XS_QMEDKgrz$ikbP-t04DKJ<;K}rdYf=Veu9A&^zIYoIzh}^GOzmfeN3l926 z0e(!ozh=X)>ijL^BuNZOf*b;(q^Yi?r68xF4hCyNl$4+l4NXl&IfN!ePD`B>^e6A% z(BFdoHKy~=+Wn-}{QqcwgZ_io(9^}q1&6$W_&fA3)kugU3Ilb-k{TidmVzik<)n}p zIj9s$4vADk$zo74XqjKi|ApqaP$x4GMsguF2YIrbRKRf1KWxAGlN7)-Jh4au-qRG1 zzoDXbvP%Gsel-%Pp#hYY0YiXi^^s^7+(~!O{SfkBpr3qj(8=2UZ7u(`QT(uyb_x}G z67tusqe8!Sl|mN)V6oCcsF^xbE%VY5A2fR(jo&U>!mXr=iaKbsDv<~C3zrdr*};=~8Q{*QkS=#z(vZgVs zJ~0?s!tc7eZt_hJ3Kou(u1BZvX|w7@UQ?rGUUZMY!}hZ8u|`(M1DHwQXp~SpE3_T5 zr?frb*9%~`4`n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}``f7mv?+oBRBsT_X|UlPSzmHnTA@*YCu_%N@0) zoaA?FdR^T+LM}!{r(1sQ4x_weT~%Kyv(Gt8aRkmrUU|Sul?h;+;!zcQ@5T*AwYFitrS}Vbv6jm(c5R}<2U4IX1sBNuvOk3$ zEB0E`-ncLQOrcY7SG#35ng3Q>&Q7HBDI15#gyF?}H9cmt&x?FqlkBf2MY6fGyl*fB zUd{}9H(B+p;Uy8>Q@GJYSM+F}d#M(3V=h9BL0^7|xHmH?u!H8l7G=|z;4R)ujW?qu zlGme84OrM)`V1?wVlB!xzhqEdWMq-F7!fcp%{!=VZ5-W{9H+Cp)xe=qB(!VNu&#$) zo?bu7c=Uj1OmR4*)#rBUZB)WET0n*N8=!S6Ws@^ofXDgDSL!ol`(r&R-&r4j?0YdY z$1#Fa4w!6&18m0)WqNtj`O|K%5H<?H9lTSp0+Pi;#BRQ#U7MF8Sgn z%0eZgs6ufRjd$-}j`HBI46Yo`kXu{Zfd;(i`hMx@moH+5B97+#Os!&v%h#l>(sHd` zJQ@<~d~Jz$8!CJ)s%CJ6NM|pX1wDng=bnctrMTJL)lTIS`n1*XscfV_TYeb6*m4*W zOZK7cqK%J9!%UN!-ZWDkBGCih}G#8 zc(L{x=<395@qMy$BRCD!Cln*liCp7Ry`pv6iBML0-KgyABzK(6=KH(Pyw4S_77*i{ zG49TkS~>BXJy!DOn9a40b?fq3DA=>Wrv3@-@j0CwX6CT~Ezx-s6{zy}-Ihdenl!k` zBgxYZ)b1KMc9;zZ nB!0`>gLLQKQDHj3yG+{KWdUM}F1Pia{O{AzG(Z%pI|Tm^RCGHQ diff --git a/xtcommerce-cardgate-master/plugins/cardgateklarna/installer/cardgateklarna.xml b/xtcommerce-cardgate-master/plugins/cardgateklarna/installer/cardgateklarna.xml deleted file mode 100755 index 12c008a..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgateklarna/installer/cardgateklarna.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - Klarna - payment - 1.0.0 - cardgateklarna - http://cardgate.com - Zahlungsmodul Klarna - cardgateklarna.png - - cardgateklarna - cardgateklarna - - cardgateklarna.html - - Klarna - - - - Klarna - - - - Klarna - - - - - - - - - page_registry.php:bottom - - 1 - 1 - - - class.checkout.php:_getPayment - $v) { - if ($k != 'klarna') { - unset($payment_data[$k]); - } - } - reset($payment_data); - } - ]]> - 1 - 1 - - - - class.checkout.php:_selectPayment_tpl_data - - 1 - 1 - - - - order_edit.php:display_data - - 0 - 1 - - - - - - - TEXT_PAYMENT_CARDGATE_KLARNA - store - - Klarna - - - Klarna - - - Klarna - - - - diff --git a/xtcommerce-cardgate-master/plugins/cardgateklarna/installer/install.php b/xtcommerce-cardgate-master/plugins/cardgateklarna/installer/install.php deleted file mode 100755 index 8a74265..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgateklarna/installer/install.php +++ /dev/null @@ -1,37 +0,0 @@ -getMajorVersion() > 4} -{capture name="paymenttypes"} -
- {$payment_name} -
- -
-
-{/capture} -{/if} - -{if $plugin->getMajorVersion() <= 4} -{capture name="paymenttypes"} - - {form type=radio name=selected_payment value=$payment_code} - - {$payment_name} - -{/capture} -{/if} - -{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} -{literal} - -{/literal} - -
- -
-
-

- - {$smarty.capture.paymenttypes} -
-

-
-
- -
- -{elseif $plugin->getMajorVersion() > 4} -{$smarty.capture.paymenttypes} -{else} - - - - - - - - - - -
{$payment_name}{$payment_price.formated}
- - - - - - - - -
- {$smarty.capture.paymenttypes} -   - -
- -
-
- -{/if} -{/if} \ No newline at end of file diff --git a/xtcommerce-cardgate-master/plugins/cardgatepaypal/classes/class.cardgatepaypal.php b/xtcommerce-cardgate-master/plugins/cardgatepaypal/classes/class.cardgatepaypal.php deleted file mode 100755 index b920b20..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatepaypal/classes/class.cardgatepaypal.php +++ /dev/null @@ -1,59 +0,0 @@ -order_data['order_data']['payment_code'] == 'paypal') { - /** @global ADODB_mysql $db */ - global $db; - - $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); - if (count($rs)) - { - $cg_data = array_pop($rs); - if (strlen($cg_data['RESPONSEDATA'])) - { - $blacklist = array('last_order_id'); - $info = json_decode($cg_data['RESPONSEDATA']); - foreach ($info as $k => $v) - { - if (in_array($k, $blacklist)) - continue; - $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); - } - - } - } - -// if($rs->RecordCount()>0) { -// print "xxx"; -// foreach ($rs as $v) -// print_r($v); -// } - -} - diff --git a/xtcommerce-cardgate-master/plugins/cardgatepaypal/images/cardgatepaypal.png b/xtcommerce-cardgate-master/plugins/cardgatepaypal/images/cardgatepaypal.png deleted file mode 100755 index 8d265989f1da7b1c69f8ddef111e660301310e40..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3382 zcmV-64axF}P)?C#o7ljk-f`kMI$ALJM0fUJH0Rs*Q zDH6tjq@aBpjWp8i(#&Y~(Y&SammmFR1O{SUE|*Vry;ps^``)wM^WF0uN&)~t5+ESN z2ZTWMf(HV@jKuFoA_atuU;qJdQa2EU0P`?F1P#Ei)kFy4O%g?V01yQWre4TEPd~qI z%Z_%F&)P`<$Vuc>lop(J%FN|w%q=d=_1;MGcVW50^}E_%+uR~q)>46z3xbk@U{2Mv z<)_wGmlYBrX@dI%8puE(y{~iRe>NZRUI5OTKO=x5`_$Qe{BIt3DrpH*S};(6psdR! zmF5R`{ORYve9Z-pl*Fu8gsH_fxhW!#Oa>|Y&+HpnUqVpyaWtr8sE3|f*D)+70bZ2J z3ltf}Cyuu+TG4R()#sMvM4wO2bJF^(F(9+L38C!%AHK1-a|jUR=Qm8ZDXq3_+m}I% z%0LbpIthd z3f+A}M+cLJG!P1ek9oyH#HAQu24xVu_)hDCPp*}s$wMIoe6)gu5Yc_sqR3x^W6483 z!;vTAfz7Y2jP|w!zPr6S^14U7FrL2Uy7P*P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ate-master/plugins/cardgatepaypal/installer/cardgatepaypal.xml b/xtcommerce-cardgate-master/plugins/cardgatepaypal/installer/cardgatepaypal.xml deleted file mode 100755 index 5a5f3eb..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatepaypal/installer/cardgatepaypal.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - PayPal - payment - 1.0.0 - cardgatepaypal - http://cardgate.com - Zahlungsmodul PayPal - cardgatepaypal.png - - cardgatepaypal - cardgatepaypal - - cardgatepaypal.html - - PayPal - - - - PayPal - - - - PayPal - - - - - - - - - page_registry.php:bottom - - 1 - 1 - - - class.checkout.php:_getPayment - $v) { - if ($k != 'paypal') { - unset($payment_data[$k]); - } - } - reset($payment_data); - } - ]]> - 1 - 1 - - - - class.checkout.php:_selectPayment_tpl_data - - 1 - 1 - - - - order_edit.php:display_data - - 0 - 1 - - - - - - - TEXT_PAYMENT_CARDGATE_PAYPAL - store - - PayPal - - - PayPal - - - PayPal - - - - diff --git a/xtcommerce-cardgate-master/plugins/cardgatepaypal/installer/install.php b/xtcommerce-cardgate-master/plugins/cardgatepaypal/installer/install.php deleted file mode 100755 index 8a74265..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatepaypal/installer/install.php +++ /dev/null @@ -1,37 +0,0 @@ -getMajorVersion() > 4} -{capture name="paymenttypes"} -
- {$payment_name} -
- -
-
-{/capture} -{/if} - -{if $plugin->getMajorVersion() <= 4} -{capture name="paymenttypes"} - - {form type=radio name=selected_payment value=$payment_code} - - {$payment_name} - -{/capture} -{/if} - -{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} -{literal} - -{/literal} - -
- -
-
-

- - {$smarty.capture.paymenttypes} -
-

-
-
- -
- -{elseif $plugin->getMajorVersion() > 4} -{$smarty.capture.paymenttypes} -{else} - - - - - - - - - - -
{$payment_name}{$payment_price.formated}
- - - - - - - - -
- {$smarty.capture.paymenttypes} -   - -
- -
-
- -{/if} -{/if} \ No newline at end of file diff --git a/xtcommerce-cardgate-master/plugins/cardgatepaysafecard/classes/class.cardgatepaysafecard.php b/xtcommerce-cardgate-master/plugins/cardgatepaysafecard/classes/class.cardgatepaysafecard.php deleted file mode 100755 index 25edf8e..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatepaysafecard/classes/class.cardgatepaysafecard.php +++ /dev/null @@ -1,59 +0,0 @@ -ƒorder_data['order_data']['payment_code'] == 'paysafecard') { - /** @global ADODB_mysql $db */ - global $db; - - $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); - if (count($rs)) - { - $cg_data = array_pop($rs); - if (strlen($cg_data['RESPONSEDATA'])) - { - $blacklist = array('last_order_id'); - $info = json_decode($cg_data['RESPONSEDATA']); - foreach ($info as $k => $v) - { - if (in_array($k, $blacklist)) - continue; - $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); - } - - } - } - -// if($rs->RecordCount()>0) { -// print "xxx"; -// foreach ($rs as $v) -// print_r($v); -// } - -} - diff --git a/xtcommerce-cardgate-master/plugins/cardgatepaysafecard/images/cardgatepaysafecard.png b/xtcommerce-cardgate-master/plugins/cardgatepaysafecard/images/cardgatepaysafecard.png deleted file mode 100644 index 3a7d0bdb6a7a27227e0bd1af433bf70db9410bc3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5748 zcmb_g2|UyP|6eFqa-?!wt{kz=F)ZeqGZUkbl-WKQcG%`tsZf*AP|qa84APrv}U~4 zajapy-#?wA$oOD$H$WSJKshno)7aIFYcS3Xg9d?u0a8k@1X&{h_H1oA8;EJ9f2*mZ0VCO)0KwBbkWTFZdPj&@V0*Dlb zHVC8>fM9$j0(2}mfap!4Ap&%z<}?tD?@Td73OuJm_tKSeKwE>2$W#EVp`xw=l|piX z!C)OK-VK34nJmB=SGrOjbUFnAf%yCTtN5#_kg4tvn6|by1gZ*ARaItaDANK-bZme! zi6%WyvdDu1XgDf?LMM<(U?wltmF!E`m6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~Vn|A<&?%t-cRaoL5OVYVkb;rRq%cUKktdy2+(JdZ$iue}rV zf(~Z&H_7Tu3=Ms7aDLXxWg{?T%MeZq%sMrNgt~H!jB=RTZCVqB+Et!|jXC~8TE$%h zdeJ9ypEJ(D7WdUAC(`WpDybT)iM1z^y&fN2m1h$4L^#H$migbVxv>@MrlHH>{{V4Z B%j*CD diff --git a/xtcommerce-cardgate-master/plugins/cardgatepaysafecard/installer/cardgatepaysafecard.xml b/xtcommerce-cardgate-master/plugins/cardgatepaysafecard/installer/cardgatepaysafecard.xml deleted file mode 100755 index d2857a8..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatepaysafecard/installer/cardgatepaysafecard.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - Paysafecard - payment - 1.0.0 - cardgatepaysafecard - http://cardgate.com - Zahlungsmodul Paysafecard - cardgatepaysafecard.png - - cardgatepaysafecard - cardgatepaysafecard - - cardgatepaysafecard.html - - Paysafecard - - - - Paysafecard - - - - Paysafecard - - - - - - - - - page_registry.php:bottom - - 1 - 1 - - - class.checkout.php:_getPayment - $v) { - if ($k != 'paysafecard') { - unset($payment_data[$k]); - } - } - reset($payment_data); - } - ]]> - 1 - 1 - - - - class.checkout.php:_selectPayment_tpl_data - - 1 - 1 - - - - order_edit.php:display_data - - 0 - 1 - - - - - - - TEXT_PAYMENT_CARDGATE_PAYSAFECARD - store - - Paysafecard - - - Paysafecard - - - Paysafecard - - - - diff --git a/xtcommerce-cardgate-master/plugins/cardgatepaysafecard/installer/install.php b/xtcommerce-cardgate-master/plugins/cardgatepaysafecard/installer/install.php deleted file mode 100755 index 8a74265..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatepaysafecard/installer/install.php +++ /dev/null @@ -1,37 +0,0 @@ -getMajorVersion() > 4} -{capture name="paymenttypes"} -
- {$payment_name} -
- -
-
-{/capture} -{/if} - -{if $plugin->getMajorVersion() <= 4} -{capture name="paymenttypes"} - - {form type=radio name=selected_payment value=$payment_code} - - {$payment_name} - -{/capture} -{/if} - -{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} -{literal} - -{/literal} - -
- -
-
-

- - {$smarty.capture.paymenttypes} -
-

-
-
- -
- -{elseif $plugin->getMajorVersion() > 4} -{$smarty.capture.paymenttypes} -{else} - - - - - - - - - - -
{$payment_name}{$payment_price.formated}
- - - - - - - - -
- {$smarty.capture.paymenttypes} -   - -
-
-
- -{/if} -{/if} \ No newline at end of file diff --git a/xtcommerce-cardgate-master/plugins/cardgatepaysafecash/classes/class.cardgatepaysafecash.php b/xtcommerce-cardgate-master/plugins/cardgatepaysafecash/classes/class.cardgatepaysafecash.php deleted file mode 100755 index bfb5822..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatepaysafecash/classes/class.cardgatepaysafecash.php +++ /dev/null @@ -1,59 +0,0 @@ -order_data['order_data']['payment_code'] == 'paysafecash') { - /** @global ADODB_mysql $db */ - global $db; - - $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); - if (count($rs)) - { - $cg_data = array_pop($rs); - if (strlen($cg_data['RESPONSEDATA'])) - { - $blacklist = array('last_order_id'); - $info = json_decode($cg_data['RESPONSEDATA']); - foreach ($info as $k => $v) - { - if (in_array($k, $blacklist)) - continue; - $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); - } - - } - } - -// if($rs->RecordCount()>0) { -// print "xxx"; -// foreach ($rs as $v) -// print_r($v); -// } - -} - diff --git a/xtcommerce-cardgate-master/plugins/cardgatepaysafecash/images/cardgatepaysafecash.png b/xtcommerce-cardgate-master/plugins/cardgatepaysafecash/images/cardgatepaysafecash.png deleted file mode 100644 index 95949af6cfce7d38c933d3f27d05d102a6ac8dbc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2400 zcmY*bX*d*I8yTGkSLiMWXn>rB|BrO zG^y!8iRl$KmY&$GC?A2S<#5q zfd@HR<6kwhWL99q+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zahlungsmodul Paysafecash - cardgatepaysafecash.png - - cardgatepaysafecash - cardgatepaysafecash - - cardgatepaysafecash.html - - Paysafecash - - - - Paysafecash - - - - Paysafecash - - - - - - - - - page_registry.php:bottom - - 1 - 1 - - - class.checkout.php:_getPayment - $v) { - if ($k != 'paysafecash') { - unset($payment_data[$k]); - } - } - reset($payment_data); - } - ]]> - 1 - 1 - - - - class.checkout.php:_selectPayment_tpl_data - - 1 - 1 - - - - order_edit.php:display_data - - 0 - 1 - - - - - - - TEXT_PAYMENT_CARDGATE_PAYSAFECASH - store - - Paysafecash - - - Paysafecash - - - Paysafecash - - - - diff --git a/xtcommerce-cardgate-master/plugins/cardgatepaysafecash/installer/install.php b/xtcommerce-cardgate-master/plugins/cardgatepaysafecash/installer/install.php deleted file mode 100755 index 8a74265..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatepaysafecash/installer/install.php +++ /dev/null @@ -1,37 +0,0 @@ -getMajorVersion() > 4} -{capture name="paymenttypes"} -
- {$payment_name} -
- -
-
-{/capture} -{/if} - -{if $plugin->getMajorVersion() <= 4} -{capture name="paymenttypes"} - - {form type=radio name=selected_payment value=$payment_code} - - {$payment_name} - -{/capture} -{/if} - -{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} -{literal} - -{/literal} - -
- -
-
-

- - {$smarty.capture.paymenttypes} -
-

-
-
- -
- -{elseif $plugin->getMajorVersion() > 4} -{$smarty.capture.paymenttypes} -{else} - - - - - - - - - - -
{$payment_name}{$payment_price.formated}
- - - - - - - - -
- {$smarty.capture.paymenttypes} -   - -
- -
-
- -{/if} -{/if} \ No newline at end of file diff --git a/xtcommerce-cardgate-master/plugins/cardgateprzelewy24/classes/class.cardgateprzelewy24.php b/xtcommerce-cardgate-master/plugins/cardgateprzelewy24/classes/class.cardgateprzelewy24.php deleted file mode 100755 index f4fd4ff..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgateprzelewy24/classes/class.cardgateprzelewy24.php +++ /dev/null @@ -1,59 +0,0 @@ -order_data['order_data']['payment_code'] == 'przelewy24') { - /** @global ADODB_mysql $db */ - global $db; - - $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); - if (count($rs)) - { - $cg_data = array_pop($rs); - if (strlen($cg_data['RESPONSEDATA'])) - { - $blacklist = array('last_order_id'); - $info = json_decode($cg_data['RESPONSEDATA']); - foreach ($info as $k => $v) - { - if (in_array($k, $blacklist)) - continue; - $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); - } - - } - } - -// if($rs->RecordCount()>0) { -// print "xxx"; -// foreach ($rs as $v) -// print_r($v); -// } - -} - diff --git a/xtcommerce-cardgate-master/plugins/cardgateprzelewy24/images/cardgateprzelewy24.png b/xtcommerce-cardgate-master/plugins/cardgateprzelewy24/images/cardgateprzelewy24.png deleted file mode 100644 index 4abb6de87981ceddb6a85f14213a2cde1c9878b8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4102 zcmY*ccR1Wj+y3dIo(-!dVyzr4>}tVo?COply+!XEZNp;K5G`5|L?>EwqD9*XRbH4ZczPYZMXXc)J?)!P>kGZaiH_-o!nSqA^003q!O*NzQXmH;7 z=xNVKET1;}d7ySv)>8(6#uUb52b%LW#7Wag4*-G%0U#n80DhfA5vu^;F985+_5gs) z1^`ZMey5?r`NjpTrllVMFtYvb6hLl17XVOLVoWS>7J9l!Cm%1EgR_sL3k>gtJ!b=e z0v>rj^>V>EK=59k-hN0t3i>w#c|QLQ!=aGBDL4-l)I!eyqUz)80=W*8fk{Bo3=jxJ z!PnUpX{4s{@A2~$3hIu-VUcinU|=9DP#Wgr>jsxZAP{f~DY%rB_&Gz|FUT9`fEV}n z6Zl8ue{|Gb{G5C-SRBU38}eJ%!O_Pbhk`u!~XSAfd4lCKgs-4>EGyisb~fT_h~Q zyy>E^z*nYgHF;1X=2ZGkP|yRRl>w)&rW-TGtSu;- zsmr0w^4QXuo1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&r!aTEcbTjMk-?o;zzFNJC{k{JH!fc4# diff --git a/xtcommerce-cardgate-master/plugins/cardgateprzelewy24/installer/cardgateprzelewy24.xml b/xtcommerce-cardgate-master/plugins/cardgateprzelewy24/installer/cardgateprzelewy24.xml deleted file mode 100755 index d51617b..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgateprzelewy24/installer/cardgateprzelewy24.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - Przelewy24 - payment - 1.0.0 - cardgateprzelewy24 - http://cardgate.com - Zahlungsmodul Przelewy24 - cardgateprzelewy24.png - - cardgateprzelewy24 - cardgateprzelewy24 - - cardgateprzelewy24.html - - Przelewy24 - - - - Przelewy24 - - - - Przelewy24 - - - - - - - - - page_registry.php:bottom - - 1 - 1 - - - class.checkout.php:_getPayment - $v) { - if ($k != 'przelewy24') { - unset($payment_data[$k]); - } - } - reset($payment_data); - } - ]]> - 1 - 1 - - - - class.checkout.php:_selectPayment_tpl_data - - 1 - 1 - - - - order_edit.php:display_data - - 0 - 1 - - - - - - - TEXT_PAYMENT_CARDGATE_PRZELEWY24 - store - - Przelewy24 - - - Przelewy24 - - - Przelewy24 - - - - diff --git a/xtcommerce-cardgate-master/plugins/cardgateprzelewy24/installer/install.php b/xtcommerce-cardgate-master/plugins/cardgateprzelewy24/installer/install.php deleted file mode 100755 index 8a74265..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgateprzelewy24/installer/install.php +++ /dev/null @@ -1,37 +0,0 @@ -getMajorVersion() > 4} -{capture name="paymenttypes"} -
- {$payment_name} -
- -
-
-{/capture} -{/if} - -{if $plugin->getMajorVersion() <= 4} -{capture name="paymenttypes"} - - {form type=radio name=selected_payment value=$payment_code} - - {$payment_name} - -{/capture} -{/if} - -{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} -{literal} - -{/literal} - -
- -
-
-

- - {$smarty.capture.paymenttypes} -
-

-
-
- -
- -{elseif $plugin->getMajorVersion() > 4} -{$smarty.capture.paymenttypes} -{else} - - - - - - - - - - -
{$payment_name}{$payment_price.formated}
- - - - - - - - -
- {$smarty.capture.paymenttypes} -   - -
- -
-
- -{/if} -{/if} \ No newline at end of file diff --git a/xtcommerce-cardgate-master/plugins/cardgatesofortbanking/classes/class.cardgatesofortbanking.php b/xtcommerce-cardgate-master/plugins/cardgatesofortbanking/classes/class.cardgatesofortbanking.php deleted file mode 100755 index 8044d88..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatesofortbanking/classes/class.cardgatesofortbanking.php +++ /dev/null @@ -1,59 +0,0 @@ -order_data['order_data']['payment_code'] == 'sofortbanking') { - /** @global ADODB_mysql $db */ - global $db; - - $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); - if (count($rs)) - { - $cg_data = array_pop($rs); - if (strlen($cg_data['RESPONSEDATA'])) - { - $blacklist = array('last_order_id'); - $info = json_decode($cg_data['RESPONSEDATA']); - foreach ($info as $k => $v) - { - if (in_array($k, $blacklist)) - continue; - $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); - } - - } - } - -// if($rs->RecordCount()>0) { -// print "xxx"; -// foreach ($rs as $v) -// print_r($v); -// } - -} - diff --git a/xtcommerce-cardgate-master/plugins/cardgatesofortbanking/images/cardgatesofortbanking.png b/xtcommerce-cardgate-master/plugins/cardgatesofortbanking/images/cardgatesofortbanking.png deleted file mode 100755 index 8b5c6be27117f3810b72d464bd56d38dc0093cc1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2876 zcmV-C3&Zq@P)o8X`uNUCsdl0t>{nh_w_g8*^#2qm_0txfCIjn08iLV-f6`Zu4 z6dQ~Yci2f$cG)FE@WK*`iYUQl&mQ)2_MG4Q^pA56dvO;qW=*EwnVs3+@Ao|Kb9>+C z@*Xh;nwy&|O3KR@%5#&PmI?drjGxxMfY@cCcr3mGWb}Jae8NVKU5NI*;FWJtJSD>h z#9hE7!M-G{zWg5g#!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~Yil2sG%WEhS+e90 zCHJuR{6u1w8TWZ_Jul%tL1EYi@43+l+5ZtPKJymH2&Nnsb^1l$zO&Y?gZ^myl%nLbbBD z_v{1Sdk@6&!@(;91L-dS)y}zDW;R3OQx5Z-Ra-+@HtF%dVeSSNB5B@G+6N{`#eNNcKs|S|Ru>=mlWEndNR= zxY{L{sF;DQlrX=$mE zims5dQ@s?ES3iVrWP;$eTxHk!Z$N-Wixyq#oVyx=8P3_;lAg+B+*IenniqtOra_4OSpE33F6oemEa7js!AlQ|j$#aF)d)`|T!H8u5_ zOlGfh#n%LZu928##;m=2pSv9{a5M88#P8BiPQMo7@p!bXEcPGd27*fPU)j5N@9y_g ahyMdWcFX*YW1c|(0000 - - SofortBanking - payment - 1.0.0 - cardgatesofortbanking - http://cardgate.com - Zahlungsmodul SofortBanking - cardgatesofortbanking.png - - cardgatesofortbanking - cardgatesofortbanking - - cardgatesofortbanking.html - - SOFORT Überweisung - - - - SofortBanking - - - - SofortBanking - - - - - - - - - page_registry.php:bottom - - 1 - 1 - - - class.checkout.php:_getPayment - $v) { - if ($k != 'sofortbanking') { - unset($payment_data[$k]); - } - } - reset($payment_data); - } - ]]> - 1 - 1 - - - - class.checkout.php:_selectPayment_tpl_data - - 1 - 1 - - - - order_edit.php:display_data - - 0 - 1 - - - - - - - TEXT_PAYMENT_CARDGATE_SOFORTBANKING - store - - SOFORT Überweisung (PIN/TAN) - - - SOFORT Banking (PIN/TAN) - - - SOFORT Banking (PIN/TAN) - - - - diff --git a/xtcommerce-cardgate-master/plugins/cardgatesofortbanking/installer/install.php b/xtcommerce-cardgate-master/plugins/cardgatesofortbanking/installer/install.php deleted file mode 100755 index 8a74265..0000000 --- a/xtcommerce-cardgate-master/plugins/cardgatesofortbanking/installer/install.php +++ /dev/null @@ -1,37 +0,0 @@ -getMajorVersion() > 4} -{capture name="paymenttypes"} -
- {$payment_name} -
- -
-
-{/capture} -{/if} - -{if $plugin->getMajorVersion() <= 4} -{capture name="paymenttypes"} - - {form type=radio name=selected_payment value=$payment_code} - - {$payment_name} - -{/capture} -{/if} - -{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} -{literal} - -{/literal} - -
- -
-
-

- - {$smarty.capture.paymenttypes} -
-

-
-
- -
- -{elseif $plugin->getMajorVersion() > 4} -{$smarty.capture.paymenttypes} -{else} - - - - - - - - - - -
{$payment_name}{$payment_price.formated}
- - - - - - - - -
- {$smarty.capture.paymenttypes} -   - -
- -
-
- -{/if} -{/if} \ No newline at end of file diff --git a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgateafterpay/cardgateafterpay.html b/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgateafterpay/cardgateafterpay.html deleted file mode 100644 index 2122716..0000000 --- a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgateafterpay/cardgateafterpay.html +++ /dev/null @@ -1,39 +0,0 @@ - -
  • - {$payment_name} -
  • - -
  • -
    - -
    - -
    -

    {$payment_desc}

    -

    -
  • \ No newline at end of file diff --git a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatebancontact/cardgatebancontact.html b/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatebancontact/cardgatebancontact.html deleted file mode 100644 index 2122716..0000000 --- a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatebancontact/cardgatebancontact.html +++ /dev/null @@ -1,39 +0,0 @@ - -
  • - {$payment_name} -
  • - -
  • -
    - -
    - -
    -

    {$payment_desc}

    -

    -
  • \ No newline at end of file diff --git a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatebanktransfer/cardgatebanktransfer.html b/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatebanktransfer/cardgatebanktransfer.html deleted file mode 100644 index 2122716..0000000 --- a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatebanktransfer/cardgatebanktransfer.html +++ /dev/null @@ -1,39 +0,0 @@ - -
  • - {$payment_name} -
  • - -
  • -
    - -
    - -
    -

    {$payment_desc}

    -

    -
  • \ No newline at end of file diff --git a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatebitcoin/cardgatebitcoin.html b/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatebitcoin/cardgatebitcoin.html deleted file mode 100644 index 2122716..0000000 --- a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatebitcoin/cardgatebitcoin.html +++ /dev/null @@ -1,39 +0,0 @@ - -
  • - {$payment_name} -
  • - -
  • -
    - -
    - -
    -

    {$payment_desc}

    -

    -
  • \ No newline at end of file diff --git a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatecreditcard/cardgatecreditcard.html b/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatecreditcard/cardgatecreditcard.html deleted file mode 100644 index 2122716..0000000 --- a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatecreditcard/cardgatecreditcard.html +++ /dev/null @@ -1,39 +0,0 @@ - -
  • - {$payment_name} -
  • - -
  • -
    - -
    - -
    -

    {$payment_desc}

    -

    -
  • \ No newline at end of file diff --git a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatedirectdebit/cardgatedirectdebit.html b/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatedirectdebit/cardgatedirectdebit.html deleted file mode 100644 index 2122716..0000000 --- a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatedirectdebit/cardgatedirectdebit.html +++ /dev/null @@ -1,39 +0,0 @@ - -
  • - {$payment_name} -
  • - -
  • -
    - -
    - -
    -

    {$payment_desc}

    -

    -
  • \ No newline at end of file diff --git a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgategiropay/cardgategiropay.html b/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgategiropay/cardgategiropay.html deleted file mode 100644 index b5e0e90..0000000 --- a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgategiropay/cardgategiropay.html +++ /dev/null @@ -1,39 +0,0 @@ - -
  • - {$payment_name} -
  • - -
  • -
    - -
    - -
    -

    {$payment_desc}

    -

    -
  • diff --git a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgateideal/cardgateideal.html b/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgateideal/cardgateideal.html deleted file mode 100644 index 7a1f121..0000000 --- a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgateideal/cardgateideal.html +++ /dev/null @@ -1,54 +0,0 @@ - -
  • - {$payment_name} -
  • - -
  • -
    - - -
      -
    • - -
    • - -
    -
    - -
    -

    {$payment_desc}

    -

    -
  • \ No newline at end of file diff --git a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgateklarna/cardgateklarna.html b/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgateklarna/cardgateklarna.html deleted file mode 100644 index 2122716..0000000 --- a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgateklarna/cardgateklarna.html +++ /dev/null @@ -1,39 +0,0 @@ - -
  • - {$payment_name} -
  • - -
  • -
    - -
    - -
    -

    {$payment_desc}

    -

    -
  • \ No newline at end of file diff --git a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatepaypal/cardgatepaypal.html b/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatepaypal/cardgatepaypal.html deleted file mode 100644 index 2122716..0000000 --- a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatepaypal/cardgatepaypal.html +++ /dev/null @@ -1,39 +0,0 @@ - -
  • - {$payment_name} -
  • - -
  • -
    - -
    - -
    -

    {$payment_desc}

    -

    -
  • \ No newline at end of file diff --git a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatepaysafecard/cardgatepaysafecard.html b/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatepaysafecard/cardgatepaysafecard.html deleted file mode 100644 index 2122716..0000000 --- a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatepaysafecard/cardgatepaysafecard.html +++ /dev/null @@ -1,39 +0,0 @@ - -
  • - {$payment_name} -
  • - -
  • -
    - -
    - -
    -

    {$payment_desc}

    -

    -
  • \ No newline at end of file diff --git a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgateprzelewy24/cardgateprzelewy24.html b/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgateprzelewy24/cardgateprzelewy24.html deleted file mode 100644 index 2122716..0000000 --- a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgateprzelewy24/cardgateprzelewy24.html +++ /dev/null @@ -1,39 +0,0 @@ - -
  • - {$payment_name} -
  • - -
  • -
    - -
    - -
    -

    {$payment_desc}

    -

    -
  • \ No newline at end of file diff --git a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatesofortbanking/cardgatesofortbanking.html b/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatesofortbanking/cardgatesofortbanking.html deleted file mode 100644 index 2122716..0000000 --- a/xtcommerce-cardgate-master/templates/xt_mobile/plugins/cardgatesofortbanking/cardgatesofortbanking.html +++ /dev/null @@ -1,39 +0,0 @@ - -
  • - {$payment_name} -
  • - -
  • -
    - -
    - -
    -

    {$payment_desc}

    -

    -
  • \ No newline at end of file diff --git a/xtcommerce-cardgate-master/templates/xt_responsive/xtCore/pages/cardgate_checkout.html b/xtcommerce-cardgate-master/templates/xt_responsive/xtCore/pages/cardgate_checkout.html deleted file mode 100644 index 518c014..0000000 --- a/xtcommerce-cardgate-master/templates/xt_responsive/xtCore/pages/cardgate_checkout.html +++ /dev/null @@ -1,78 +0,0 @@ -{* - * Shop System Plugins - Terms of Use - * - * These plugins are offered by CardGate - * - * They have been tested and approved for full functionality in the standard - * configuration - * (status on delivery) of the corresponding shop system. They are under - * General Public License Version 2 (GPLv2) and can be used, developed and - * passed on to third parties under the same terms. - * - * However, CardGate does not provide any guarantee or accept any liability - * for any errors occurring when used in an enhanced, customized shop system - * configuration. - * - * Operation in an enhanced, customized configuration is at your own risk and - * requires a comprehensive test phase by the user of the plugin. - * - * Customers use the plugins at their own risk. CardGate does not guarantee - * their full functionality neither does CardGate assume liability for any - * disadvantages related to the use of the plugins. Additionally, CardGate - * does not guarantee the full functionality for customized shop systems or - * installed plugins of other vendors of plugins within the same shop system. - * - * Customers are responsible for testing the plugin's functionality before - * starting productive operation. - * - * By installing the plugin into the shop system the customer agrees to these - * terms of use. Please do not use the plugin if you do not agree to these - * terms of use. -*} - -
    -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    - {$message} - - {if $page_action == failure} - {include file="$selected_template/xtCore/pages/checkout/subpage_cardgate_failure.html" type="tpl_include"} - {/if} - - {if $page_action == cancel} - {include file="$selected_template/xtCore/pages/checkout/subpage_cardgate_cancel.html" type="tpl_include"} - {/if} - - {if $page_action == success} - {include file="$selected_template/xtCore/pages/checkout/subpage_cardgate_success.html" type="tpl_include"} - {/if} - - {if $page_action == pending} - {include file="$selected_template/xtCore/pages/checkout/subpage_cardgate_pending.html" type="tpl_include"} - {/if} -
    \ No newline at end of file diff --git a/xtcommerce-cardgate-master/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_cancel.html b/xtcommerce-cardgate-master/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_cancel.html deleted file mode 100644 index b5fd8ba..0000000 --- a/xtcommerce-cardgate-master/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_cancel.html +++ /dev/null @@ -1,43 +0,0 @@ -{* - * Shop System Plugins - Terms of Use - * - * These plugins are offered by CardGate - * - * They have been tested and approved for full functionality in the standard - * configuration - * (status on delivery) of the corresponding shop system. They are under - * General Public License Version 2 (GPLv2) and can be used, developed and - * passed on to third parties under the same terms. - * - * However, CardGate does not provide any guarantee or accept any liability - * for any errors occurring when used in an enhanced, customized shop system - * configuration. - * - * Operation in an enhanced, customized configuration is at your own risk and - * requires a comprehensive test phase by the user of the plugin. - * - * Customers use the plugins at their own risk. CardGate does not guarantee - * their full functionality neither does CardGate assume liability for any - * disadvantages related to the use of the plugins. Additionally, CardGate - * does not guarantee the full functionality for customized shop systems or - * installed plugins of other vendors of plugins within the same shop system. - * - * Customers are responsible for testing the plugin's functionality before - * starting productive operation. - * - * By installing the plugin into the shop system the customer agrees to these - * terms of use. Please do not use the plugin if you do not agree to these - * terms of use! -*} - -
    -

    - - {txt key=TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_CANCEL} -

    -

    {txt key=TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_CANCEL_DESC}

    - -

    {txt key=BUTTON_NEXT}

    - - {hook key=checkout_success_tpl} -
    \ No newline at end of file diff --git a/xtcommerce-cardgate-master/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_failure.html b/xtcommerce-cardgate-master/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_failure.html deleted file mode 100644 index 09d1698..0000000 --- a/xtcommerce-cardgate-master/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_failure.html +++ /dev/null @@ -1,47 +0,0 @@ -{* - * Shop System Plugins - Terms of Use - * - * These plugins are offered by CardGate - * - * They have been tested and approved for full functionality in the standard - * configuration - * (status on delivery) of the corresponding shop system. They are under - * General Public License Version 2 (GPLv2) and can be used, developed and - * passed on to third parties under the same terms. - * - * However, CardGate does not provide any guarantee or accept any liability - * for any errors occurring when used in an enhanced, customized shop system - * configuration. - * - * Operation in an enhanced, customized configuration is at your own risk and - * requires a comprehensive test phase by the user of the plugin. - * - * Customers use the plugins at their own risk. CardGate does not guarantee - * their full functionality neither does CardGate assume liability for any - * disadvantages related to the use of the plugins. Additionally, CardGate - * does not guarantee the full functionality for customized shop systems or - * installed plugins of other vendors of plugins within the same shop system. - * - * Customers are responsible for testing the plugin's functionality before - * starting productive operation. - * - * By installing the plugin into the shop system the customer agrees to these - * terms of use. Please do not use the plugin if you do not agree to these - * terms of use! -*} - -
    -

    - - {txt key=TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_FAIL} -

    -

    {txt key=TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_FAIL_DESC}

    -

    {foreach name=errors item=msg_item from=$messages} -    - {$msg_item.message} {if $msg_item.param!=''} ({$msg_item.param}) {/if}
    - {/foreach} -

    - -

    {txt key=BUTTON_NEXT}

    - - {hook key=checkout_success_tpl} -
    \ No newline at end of file diff --git a/xtcommerce-cardgate-master/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_pending.html b/xtcommerce-cardgate-master/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_pending.html deleted file mode 100644 index 7a75419..0000000 --- a/xtcommerce-cardgate-master/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_pending.html +++ /dev/null @@ -1,43 +0,0 @@ -{* - * Shop System Plugins - Terms of Use - * - * These plugins are offered by CardGate - * - * They have been tested and approved for full functionality in the standard - * configuration - * (status on delivery) of the corresponding shop system. They are under - * General Public License Version 2 (GPLv2) and can be used, developed and - * passed on to third parties under the same terms. - * - * However, CardGate does not provide any guarantee or accept any liability - * for any errors occurring when used in an enhanced, customized shop system - * configuration. - * - * Operation in an enhanced, customized configuration is at your own risk and - * requires a comprehensive test phase by the user of the plugin. - * - * Customers use the plugins at their own risk. CardGate does not guarantee - * their full functionality neither does CardGate assume liability for any - * disadvantages related to the use of the plugins. Additionally, CardGate - * does not guarantee the full functionality for customized shop systems or - * installed plugins of other vendors of plugins within the same shop system. - * - * Customers are responsible for testing the plugin's functionality before - * starting productive operation. - * - * By installing the plugin into the shop system the customer agrees to these - * terms of use. Please do not use the plugin if you do not agree to these - * terms of use! -*} - -
    -

    - - {txt key=TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_PENDING} -

    -

    {txt key=TEXT_CARDGATE_CHECKOUT_PENDING_DESC}

    - -

    {txt key=BUTTON_NEXT}

    - - {hook key=checkout_success_tpl} -
    \ No newline at end of file diff --git a/xtcommerce-cardgate-master/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_success.html b/xtcommerce-cardgate-master/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_success.html deleted file mode 100644 index 2c71402..0000000 --- a/xtcommerce-cardgate-master/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_success.html +++ /dev/null @@ -1,45 +0,0 @@ -{* - * Shop System Plugins - Terms of Use - * - * These plugins are offered by CardGate - * - * They have been tested and approved for full functionality in the standard - * configuration - * (status on delivery) of the corresponding shop system. They are under - * General Public License Version 2 (GPLv2) and can be used, developed and - * passed on to third parties under the same terms. - * - * However, CardGate does not provide any guarantee or accept any liability - * for any errors occurring when used in an enhanced, customized shop system - * configuration. - * - * Operation in an enhanced, customized configuration is at your own risk and - * requires a comprehensive test phase by the user of the plugin. - * - * Customers use the plugins at their own risk. CardGate does not guarantee - * their full functionality neither does CardGate assume liability for any - * disadvantages related to the use of the plugins. Additionally, CardGate - * does not guarantee the full functionality for customized shop systems or - * installed plugins of other vendors of plugins within the same shop system. - * - * Customers are responsible for testing the plugin's functionality before - * starting productive operation. - * - * By installing the plugin into the shop system the customer agrees to these - * terms of use. Please do not use the plugin if you do not agree to these - * terms of use! - * -*} - -
    -

    - - {txt key=TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_SUCCESS} -

    -

    {txt key=TEXT_CARDGATE_CHECKOUT_SUCCESS_DESC}

    -

    {txt key=TEXT_CARDGATE_CHECKOUT_SUCCESS_THANKS}

    - -

    {txt key=BUTTON_NEXT}

    - - {hook key=checkout_success_tpl} -
    \ No newline at end of file From bc0fdf39f31011c6b680052516e4e3c3149517f6 Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 26 Jul 2019 12:34:07 +0200 Subject: [PATCH 3/9] Changed directory structure. --- .gitignore | 37 ++++----- .../xtCore/pages/cardgate_checkout.html | 78 +++++++++++++++++++ .../checkout/subpage_cardgate_cancel.html | 43 ++++++++++ .../checkout/subpage_cardgate_failure.html | 47 +++++++++++ .../checkout/subpage_cardgate_pending.html | 43 ++++++++++ .../checkout/subpage_cardgate_success.html | 45 +++++++++++ 6 files changed, 275 insertions(+), 18 deletions(-) create mode 100644 templates/xt_responsive/xtCore/pages/cardgate_checkout.html create mode 100644 templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_cancel.html create mode 100644 templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_failure.html create mode 100644 templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_pending.html create mode 100644 templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_success.html diff --git a/.gitignore b/.gitignore index 5f62049..8d57072 100644 --- a/.gitignore +++ b/.gitignore @@ -1,25 +1,26 @@ * +!.gitignore !cardgate !plugins plugins/* -!cardgate -!cardgateafterpay -!cardgatebancontact -!cardgatebanktransfer -!cardgatebillink -!cardgatebitcoin -!cardgatecreditcard -!cardgatedirectdebit -!cardgategiftcard -!cardgategiropay -!cardgateideal -!cardgateidealqr -!cardgateklarna -!cardgatepaypal -!cardgatepaysafecard -!cardgatepaysafecash -!cardgateprzlewy24 -!cardgatesofortbanking +!plugins/cardgate +!plugins/cardgateafterpay +!plugins/cardgatebancontact +!plugins/cardgatebanktransfer +!plugins/cardgatebillink +!plugins/cardgatebitcoin +!plugins/cardgatecreditcard +!plugins/cardgatedirectdebit +!plugins/cardgategiftcard +!plugins/cardgategiropay +!plugins/cardgateideal +!plugins/cardgateidealqr +!plugins/cardgateklarna +!plugins/cardgatepaypal +!plugins/cardgatepaysafecard +!plugins/cardgatepaysafecash +!plugins/cardgateprzlewy24 +!plugins/cardgatesofortbanking !templates templates/* !templates/xt_default diff --git a/templates/xt_responsive/xtCore/pages/cardgate_checkout.html b/templates/xt_responsive/xtCore/pages/cardgate_checkout.html new file mode 100644 index 0000000..518c014 --- /dev/null +++ b/templates/xt_responsive/xtCore/pages/cardgate_checkout.html @@ -0,0 +1,78 @@ +{* + * Shop System Plugins - Terms of Use + * + * These plugins are offered by CardGate + * + * They have been tested and approved for full functionality in the standard + * configuration + * (status on delivery) of the corresponding shop system. They are under + * General Public License Version 2 (GPLv2) and can be used, developed and + * passed on to third parties under the same terms. + * + * However, CardGate does not provide any guarantee or accept any liability + * for any errors occurring when used in an enhanced, customized shop system + * configuration. + * + * Operation in an enhanced, customized configuration is at your own risk and + * requires a comprehensive test phase by the user of the plugin. + * + * Customers use the plugins at their own risk. CardGate does not guarantee + * their full functionality neither does CardGate assume liability for any + * disadvantages related to the use of the plugins. Additionally, CardGate + * does not guarantee the full functionality for customized shop systems or + * installed plugins of other vendors of plugins within the same shop system. + * + * Customers are responsible for testing the plugin's functionality before + * starting productive operation. + * + * By installing the plugin into the shop system the customer agrees to these + * terms of use. Please do not use the plugin if you do not agree to these + * terms of use. +*} + +
    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + {$message} + + {if $page_action == failure} + {include file="$selected_template/xtCore/pages/checkout/subpage_cardgate_failure.html" type="tpl_include"} + {/if} + + {if $page_action == cancel} + {include file="$selected_template/xtCore/pages/checkout/subpage_cardgate_cancel.html" type="tpl_include"} + {/if} + + {if $page_action == success} + {include file="$selected_template/xtCore/pages/checkout/subpage_cardgate_success.html" type="tpl_include"} + {/if} + + {if $page_action == pending} + {include file="$selected_template/xtCore/pages/checkout/subpage_cardgate_pending.html" type="tpl_include"} + {/if} +
    \ No newline at end of file diff --git a/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_cancel.html b/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_cancel.html new file mode 100644 index 0000000..b5fd8ba --- /dev/null +++ b/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_cancel.html @@ -0,0 +1,43 @@ +{* + * Shop System Plugins - Terms of Use + * + * These plugins are offered by CardGate + * + * They have been tested and approved for full functionality in the standard + * configuration + * (status on delivery) of the corresponding shop system. They are under + * General Public License Version 2 (GPLv2) and can be used, developed and + * passed on to third parties under the same terms. + * + * However, CardGate does not provide any guarantee or accept any liability + * for any errors occurring when used in an enhanced, customized shop system + * configuration. + * + * Operation in an enhanced, customized configuration is at your own risk and + * requires a comprehensive test phase by the user of the plugin. + * + * Customers use the plugins at their own risk. CardGate does not guarantee + * their full functionality neither does CardGate assume liability for any + * disadvantages related to the use of the plugins. Additionally, CardGate + * does not guarantee the full functionality for customized shop systems or + * installed plugins of other vendors of plugins within the same shop system. + * + * Customers are responsible for testing the plugin's functionality before + * starting productive operation. + * + * By installing the plugin into the shop system the customer agrees to these + * terms of use. Please do not use the plugin if you do not agree to these + * terms of use! +*} + +
    +

    + + {txt key=TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_CANCEL} +

    +

    {txt key=TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_CANCEL_DESC}

    + +

    {txt key=BUTTON_NEXT}

    + + {hook key=checkout_success_tpl} +
    \ No newline at end of file diff --git a/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_failure.html b/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_failure.html new file mode 100644 index 0000000..09d1698 --- /dev/null +++ b/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_failure.html @@ -0,0 +1,47 @@ +{* + * Shop System Plugins - Terms of Use + * + * These plugins are offered by CardGate + * + * They have been tested and approved for full functionality in the standard + * configuration + * (status on delivery) of the corresponding shop system. They are under + * General Public License Version 2 (GPLv2) and can be used, developed and + * passed on to third parties under the same terms. + * + * However, CardGate does not provide any guarantee or accept any liability + * for any errors occurring when used in an enhanced, customized shop system + * configuration. + * + * Operation in an enhanced, customized configuration is at your own risk and + * requires a comprehensive test phase by the user of the plugin. + * + * Customers use the plugins at their own risk. CardGate does not guarantee + * their full functionality neither does CardGate assume liability for any + * disadvantages related to the use of the plugins. Additionally, CardGate + * does not guarantee the full functionality for customized shop systems or + * installed plugins of other vendors of plugins within the same shop system. + * + * Customers are responsible for testing the plugin's functionality before + * starting productive operation. + * + * By installing the plugin into the shop system the customer agrees to these + * terms of use. Please do not use the plugin if you do not agree to these + * terms of use! +*} + +
    +

    + + {txt key=TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_FAIL} +

    +

    {txt key=TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_FAIL_DESC}

    +

    {foreach name=errors item=msg_item from=$messages} +    - {$msg_item.message} {if $msg_item.param!=''} ({$msg_item.param}) {/if}
    + {/foreach} +

    + +

    {txt key=BUTTON_NEXT}

    + + {hook key=checkout_success_tpl} +
    \ No newline at end of file diff --git a/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_pending.html b/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_pending.html new file mode 100644 index 0000000..7a75419 --- /dev/null +++ b/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_pending.html @@ -0,0 +1,43 @@ +{* + * Shop System Plugins - Terms of Use + * + * These plugins are offered by CardGate + * + * They have been tested and approved for full functionality in the standard + * configuration + * (status on delivery) of the corresponding shop system. They are under + * General Public License Version 2 (GPLv2) and can be used, developed and + * passed on to third parties under the same terms. + * + * However, CardGate does not provide any guarantee or accept any liability + * for any errors occurring when used in an enhanced, customized shop system + * configuration. + * + * Operation in an enhanced, customized configuration is at your own risk and + * requires a comprehensive test phase by the user of the plugin. + * + * Customers use the plugins at their own risk. CardGate does not guarantee + * their full functionality neither does CardGate assume liability for any + * disadvantages related to the use of the plugins. Additionally, CardGate + * does not guarantee the full functionality for customized shop systems or + * installed plugins of other vendors of plugins within the same shop system. + * + * Customers are responsible for testing the plugin's functionality before + * starting productive operation. + * + * By installing the plugin into the shop system the customer agrees to these + * terms of use. Please do not use the plugin if you do not agree to these + * terms of use! +*} + +
    +

    + + {txt key=TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_PENDING} +

    +

    {txt key=TEXT_CARDGATE_CHECKOUT_PENDING_DESC}

    + +

    {txt key=BUTTON_NEXT}

    + + {hook key=checkout_success_tpl} +
    \ No newline at end of file diff --git a/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_success.html b/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_success.html new file mode 100644 index 0000000..2c71402 --- /dev/null +++ b/templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_success.html @@ -0,0 +1,45 @@ +{* + * Shop System Plugins - Terms of Use + * + * These plugins are offered by CardGate + * + * They have been tested and approved for full functionality in the standard + * configuration + * (status on delivery) of the corresponding shop system. They are under + * General Public License Version 2 (GPLv2) and can be used, developed and + * passed on to third parties under the same terms. + * + * However, CardGate does not provide any guarantee or accept any liability + * for any errors occurring when used in an enhanced, customized shop system + * configuration. + * + * Operation in an enhanced, customized configuration is at your own risk and + * requires a comprehensive test phase by the user of the plugin. + * + * Customers use the plugins at their own risk. CardGate does not guarantee + * their full functionality neither does CardGate assume liability for any + * disadvantages related to the use of the plugins. Additionally, CardGate + * does not guarantee the full functionality for customized shop systems or + * installed plugins of other vendors of plugins within the same shop system. + * + * Customers are responsible for testing the plugin's functionality before + * starting productive operation. + * + * By installing the plugin into the shop system the customer agrees to these + * terms of use. Please do not use the plugin if you do not agree to these + * terms of use! + * +*} + +
    +

    + + {txt key=TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_SUCCESS} +

    +

    {txt key=TEXT_CARDGATE_CHECKOUT_SUCCESS_DESC}

    +

    {txt key=TEXT_CARDGATE_CHECKOUT_SUCCESS_THANKS}

    + +

    {txt key=BUTTON_NEXT}

    + + {hook key=checkout_success_tpl} +
    \ No newline at end of file From cd14e05eaec38884eb624f8356b2799eebb4793b Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 26 Jul 2019 13:04:04 +0200 Subject: [PATCH 4/9] Changed directory structure. --- .gitignore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8d57072..5a42d9b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ * !.gitignore -!cardgate -!plugins +!cardgate/ +!plugins/ plugins/* !plugins/cardgate !plugins/cardgateafterpay From 198338f598b26b66d31db44b76a82534982b9123 Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 26 Jul 2019 13:11:14 +0200 Subject: [PATCH 5/9] Changed directory structure. --- .gitignore | 84 -- .../classes/cardgate-clientlib-php/init.php | 5 + .../cardgate-clientlib-php/src/Address.php | 161 ++++ .../cardgate-clientlib-php/src/Autoloader.php | 58 ++ .../cardgate-clientlib-php/src/Cart.php | 73 ++ .../cardgate-clientlib-php/src/Client.php | 576 +++++++++++++ .../cardgate-clientlib-php/src/Consumer.php | 96 +++ .../cardgate-clientlib-php/src/Entity.php | 122 +++ .../cardgate-clientlib-php/src/Exception.php | 68 ++ .../cardgate-clientlib-php/src/Item.php | 227 +++++ .../cardgate-clientlib-php/src/Method.php | 271 ++++++ .../src/Subscription.php | 514 ++++++++++++ .../src/Transaction.php | 793 ++++++++++++++++++ .../src/resource/Base.php | 54 ++ .../src/resource/Consumers.php | 47 ++ .../src/resource/Methods.php | 81 ++ .../src/resource/Subscriptions.php | 115 +++ .../src/resource/Transactions.php | 169 ++++ .../src/resource/Version.php | 68 ++ cardgate/classes/cardgate.php | 446 ++++++++++ cardgate/installer/install.php | 63 ++ plugins/cardgate/classes/class.cardgate.php | 397 +++++++++ plugins/cardgate/images/cg_logo.png | Bin 0 -> 8866 bytes plugins/cardgate/installer/cardgate.xml | 551 ++++++++++++ plugins/cardgate/installer/install.php | 37 + plugins/cardgate/pages/cardgate_checkout.php | 226 +++++ plugins/cardgate/templates/cardgate.html | 138 +++ .../classes/class.cardgateafterpay.php | 59 ++ .../hooks/checkout_selectpayment_tpl_data.php | 36 + .../hooks/order_edit_display_data.php | 65 ++ .../images/cardgateafterpay.png | Bin 0 -> 2871 bytes .../installer/cardgateafterpay.xml | 94 +++ .../cardgateafterpay/installer/install.php | 37 + .../templates/cardgateafterpay.html | 138 +++ .../classes/class.cardgatebancontact.php | 59 ++ .../hooks/checkout_selectpayment_tpl_data.php | 36 + .../hooks/order_edit_display_data.php | 65 ++ .../images/cardgatebancontact.png | Bin 0 -> 2023 bytes .../installer/cardgatebancontact.xml | 94 +++ .../cardgatebancontact/installer/install.php | 37 + .../templates/cardgatebancontact.html | 138 +++ .../classes/class.cardgatebanktransfer.php | 59 ++ .../hooks/checkout_selectpayment_tpl_data.php | 36 + .../hooks/order_edit_display_data.php | 65 ++ .../images/cardgatebanktransfer.png | Bin 0 -> 3208 bytes .../installer/cardgatebanktransfer.xml | 94 +++ .../installer/install.php | 37 + .../templates/cardgatebanktransfer.html | 138 +++ .../classes/class.cardgatebillink.php | 59 ++ .../hooks/checkout_selectpayment_tpl_data.php | 36 + .../hooks/order_edit_display_data.php | 65 ++ .../images/cardgatebillink.png | Bin 0 -> 4679 bytes .../installer/cardgatebillink.xml | 94 +++ plugins/cardgatebillink/installer/install.php | 37 + .../templates/cardgatebillink.html | 138 +++ .../classes/class.cardgatebitcoin.php | 59 ++ .../hooks/checkout_selectpayment_tpl_data.php | 36 + .../hooks/order_edit_display_data.php | 65 ++ .../images/cardgatebitcoin.png | Bin 0 -> 3090 bytes .../installer/cardgatebitcoin.xml | 94 +++ plugins/cardgatebitcoin/installer/install.php | 37 + .../templates/cardgatebitcoin.html | 138 +++ .../classes/class.cardgatecreditcard.php | 59 ++ .../hooks/checkout_selectpayment_tpl_data.php | 36 + .../hooks/order_edit_display_data.php | 65 ++ .../images/cardgatecreditcard.png | Bin 0 -> 1009 bytes .../installer/cardgatecreditcard.xml | 94 +++ .../cardgatecreditcard/installer/install.php | 37 + .../templates/cardgatecreditcard.html | 138 +++ .../classes/class.cardgatedirectdebit.php | 59 ++ .../hooks/checkout_selectpayment_tpl_data.php | 36 + .../hooks/order_edit_display_data.php | 65 ++ .../images/cardgatedirectdebit.png | Bin 0 -> 3902 bytes .../installer/cardgatedirectdebit.xml | 94 +++ .../cardgatedirectdebit/installer/install.php | 37 + .../templates/cardgatedirectdebit.html | 138 +++ .../classes/class.cardgategiftcard.php | 59 ++ .../hooks/checkout_selectpayment_tpl_data.php | 36 + .../hooks/order_edit_display_data.php | 58 ++ .../images/cardgategiftcard.png | Bin 0 -> 715 bytes .../installer/cardgategiftcard.xml | 94 +++ .../cardgategiftcard/installer/install.php | 37 + .../templates/cardgategiftcard.html | 138 +++ .../classes/class.cardgategiropay.php | 59 ++ .../hooks/checkout_selectpayment_tpl_data.php | 36 + .../hooks/order_edit_display_data.php | 65 ++ .../images/cardgategiropay.png | Bin 0 -> 2549 bytes .../installer/cardgategiropay.xml | 94 +++ plugins/cardgategiropay/installer/install.php | 37 + .../templates/cardgategiropay.html | 138 +++ .../classes/class.cardgateideal.php | 59 ++ .../hooks/checkout_selectpayment_tpl_data.php | 37 + .../hooks/module_checkout_payment_check.php | 41 + .../hooks/order_edit_display_data.php | 65 ++ .../cardgateideal/images/cardgateideal.png | Bin 0 -> 939 bytes .../cardgateideal/installer/cardgateideal.xml | 99 +++ plugins/cardgateideal/installer/install.php | 37 + .../templates/cardgateideal.html | 155 ++++ .../classes/class.cardgateidealqr.php | 59 ++ .../hooks/checkout_selectpayment_tpl_data.php | 36 + .../hooks/order_edit_display_data.php | 65 ++ .../images/cardgateidealqr.png | Bin 0 -> 3251 bytes .../installer/cardgateidealqr.xml | 94 +++ plugins/cardgateidealqr/installer/install.php | 37 + .../templates/cardgateidealqr.html | 138 +++ .../classes/class.cardgateklarna.php | 59 ++ .../hooks/checkout_selectpayment_tpl_data.php | 36 + .../hooks/order_edit_display_data.php | 65 ++ .../cardgateklarna/images/cardgateklarna.png | Bin 0 -> 5235 bytes .../installer/cardgateklarna.xml | 94 +++ plugins/cardgateklarna/installer/install.php | 37 + .../templates/cardgateklarna.html | 138 +++ .../classes/class.cardgatepaypal.php | 59 ++ .../hooks/checkout_selectpayment_tpl_data.php | 36 + .../hooks/order_edit_display_data.php | 65 ++ .../cardgatepaypal/images/cardgatepaypal.png | Bin 0 -> 3382 bytes .../installer/cardgatepaypal.xml | 94 +++ plugins/cardgatepaypal/installer/install.php | 37 + .../templates/cardgatepaypal.html | 138 +++ .../classes/class.cardgatepaysafecard.php | 59 ++ .../hooks/checkout_selectpayment_tpl_data.php | 36 + .../hooks/order_edit_display_data.php | 65 ++ .../images/cardgatepaysafecard.png | Bin 0 -> 5748 bytes .../installer/cardgatepaysafecard.xml | 94 +++ .../cardgatepaysafecard/installer/install.php | 37 + .../templates/cardgatepaysafecard.html | 137 +++ .../classes/class.cardgatepaysafecash.php | 59 ++ .../hooks/checkout_selectpayment_tpl_data.php | 36 + .../hooks/order_edit_display_data.php | 65 ++ .../images/cardgatepaysafecash.png | Bin 0 -> 2400 bytes .../installer/cardgatepaysafecash.xml | 94 +++ .../cardgatepaysafecash/installer/install.php | 37 + .../templates/cardgatepaysafecash.html | 138 +++ .../classes/class.cardgateprzelewy24.php | 59 ++ .../hooks/checkout_selectpayment_tpl_data.php | 36 + .../hooks/order_edit_display_data.php | 65 ++ .../images/cardgateprzelewy24.png | Bin 0 -> 4102 bytes .../installer/cardgateprzelewy24.xml | 94 +++ .../cardgateprzelewy24/installer/install.php | 37 + .../templates/cardgateprzelewy24.html | 138 +++ .../classes/class.cardgatesofortbanking.php | 59 ++ .../hooks/checkout_selectpayment_tpl_data.php | 36 + .../hooks/order_edit_display_data.php | 65 ++ .../images/cardgatesofortbanking.png | Bin 0 -> 2876 bytes .../installer/cardgatesofortbanking.xml | 94 +++ .../installer/install.php | 37 + .../templates/cardgatesofortbanking.html | 138 +++ .../cardgateafterpay/cardgateafterpay.html | 39 + .../cardgatebancontact.html | 39 + .../cardgatebanktransfer.html | 39 + .../cardgatebitcoin/cardgatebitcoin.html | 39 + .../cardgatecreditcard.html | 39 + .../cardgatedirectdebit.html | 39 + .../cardgategiropay/cardgategiropay.html | 39 + .../plugins/cardgateideal/cardgateideal.html | 54 ++ .../cardgateklarna/cardgateklarna.html | 39 + .../cardgatepaypal/cardgatepaypal.html | 39 + .../cardgatepaysafecard.html | 39 + .../cardgateprzelewy24.html | 39 + .../cardgatesofortbanking.html | 39 + 160 files changed, 13227 insertions(+), 84 deletions(-) create mode 100755 cardgate/classes/cardgate-clientlib-php/init.php create mode 100644 cardgate/classes/cardgate-clientlib-php/src/Address.php create mode 100644 cardgate/classes/cardgate-clientlib-php/src/Autoloader.php create mode 100644 cardgate/classes/cardgate-clientlib-php/src/Cart.php create mode 100644 cardgate/classes/cardgate-clientlib-php/src/Client.php create mode 100644 cardgate/classes/cardgate-clientlib-php/src/Consumer.php create mode 100644 cardgate/classes/cardgate-clientlib-php/src/Entity.php create mode 100644 cardgate/classes/cardgate-clientlib-php/src/Exception.php create mode 100644 cardgate/classes/cardgate-clientlib-php/src/Item.php create mode 100644 cardgate/classes/cardgate-clientlib-php/src/Method.php create mode 100644 cardgate/classes/cardgate-clientlib-php/src/Subscription.php create mode 100644 cardgate/classes/cardgate-clientlib-php/src/Transaction.php create mode 100644 cardgate/classes/cardgate-clientlib-php/src/resource/Base.php create mode 100644 cardgate/classes/cardgate-clientlib-php/src/resource/Consumers.php create mode 100644 cardgate/classes/cardgate-clientlib-php/src/resource/Methods.php create mode 100644 cardgate/classes/cardgate-clientlib-php/src/resource/Subscriptions.php create mode 100644 cardgate/classes/cardgate-clientlib-php/src/resource/Transactions.php create mode 100644 cardgate/classes/cardgate-clientlib-php/src/resource/Version.php create mode 100755 cardgate/classes/cardgate.php create mode 100755 cardgate/installer/install.php create mode 100755 plugins/cardgate/classes/class.cardgate.php create mode 100755 plugins/cardgate/images/cg_logo.png create mode 100755 plugins/cardgate/installer/cardgate.xml create mode 100755 plugins/cardgate/installer/install.php create mode 100755 plugins/cardgate/pages/cardgate_checkout.php create mode 100755 plugins/cardgate/templates/cardgate.html create mode 100755 plugins/cardgateafterpay/classes/class.cardgateafterpay.php create mode 100755 plugins/cardgateafterpay/hooks/checkout_selectpayment_tpl_data.php create mode 100755 plugins/cardgateafterpay/hooks/order_edit_display_data.php create mode 100755 plugins/cardgateafterpay/images/cardgateafterpay.png create mode 100755 plugins/cardgateafterpay/installer/cardgateafterpay.xml create mode 100755 plugins/cardgateafterpay/installer/install.php create mode 100755 plugins/cardgateafterpay/templates/cardgateafterpay.html create mode 100755 plugins/cardgatebancontact/classes/class.cardgatebancontact.php create mode 100755 plugins/cardgatebancontact/hooks/checkout_selectpayment_tpl_data.php create mode 100755 plugins/cardgatebancontact/hooks/order_edit_display_data.php create mode 100755 plugins/cardgatebancontact/images/cardgatebancontact.png create mode 100755 plugins/cardgatebancontact/installer/cardgatebancontact.xml create mode 100755 plugins/cardgatebancontact/installer/install.php create mode 100755 plugins/cardgatebancontact/templates/cardgatebancontact.html create mode 100755 plugins/cardgatebanktransfer/classes/class.cardgatebanktransfer.php create mode 100755 plugins/cardgatebanktransfer/hooks/checkout_selectpayment_tpl_data.php create mode 100755 plugins/cardgatebanktransfer/hooks/order_edit_display_data.php create mode 100755 plugins/cardgatebanktransfer/images/cardgatebanktransfer.png create mode 100755 plugins/cardgatebanktransfer/installer/cardgatebanktransfer.xml create mode 100755 plugins/cardgatebanktransfer/installer/install.php create mode 100755 plugins/cardgatebanktransfer/templates/cardgatebanktransfer.html create mode 100755 plugins/cardgatebillink/classes/class.cardgatebillink.php create mode 100755 plugins/cardgatebillink/hooks/checkout_selectpayment_tpl_data.php create mode 100755 plugins/cardgatebillink/hooks/order_edit_display_data.php create mode 100644 plugins/cardgatebillink/images/cardgatebillink.png create mode 100755 plugins/cardgatebillink/installer/cardgatebillink.xml create mode 100755 plugins/cardgatebillink/installer/install.php create mode 100755 plugins/cardgatebillink/templates/cardgatebillink.html create mode 100755 plugins/cardgatebitcoin/classes/class.cardgatebitcoin.php create mode 100755 plugins/cardgatebitcoin/hooks/checkout_selectpayment_tpl_data.php create mode 100755 plugins/cardgatebitcoin/hooks/order_edit_display_data.php create mode 100755 plugins/cardgatebitcoin/images/cardgatebitcoin.png create mode 100755 plugins/cardgatebitcoin/installer/cardgatebitcoin.xml create mode 100755 plugins/cardgatebitcoin/installer/install.php create mode 100755 plugins/cardgatebitcoin/templates/cardgatebitcoin.html create mode 100755 plugins/cardgatecreditcard/classes/class.cardgatecreditcard.php create mode 100755 plugins/cardgatecreditcard/hooks/checkout_selectpayment_tpl_data.php create mode 100755 plugins/cardgatecreditcard/hooks/order_edit_display_data.php create mode 100755 plugins/cardgatecreditcard/images/cardgatecreditcard.png create mode 100755 plugins/cardgatecreditcard/installer/cardgatecreditcard.xml create mode 100755 plugins/cardgatecreditcard/installer/install.php create mode 100755 plugins/cardgatecreditcard/templates/cardgatecreditcard.html create mode 100755 plugins/cardgatedirectdebit/classes/class.cardgatedirectdebit.php create mode 100755 plugins/cardgatedirectdebit/hooks/checkout_selectpayment_tpl_data.php create mode 100755 plugins/cardgatedirectdebit/hooks/order_edit_display_data.php create mode 100755 plugins/cardgatedirectdebit/images/cardgatedirectdebit.png create mode 100755 plugins/cardgatedirectdebit/installer/cardgatedirectdebit.xml create mode 100755 plugins/cardgatedirectdebit/installer/install.php create mode 100755 plugins/cardgatedirectdebit/templates/cardgatedirectdebit.html create mode 100755 plugins/cardgategiftcard/classes/class.cardgategiftcard.php create mode 100755 plugins/cardgategiftcard/hooks/checkout_selectpayment_tpl_data.php create mode 100755 plugins/cardgategiftcard/hooks/order_edit_display_data.php create mode 100644 plugins/cardgategiftcard/images/cardgategiftcard.png create mode 100755 plugins/cardgategiftcard/installer/cardgategiftcard.xml create mode 100755 plugins/cardgategiftcard/installer/install.php create mode 100755 plugins/cardgategiftcard/templates/cardgategiftcard.html create mode 100755 plugins/cardgategiropay/classes/class.cardgategiropay.php create mode 100755 plugins/cardgategiropay/hooks/checkout_selectpayment_tpl_data.php create mode 100755 plugins/cardgategiropay/hooks/order_edit_display_data.php create mode 100755 plugins/cardgategiropay/images/cardgategiropay.png create mode 100755 plugins/cardgategiropay/installer/cardgategiropay.xml create mode 100755 plugins/cardgategiropay/installer/install.php create mode 100755 plugins/cardgategiropay/templates/cardgategiropay.html create mode 100755 plugins/cardgateideal/classes/class.cardgateideal.php create mode 100755 plugins/cardgateideal/hooks/checkout_selectpayment_tpl_data.php create mode 100755 plugins/cardgateideal/hooks/module_checkout_payment_check.php create mode 100755 plugins/cardgateideal/hooks/order_edit_display_data.php create mode 100755 plugins/cardgateideal/images/cardgateideal.png create mode 100755 plugins/cardgateideal/installer/cardgateideal.xml create mode 100755 plugins/cardgateideal/installer/install.php create mode 100755 plugins/cardgateideal/templates/cardgateideal.html create mode 100755 plugins/cardgateidealqr/classes/class.cardgateidealqr.php create mode 100755 plugins/cardgateidealqr/hooks/checkout_selectpayment_tpl_data.php create mode 100755 plugins/cardgateidealqr/hooks/order_edit_display_data.php create mode 100644 plugins/cardgateidealqr/images/cardgateidealqr.png create mode 100755 plugins/cardgateidealqr/installer/cardgateidealqr.xml create mode 100755 plugins/cardgateidealqr/installer/install.php create mode 100755 plugins/cardgateidealqr/templates/cardgateidealqr.html create mode 100755 plugins/cardgateklarna/classes/class.cardgateklarna.php create mode 100755 plugins/cardgateklarna/hooks/checkout_selectpayment_tpl_data.php create mode 100755 plugins/cardgateklarna/hooks/order_edit_display_data.php create mode 100755 plugins/cardgateklarna/images/cardgateklarna.png create mode 100755 plugins/cardgateklarna/installer/cardgateklarna.xml create mode 100755 plugins/cardgateklarna/installer/install.php create mode 100755 plugins/cardgateklarna/templates/cardgateklarna.html create mode 100755 plugins/cardgatepaypal/classes/class.cardgatepaypal.php create mode 100755 plugins/cardgatepaypal/hooks/checkout_selectpayment_tpl_data.php create mode 100755 plugins/cardgatepaypal/hooks/order_edit_display_data.php create mode 100755 plugins/cardgatepaypal/images/cardgatepaypal.png create mode 100755 plugins/cardgatepaypal/installer/cardgatepaypal.xml create mode 100755 plugins/cardgatepaypal/installer/install.php create mode 100755 plugins/cardgatepaypal/templates/cardgatepaypal.html create mode 100755 plugins/cardgatepaysafecard/classes/class.cardgatepaysafecard.php create mode 100755 plugins/cardgatepaysafecard/hooks/checkout_selectpayment_tpl_data.php create mode 100755 plugins/cardgatepaysafecard/hooks/order_edit_display_data.php create mode 100644 plugins/cardgatepaysafecard/images/cardgatepaysafecard.png create mode 100755 plugins/cardgatepaysafecard/installer/cardgatepaysafecard.xml create mode 100755 plugins/cardgatepaysafecard/installer/install.php create mode 100755 plugins/cardgatepaysafecard/templates/cardgatepaysafecard.html create mode 100755 plugins/cardgatepaysafecash/classes/class.cardgatepaysafecash.php create mode 100755 plugins/cardgatepaysafecash/hooks/checkout_selectpayment_tpl_data.php create mode 100755 plugins/cardgatepaysafecash/hooks/order_edit_display_data.php create mode 100644 plugins/cardgatepaysafecash/images/cardgatepaysafecash.png create mode 100755 plugins/cardgatepaysafecash/installer/cardgatepaysafecash.xml create mode 100755 plugins/cardgatepaysafecash/installer/install.php create mode 100755 plugins/cardgatepaysafecash/templates/cardgatepaysafecash.html create mode 100755 plugins/cardgateprzelewy24/classes/class.cardgateprzelewy24.php create mode 100755 plugins/cardgateprzelewy24/hooks/checkout_selectpayment_tpl_data.php create mode 100755 plugins/cardgateprzelewy24/hooks/order_edit_display_data.php create mode 100644 plugins/cardgateprzelewy24/images/cardgateprzelewy24.png create mode 100755 plugins/cardgateprzelewy24/installer/cardgateprzelewy24.xml create mode 100755 plugins/cardgateprzelewy24/installer/install.php create mode 100755 plugins/cardgateprzelewy24/templates/cardgateprzelewy24.html create mode 100755 plugins/cardgatesofortbanking/classes/class.cardgatesofortbanking.php create mode 100755 plugins/cardgatesofortbanking/hooks/checkout_selectpayment_tpl_data.php create mode 100755 plugins/cardgatesofortbanking/hooks/order_edit_display_data.php create mode 100755 plugins/cardgatesofortbanking/images/cardgatesofortbanking.png create mode 100755 plugins/cardgatesofortbanking/installer/cardgatesofortbanking.xml create mode 100755 plugins/cardgatesofortbanking/installer/install.php create mode 100755 plugins/cardgatesofortbanking/templates/cardgatesofortbanking.html create mode 100644 templates/xt_mobile/plugins/cardgateafterpay/cardgateafterpay.html create mode 100644 templates/xt_mobile/plugins/cardgatebancontact/cardgatebancontact.html create mode 100644 templates/xt_mobile/plugins/cardgatebanktransfer/cardgatebanktransfer.html create mode 100644 templates/xt_mobile/plugins/cardgatebitcoin/cardgatebitcoin.html create mode 100644 templates/xt_mobile/plugins/cardgatecreditcard/cardgatecreditcard.html create mode 100644 templates/xt_mobile/plugins/cardgatedirectdebit/cardgatedirectdebit.html create mode 100644 templates/xt_mobile/plugins/cardgategiropay/cardgategiropay.html create mode 100644 templates/xt_mobile/plugins/cardgateideal/cardgateideal.html create mode 100644 templates/xt_mobile/plugins/cardgateklarna/cardgateklarna.html create mode 100644 templates/xt_mobile/plugins/cardgatepaypal/cardgatepaypal.html create mode 100644 templates/xt_mobile/plugins/cardgatepaysafecard/cardgatepaysafecard.html create mode 100644 templates/xt_mobile/plugins/cardgateprzelewy24/cardgateprzelewy24.html create mode 100644 templates/xt_mobile/plugins/cardgatesofortbanking/cardgatesofortbanking.html diff --git a/.gitignore b/.gitignore index 5a42d9b..e69de29 100644 --- a/.gitignore +++ b/.gitignore @@ -1,84 +0,0 @@ -* -!.gitignore -!cardgate/ -!plugins/ -plugins/* -!plugins/cardgate -!plugins/cardgateafterpay -!plugins/cardgatebancontact -!plugins/cardgatebanktransfer -!plugins/cardgatebillink -!plugins/cardgatebitcoin -!plugins/cardgatecreditcard -!plugins/cardgatedirectdebit -!plugins/cardgategiftcard -!plugins/cardgategiropay -!plugins/cardgateideal -!plugins/cardgateidealqr -!plugins/cardgateklarna -!plugins/cardgatepaypal -!plugins/cardgatepaysafecard -!plugins/cardgatepaysafecash -!plugins/cardgateprzlewy24 -!plugins/cardgatesofortbanking -!templates -templates/* -!templates/xt_default -templates/xt_default/* -!templates/xt_default/xtCore -templates/xt_default/xtCore/* -!templates/xt_default/xtCore/pages -templates/xt_default/xtCore/pages/* -!templates/xt_default/xtCore/pages/cardgate_checkout.html -!templates/xt_default/xtCore/pages/checkout -templates/xt_default/xtCore/pages/checkout/* -!templates/xt_default/xtCore/pages/checkout/subpage_cardgate_cancel.html -!templates/xt_default/xtCore/pages/checkout/subpage_cardgate_failure.html -!templates/xt_default/xtCore/pages/checkout/subpage_cardgate_pending.html -!templates/xt_default/xtCore/pages/checkout/subpage_cardgate_success.html -!templates/xt_grid -templates/xt_grid/* -!templates/xt_grid/xtCore -templates/xt_grid/xtCore/* -!templates/xt_grid/xtCore/pages -templates/xt_grid/xtCore/pages/* -!templates/xt_grid/xtCore/pages/cardgate_checkout.html -!templates/xt_grid/xtCore/pages/checkout -templates/xt_grid/xtCore/pages/checkout/* -!templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_cancel.html -!templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_failure.html -!templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_pending.html -!templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_success.html -!templates/xt_mobile -templates/xt_mobile/* -!templates/xt_mobile/plugins -templates/xt_mobile/plugins/* -!templates/xt_mobile/plugins/cardgateafterpay -!templates/xt_mobile/plugins/cardgatebancontact -!templates/xt_mobile/plugins/cardgatebanktransfer -!templates/xt_mobile/plugins/cardgatebitcoin -!templates/xt_mobile/plugins/cardgatecreditcard -!templates/xt_mobile/plugins/cardgatedirectdebit -!templates/xt_mobile/plugins/cardgategiropay -!templates/xt_mobile/plugins/cardgateideal -!templates/xt_mobile/plugins/cardgateklarna -!templates/xt_mobile/plugins/cardgatepaypal -!templates/xt_mobile/plugins/cardgatepaysafecard -!templates/xt_mobile/plugins/cardgateprzelewy24 -!templates/xt_mobile/plugins/cardgatesofortbanking -!templates/xt_responsive -templates/xt_responsive/* -!templates/xt_responsive/xtCore -templates/xt_responsive/xtCore/* -!templates/xt_responsive/xtCore/pages -templates/xt_responsive/xtCore/pages/* -!templates/xt_responsive/xtCore/pages/cardgate_checkout.html -!templates/xt_responsive/xtCore/pages/checkout -templates/xt_responsive/xtCore/pages/checkout/* -!templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_cancel.html -!templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_failure.html -!templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_pending.html -!templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_success.html -!README.md -!README_DE.md -!README_NL.md diff --git a/cardgate/classes/cardgate-clientlib-php/init.php b/cardgate/classes/cardgate-clientlib-php/init.php new file mode 100755 index 0000000..8f2fd31 --- /dev/null +++ b/cardgate/classes/cardgate-clientlib-php/init.php @@ -0,0 +1,5 @@ + 'firstname', + 'Initials' => 'initials', + 'LastName' => 'lastname', + 'Gender' => 'gender', + 'DayOfBirth' => 'dob', + 'Company' => 'company', + 'Address' => 'address', + 'City' => 'city', + 'State' => 'state', + 'ZipCode' => 'zipcode', + 'Country' => 'country_id' + ]; + + /** + * Sets the gender. + * @param string $sGender_ The gender to set. + * @return Address Returns this, makes the call chainable. + * @throws Exception + * @access public + * @api + */ + function setGender( $sGender_ ) { + if ( + ! is_string( $sGender_ ) + || strlen( $sGender_ ) != 1 + ) { + throw new Exception( 'Address.Gender.Invalid', 'invalid gender: ' . $sGender_ ); + } + return parent::setGender( $sGender_ ); + } + + /** + * Sets the day of birth. + * @param string $sDayOfBirth_ The day of birth to set. + * @return Address Returns this, makes the call chainable. + * @throws Exception + * @access public + * @api + */ + function setDayOfBirth( $sDayOfBirth_ ) { + if ( + ! is_string( $sDayOfBirth_ ) + || FALSE == ( $iDayOfBirthUnix = strtotime( $sDayOfBirth_ ) ) + ) { + throw new Exception( 'Address.DayOfBirth.Invalid', 'invalid day of birth: ' . $sDayOfBirth_ ); + } + return parent::setDayOfBirth( strftime( '%m/%d/%Y', $iDayOfBirthUnix ) ); + } + + /** + * Sets the country. + * @param string $sCountry_ The country to set (ISO 3166-1 alpha-2). + * @return Address Returns this, makes the call chainable. + * @throws Exception + * @access public + * @api + */ + function setCountry( $sCountry_ ) { + if ( + ! is_string( $sCountry_ ) + || strlen( $sCountry_ ) != 2 + ) { + throw new Exception( 'Address.Country.Invalid', 'invalid country: ' . $sCountry_ ); + } + return parent::setCountry( $sCountry_ ); + } + + } + +} diff --git a/cardgate/classes/cardgate-clientlib-php/src/Autoloader.php b/cardgate/classes/cardgate-clientlib-php/src/Autoloader.php new file mode 100644 index 0000000..f952b61 --- /dev/null +++ b/cardgate/classes/cardgate-clientlib-php/src/Autoloader.php @@ -0,0 +1,58 @@ +_aItems[] = $oItem; + return $oItem; + } + + function getAll() { + } + + function getData() { + $aData = []; + foreach( $this->_aItems as $oItem ) { + $aData[] = $oItem->getData(); + } + return $aData; + } + + } + +} diff --git a/cardgate/classes/cardgate-clientlib-php/src/Client.php b/cardgate/classes/cardgate-clientlib-php/src/Client.php new file mode 100644 index 0000000..6f687d2 --- /dev/null +++ b/cardgate/classes/cardgate-clientlib-php/src/Client.php @@ -0,0 +1,576 @@ +setMerchantId( $iMerchantId_ )->setKey( $sKey_ )->setTestmode( $bTestmode_ ); + } + + /** + * Prevent leaking info in dumps. + * @ignore + */ + public function __debugInfo() { + return [ + 'Version' => $this->_oVersion, + 'Testmode' => $this->_bTestmode, + 'DebugLevel' => $this->_iDebugLevel, + 'iMerchantId' => $this->_iMerchantId, + 'API_URL' => $this->getUrl(), + 'LastRequest' => $this->_sLastRequest, + 'LastResult' => $this->_sLastResult + ]; + } + + /** + * Toggle testmode. + * @param bool $bTestmode_ Enable or disable testmode for this client. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setTestmode( $bTestmode_ ) { + if ( ! is_bool( $bTestmode_ ) ) { + throw new Exception( 'Client.Testmode.Invalid', 'invalid testmode: ' . $bTestmode_ ); + } + $this->_bTestmode = $bTestmode_; + return $this; + } + + /** + * Get currenct testmode setting. + * @return bool The current testmode setting + * @access public + * @api + */ + public function getTestmode() { + return $this->_bTestmode; + } + + /** + * Set debug level. + * @param int $iDebugLevel_ Level: 0 = None, 1 = Include request/resule in errors, 2 = Verbose cURL calls. + * @return $this + * @access public + * @api + */ + public function setDebugLevel( $iLevel_ ) { + $this->_iDebugLevel = $iLevel_; + return $this; + } + + /** + * Get current debug level setting. + * @return int The current debug level. + * @access public + * @api + */ + public function getDebugLevel() { + return $this->_iDebugLevel; + } + + /** + * Get debug information according to debug level. + * @param bool $bStartWithNewLine_ Optional flag to indicate the info should start with a new-line. + * @param bool $bAddResult_ Optional flag to indicate the result should be included too. + * @return string Debug info or empty if level = 0. + * @access public + * @api + */ + public function getDebugInfo( $bStartWithNewLine_ = TRUE, $bAddResult_ = TRUE ) { + if ( $this->getDebugLevel() > self::DEBUG_NONE ) { + $sResult = ( $bStartWithNewLine_ ? PHP_EOL : '' ); + $sResult .= 'Request: ' . $this->getLastRequest(); + if ( $bAddResult_ ) { + $sResult .= PHP_EOL . 'Result: ' . $this->getLastResult(); + } + return $sResult; + } else { + return ''; + } + } + + /** + * Configure the client object with a merchant id. + * @param int $iMerchantId_ Merchant id to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setMerchantId( $iMerchantId_ ) { + if ( ! is_integer( $iMerchantId_ ) ) { + throw new Exception( 'Client.MerchantId.Invalid', 'invalid merchant: ' . $iMerchantId_ ); + } + $this->_iMerchantId = $iMerchantId_; + return $this; + } + + /** + * Get the merchant id associated with this client. + * @return int The merchant id associated with this client + * @access public + * @api + */ + public function getMerchantId() { + return $this->_iMerchantId; + } + + /** + * Set the Merchant API key to authenticate the transaction request with. + * @param string $sKey_ The merchant API key to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setKey( $sKey_ ) { + if ( ! is_string( $sKey_ ) ) { + throw new Exception( 'Client.Key.Invalid', 'invalid merchant key: ' . $sKey_ ); + } + $this->_sKey = $sKey_; + return $this; + } + + /** + * Get the Merchant API key to authenticate the transaction request with. + * @return string The merchant API key. + * @access public + * @api + */ + public function getKey() { + return $this->_sKey; + } + + /** + * Set the IP address. + * @param string The IP address of the consumer. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setIp( $sIp_ ) { + if ( + ! is_string( $sIp_ ) + || FALSE === filter_var( $sIp_, FILTER_VALIDATE_IP ) // NOTE ipv6 + ) { + throw new Exception( 'Client.Ip.Invalid', 'invalid IP address: ' . $sIp_ ); + } + $this->_sIp = $sIp_; + return $this; + } + + /** + * Get the IP address. + * @return string The consumer IP address. + * @access public + * @api + */ + public function getIp() { + return $this->_sIp; + } + + /** + * Configure the language to use. + * @param string $sLanguage_ The language to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setLanguage( $sLanguage_ ) { + if ( ! is_string( $sLanguage_ ) ) { + throw new Exception( 'Client.Language.Invalid', 'invalid language: ' . $sLanguage_ ); + } + $this->_sLanguage = $sLanguage_; + return $this; + } + + /** + * Get the language the client is configured with. + * @return string The language the client is configured with. + * @access public + * @api + */ + public function getLanguage() { + return $this->_sLanguage; + } + + /** + * Get the URL to use with this connection, depending on testmode settings. + * @return string The URL to use + * @access public + * @api + */ + public function getUrl() { + if ( ! empty( $_SERVER['CG_API_URL'] ) ) { + return $_SERVER['CG_API_URL']; + } else { + return ( $this->getTestmode() ? self::URL_STAGING : self::URL_PRODUCTION ); + } + } + + /** + * Get the last request sent to the API. + * @return string The request string. + * @access public + * @api + */ + public function getLastRequest() { + return (string) $this->_sLastRequest; + } + + /** + * Get the last result from an API call. + * @return string The result string. + * @access public + * @api + */ + public function getLastResult() { + return (string) $this->_sLastResult; + } + + /** + * Pull the config from the API using a token provided by the site setup button in the backoffice. + * @return array Returns an array with settings. + * @throws Exception + * @access public + * @api + */ + static public function pullConfig( $sToken_, $bTestmode_ = FALSE ) { + if ( ! is_string( $sToken_ ) ) { + throw new Exception( 'Client.Token.Invalid', 'invalid token for settings pull: ' . $sToken_ ); + } + + $sResource = "pullconfig/{$sToken_}/"; + $sUrl = ( $bTestmode_ ? self::URL_STAGING : self::URL_PRODUCTION ) . $sResource; + + $rCh = curl_init(); + curl_setopt( $rCh, CURLOPT_URL, $sUrl ); + curl_setopt( $rCh, CURLOPT_RETURNTRANSFER, 1 ); + curl_setopt( $rCh, CURLOPT_TIMEOUT, 60 ); + curl_setopt( $rCh, CURLOPT_HEADER, FALSE ); + curl_setopt( $rCh, CURLOPT_HTTPHEADER, [ + 'Content-Type: application/json', + 'Accept: application/json' + ] ); + if ( $bTestmode_ ) { + curl_setopt( $rCh, CURLOPT_SSL_VERIFYPEER, FALSE ); + curl_setopt( $rCh, CURLOPT_SSL_VERIFYHOST, 0 ); + } else { + curl_setopt( $rCh, CURLOPT_SSL_VERIFYPEER, TRUE ); // verify SSL peer + curl_setopt( $rCh, CURLOPT_SSL_VERIFYHOST, 2 ); // check for valid common name and verify host + } + + if ( FALSE == ( $sResults = curl_exec( $rCh ) ) ) { + $sError = curl_error( $rCh ); + curl_close( $rCh ); + throw new Exception( 'Client.Request.Curl.Error', $sError ); + } else { + curl_close( $rCh ); + } + if ( NULL === ( $aResults = json_decode( $sResults, TRUE ) ) ) { + throw new Exception( 'Client.Request.JSON.Invalid', 'remote gave invalid JSON: ' . $sResults ); + } + if ( isset( $aResults['error'] ) ) { + throw new Exception( 'Client.Request.Remote.' . $aResults['error']['code'], $aResults['error']['message'] ); + } + + return $aResults; + } + + /** + * Accessor for the versioning resource. + * @return resource\Version + * @access public + * @api + */ + public function version() { + if ( NULL == $this->_oVersion ) { + $this->_oVersion = new resource\Version(); + } + return $this->_oVersion; + } + + /** + * Accessor for the transactions resource. + * @return resource\Transactions + * @access public + * @api + */ + public function transactions() { + if ( NULL == $this->_oTransactions ) { + $this->_oTransactions = new resource\Transactions( $this ); + } + return $this->_oTransactions; + } + + /** + * Accessor for the subscriptions resource. + * @return resource\Subscriptions + * @access public + * @api + */ + public function subscriptions() { + if ( NULL == $this->_oSubscriptions ) { + $this->_oSubscriptions = new resource\Subscriptions( $this ); + } + return $this->_oSubscriptions; + } + + /** + * Accessor for the consumers resource. + * @return resource\Consumers + * @access public + * @api + */ + public function consumers() { + if ( NULL == $this->_oConsumers ) { + $this->_oConsumers = new resource\Consumers( $this ); + } + return $this->_oConsumers; + } + + /** + * Accessor for the payment methods resource. + * @return resource\Methods + * @access public + * @api + */ + public function methods() { + if ( NULL == $this->_oMethods ) { + $this->_oMethods = new resource\Methods( $this ); + } + return $this->_oMethods; + } + + /** + * Send a request to the CardGate API. + * @param string $sResource_ The resource to call. + * @param array $aData_ Optional data to use for the call. + * @param string $sHttpMethod_ The http method to use (GET or POST, which is the default). + * @return array An array with request results. + * @throws Exception + */ + public function doRequest( $sResource_, $aData_ = NULL, $sHttpMethod_ = 'POST' ) { + + if ( ! in_array( $sHttpMethod_, [ 'GET', 'POST' ] ) ) { + throw new Exception( 'Client.HttpMethod.Invalid', 'invalid http method: ' . $sHttpMethod_ ); + } + + $sUrl = $this->getUrl() . $sResource_; + if ( is_array( $aData_ ) ) { + $aData_['ip'] = $this->getIp(); + $aData_['language_id'] = $this->getLanguage(); + } elseif ( is_null( $aData_ ) ) { + $aData_ = [ 'ip' => $this->getIp(), 'language_id' => $this->getLanguage() ]; + } else { + throw new Exception( 'Client.Data.Invalid', 'invalid data: ' . $aData_ ); + } + + if ( NULL !== $this->_oVersion ) { + $aData_ = array_merge( $aData_, $this->_oVersion->getData() ); + } + + $rCh = curl_init(); + curl_setopt( $rCh, CURLOPT_HTTPAUTH, CURLAUTH_BASIC ); + curl_setopt( $rCh, CURLOPT_USERPWD, $this->_iMerchantId . ':' . $this->_sKey ); + curl_setopt( $rCh, CURLOPT_RETURNTRANSFER, 1 ); + curl_setopt( $rCh, CURLOPT_TIMEOUT, 60 ); + curl_setopt( $rCh, CURLOPT_HEADER, FALSE ); + curl_setopt( $rCh, CURLOPT_HTTPHEADER, [ + 'Content-Type: application/json', + 'Accept: application/json' + ] ); + if ( $this->_bTestmode ) { + curl_setopt( $rCh, CURLOPT_SSL_VERIFYPEER, FALSE ); + curl_setopt( $rCh, CURLOPT_SSL_VERIFYHOST, 0 ); + } else { + curl_setopt( $rCh, CURLOPT_SSL_VERIFYPEER, TRUE ); // verify SSL peer + curl_setopt( $rCh, CURLOPT_SSL_VERIFYHOST, 2 ); // check for valid common name and verify host + } + + if ( 'POST' == $sHttpMethod_ ) { + $this->_sLastRequest = json_encode( $aData_ ); + curl_setopt( $rCh, CURLOPT_URL, $sUrl ); + curl_setopt( $rCh, CURLOPT_POST, TRUE ); + curl_setopt( $rCh, CURLOPT_POSTFIELDS, $this->_sLastRequest ); + $this->_sLastRequest = "[POST $sUrl] " . $this->_sLastRequest; + } else { + $this->_sLastRequest = $sUrl + . ( FALSE === strchr( $sUrl, '?' ) ? '?' : '&' ) + . http_build_query( $aData_ ) + ; + curl_setopt( $rCh, CURLOPT_URL, $this->_sLastRequest ); + } + + if ( self::DEBUG_VERBOSE == $this->_iDebugLevel ) { + curl_setopt( $rCh, CURLOPT_VERBOSE, TRUE ); + } + + $this->_sLastResult = curl_exec( $rCh ); + if ( FALSE == $this->_sLastResult ) { + $sError = curl_error( $rCh ); + curl_close( $rCh ); + throw new Exception( 'Client.Request.Curl.Error', $sError ); + } else { + curl_close( $rCh ); + } + if ( NULL === ( $aResults = json_decode( $this->_sLastResult, TRUE ) ) ) { + throw new Exception( 'Client.Request.JSON.Invalid', 'remote gave invalid JSON: ' . $this->_sLastResult ); + } + if ( isset( $aResults['error'] ) ) { + throw new Exception( 'Client.Request.Remote.' . $aResults['error']['code'], $aResults['error']['message'] . $this->getDebugInfo() ); + } + + return $aResults; + } + + } + +} diff --git a/cardgate/classes/cardgate-clientlib-php/src/Consumer.php b/cardgate/classes/cardgate-clientlib-php/src/Consumer.php new file mode 100644 index 0000000..e9c9e1e --- /dev/null +++ b/cardgate/classes/cardgate-clientlib-php/src/Consumer.php @@ -0,0 +1,96 @@ + 'email', + 'Phone' => 'phone' + ]; + + /** + * The bill-to address. + * @var Address + * @access private + */ + private $_oAddress = NULL; + + /** + * The ship-to address. + * @var Address + * @access private + */ + private $_oShippingAddress = NULL; + + /** + * Accessor for the bill-to address. + * @return Address + * @access public + * @api + */ + public function address() { + if ( NULL == $this->_oAddress ) { + $this->_oAddress = new Address(); + } + return $this->_oAddress; + } + + /** + * Accessor for the ship-to address. + * @return Address + * @access public + * @api + */ + public function shippingAddress() { + if ( NULL == $this->_oShippingAddress ) { + $this->_oShippingAddress = new Address(); + } + return $this->_oShippingAddress; + } + + } + +} diff --git a/cardgate/classes/cardgate-clientlib-php/src/Entity.php b/cardgate/classes/cardgate-clientlib-php/src/Entity.php new file mode 100644 index 0000000..35a5752 --- /dev/null +++ b/cardgate/classes/cardgate-clientlib-php/src/Entity.php @@ -0,0 +1,122 @@ + 'merchant_id', 'Name' => 'name' ] + */ + static protected $_aFields = []; + + /** + * This method can be used to retrieve all the data of the instance. + * @param string $sPrefix_ Optionally prefix all the data entries. + * @return array Returns an array with the data in the entity. + */ + public function getData( $sPrefix_ = NULL ) { + if ( is_string( $sPrefix_ ) ) { + $aResult = []; + foreach( $this->_aData as $sKey => $mValue ) { + $aResult[$sPrefix_ . $sKey] = $mValue; + } + return $aResult; + } else { + return $this->_aData; + } + } + + /** + * @ignore + * @internal The __call method translates get-, set-, unset- and has-methods to their configured fields. + * @return $this|mixed|bool Return $this on set and unset, mixed on get and bool on has + * @throws Exception|\ReflectionException + */ + public function __call( $sMethod_, $aArgs_ ) { + $sClassName = ( new \ReflectionClass( $this ) )->getShortName(); + switch ( substr( $sMethod_, 0, 3 ) ) { + case 'get': + $sKey = substr( $sMethod_, 3 ); + if ( isset( static::$_aFields[$sKey] ) ) { + return isset( $this->_aData[static::$_aFields[$sKey]] ) ? $this->_aData[static::$_aFields[$sKey]] : NULL; + } + break; + case 'set': + $sKey = substr( $sMethod_, 3 ); + if ( isset( static::$_aFields[$sKey] ) ) { + if ( isset( $aArgs_[0] ) ) { + if ( + is_scalar( $aArgs_[0] ) + && ( + ! is_string( $aArgs_[0] ) + || strlen( $aArgs_[0] ) > 0 + ) + ) { + $this->_aData[static::$_aFields[$sKey]] = $aArgs_[0]; + return $this; // makes the call chainable + } else { + throw new Exception( "{$sClassName}.Invalid.Method", "invalid value for {$sMethod_}" ); + } + } else { + throw new Exception( "{$sClassName}.Invalid.Method", "missing parameter 1 for {$sMethod_}" ); + } + } + break; + case 'uns': + $sKey = substr( $sMethod_, 5 ); + if ( isset( static::$_aFields[$sKey] ) ) { + unset( $this->_aData[static::$_aFields[$sKey]] ); + return $this; // makes the call chainable + } + break; + case 'has': + $sKey = substr( $sMethod_, 3 ); + if ( isset( static::$_aFields[$sKey] ) ) { + return isset( $this->_aData[static::$_aFields[$sKey]] ); + } + break; + } + throw new Exception( "{$sClassName}.Invalid.Method", "call to undefined method {$sMethod_}" ); + } + + } + +} diff --git a/cardgate/classes/cardgate-clientlib-php/src/Exception.php b/cardgate/classes/cardgate-clientlib-php/src/Exception.php new file mode 100644 index 0000000..c1ed98b --- /dev/null +++ b/cardgate/classes/cardgate-clientlib-php/src/Exception.php @@ -0,0 +1,68 @@ +_sError = $sError_; + parent::__construct( $sMessage_, $iCode_, $oPrevious_ ); + } + + /** + * Get the unified string code associated with this exception. + * @return string The unified string code of the exception. + * @access public + * @api + */ + public function getError() { + return $this->_sError; + } + + } + +} diff --git a/cardgate/classes/cardgate-clientlib-php/src/Item.php b/cardgate/classes/cardgate-clientlib-php/src/Item.php new file mode 100644 index 0000000..603483b --- /dev/null +++ b/cardgate/classes/cardgate-clientlib-php/src/Item.php @@ -0,0 +1,227 @@ + 'sku', + 'Name' => 'name', + 'Link' => 'link', + 'Quantity' => 'quantity', + 'Price' => 'price', + 'Type' => 'type', + 'Vat' => 'vat', + 'VatIncluded' => 'vat_inc', + 'VatAmount' => 'vat_amount', + 'Stock' => 'stock' + ]; + + /** + * The constructor. + * @param int $iType_ The cart item type. + * @param string $sSKU_ The SKU of the cart item. + * @param string $sName_ The name of the cart item (productname). + * @param $iQuantity_ + * @param int $iPrice_ The price of the cart item. + * @param string $sLink_ An optional link to the product. + * @throws Exception|\ReflectionException + * @access public + * @api + */ + function __construct( $iType_, $sSKU_, $sName_, $iQuantity_, $iPrice_, $sLink_ = NULL ) { + $this->setType( $iType_ )->setSKU( $sSKU_ )->setName( $sName_ )->setQuantity( $iQuantity_ )->setPrice( $iPrice_ ); + if ( ! is_null( $sLink_ ) ) { + $this->setLink( $sLink_ ); + } + } + + /** + * Sets the type (must be one of the {@link \cardgate\api\Item::TYPE_*}} constants. + * @param int $iType_ The cart item type to set. + * @return Item Returns this, makes the call chainable. + * @throws Exception|\ReflectionException + * @access public + * @api + */ + function setType( $iType_ ) { + if ( + ! is_integer( $iType_ ) + || ! in_array( $iType_, ( new \ReflectionClass( '\cardgate\api\Item' ) )->getConstants() ) + ) { + throw new Exception( 'Item.Type.Invalid', 'invalid cart item type: ' . $iType_ ); + } + return parent::setType( $iType_ ); + } + + /** + * Sets the vat. + * @param float $fVat_ The vat to set. + * @return Item Returns this, makes the call chainable. + * @throws Exception + * @access public + * @api + */ + function setVat( $fVat_ ) { + if ( ! is_numeric( $fVat_ ) ) { + throw new Exception( 'Item.Vat.Invalid', 'invalid vat: ' . $fVat_ ); + } + return parent::setVat( $fVat_ ); + } + + /** + * Sets the vat included flag. + * @param bool $bVatIncluded_ The vat included flag to set. + * @return Item Returns this, makes the call chainable. + * @access public + * @api + */ + function setVatIncluded( $bVatIncluded_ ) { + return parent::setVatIncluded( !!$bVatIncluded_ ); + } + + /** + * Sets the vat amount. + * @param float $fVatAmount_ The vat amount to set. + * @return Item Returns this, makes the call chainable. + * @throws Exception + * @access public + * @api + */ + function setVatAmount( $fVatAmount_ ) { + if ( ! is_numeric( $fVatAmount_ ) ) { + throw new Exception( 'Item.Vat.Amount.Invalid', 'invalid vat amount: ' . $fVatAmount_ ); + } + return parent::setVatAmount( $fVatAmount_ ); + } + + /** + * Sets the stock. + * @param float $fStock_ The stock to set. + * @return Item Returns this, makes the call chainable. + * @throws Exception + * @access public + * @api + */ + function setStock( $fStock_ ) { + if ( ! is_numeric( $fStock_ ) ) { + throw new Exception( 'Item.Stock.Invalid', 'invalid stock: ' . $fStock_ ); + } + return parent::setStock( $fStock_ ); + } + + } + +} diff --git a/cardgate/classes/cardgate-clientlib-php/src/Method.php b/cardgate/classes/cardgate-clientlib-php/src/Method.php new file mode 100644 index 0000000..b6ae652 --- /dev/null +++ b/cardgate/classes/cardgate-clientlib-php/src/Method.php @@ -0,0 +1,271 @@ +getConstants(); + } + $this->_oClient = $oClient_; + if ( ! in_array( $sId_, $aValidMethods ) ) { + throw new Exception('Method.PaymentMethod.Invalid', 'invalid payment method: ' . $sId_); + } + $this->setId( $sId_ ); + $this->setName( $sName_ ); + } + + /** + * Set the method id. + * @param string $sId_ Method id to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setId( $sId_ ) { + if ( + ! is_string( $sId_ ) + || empty( $sId_ ) + ) { + throw new Exception( 'Method.Id.Invalid', 'invalid id: ' . $sId_ ); + } + $this->_sId = $sId_; + return $this; + } + + /** + * Get the payment method id. + * @return string The payment method id for this instance. + * @access public + * @api + */ + public function getId() { + return $this->_sId; + } + + /** + * Set the method name. + * @param string $sName_ Method name to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setName( $sName_ ) { + if ( + ! is_string( $sName_ ) + || empty( $sName_ ) + ) { + throw new Exception( 'Method.Name.Invalid', 'invalid name: ' . $sName_ ); + } + $this->_sName = $sName_; + return $this; + } + + /** + * Get the payment method name. + * @return string The payment method name for this instance. + * @access public + * @api + */ + public function getName() { + return $this->_sName; + } + + /** + * This method returns all the issuers available for the current payment method. + * @return array An array with issuers + * @throws Exception + * @access public + * @api + */ + public function getIssuers() { + + if ( TRUE ) { + // Use the static version which is automatically updated every day + $aResult = [ + 'issuers' => $this->_oClient->doRequest( + $this->_oClient->getTestMode() + ? '../../../cache/idealDirectoryCUROPayments-TEST.json' + : '../../../cache/idealDirectoryCUROPayments.json' + , NULL, 'GET' + ) + ]; + } else { + // Retrieve using API call. + // TODO: The response should be cached on the local system for 24 hours! + $sResource = $this->_sId . '/issuers/'; + $aResult = $this->_oClient->doRequest( $sResource, NULL, 'GET' ); + } + if ( empty( $aResult['issuers'] ) ) { + throw new Exception( 'Method.Issuers.Invalid', 'invalid issuer data returned' ); + } + + return $aResult['issuers']; + } + + } + +} diff --git a/cardgate/classes/cardgate-clientlib-php/src/Subscription.php b/cardgate/classes/cardgate-clientlib-php/src/Subscription.php new file mode 100644 index 0000000..f07ba31 --- /dev/null +++ b/cardgate/classes/cardgate-clientlib-php/src/Subscription.php @@ -0,0 +1,514 @@ +_oClient = $oClient_; + $this->setSiteId( $iSiteId_ ) + ->setPeriod( $iPeriod_ ) + ->setPeriodType( $sPeriodType_ ) + ->setPeriodPrice( $iPeriodAmount_ ) + ->setCurrency( $sCurrency_ ); + } + + /** + * Set the subscription id. + * @param string $sId_ Subscription id to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setId( $sId_ ) { + if ( + ! is_string( $sId_ ) + || empty( $sId_ ) + ) { + throw new Exception( 'Subscription.Id.Invalid', 'invalid id: ' . $sId_ ); + } + $this->_sId = $sId_; + return $this; + } + + /** + * Get the subscription id associated with this subscription. + * @return string The subscription id associated with this subscription. + * @throws Exception + * @access public + * @api + */ + public function getId() { + if ( empty( $this->_sId ) ) { + throw new Exception( 'Subscription.Not.Initialized', 'invalid subscription state' ); + } + return $this->_sId; + } + + /** + * Configure the subscription object with a period. + * @param int $iPeriod_ Period length to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setPeriod( $iPeriod_ ) { + if ( ! is_integer( $iPeriod_ ) ) { + throw new Exception( 'Subscription.Period.Invalid', 'invalid period: ' . $iPeriod_ ); + } + $this->_iPeriod = $iPeriod_; + return $this; + } + + /** + * Get the period of the subscription. + * @return int The period of the subscription. + * @access public + * @api + */ + public function getPeriod() { + return $this->_iPeriod; + } + + /** + * Configure the subscription object with a period type. + * @param string $sPeriodType_ Period type to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setPeriodType( $sPeriodType_ ) { + if ( + ! is_string( $sPeriodType_ ) + || ! in_array( $sPeriodType_, [ 'day', 'week', 'month', 'year' ] ) + ) { + throw new Exception( 'Subscription.Period.Type.Invalid', 'invalid period type: ' . $sPeriodType_ ); + } + $this->_sPeriodType = $sPeriodType_; + return $this; + } + + /** + * Get the period type of the subscription. + * @return string The period type of the subscription. + * @access public + * @api + */ + public function getPeriodType() { + return $this->_sPeriodType; + } + + /** + * Configure the subscription object with a period price. + * @param int $iPeriod_ Period price to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setPeriodPrice( $iPeriodPrice_ ) { + if ( ! is_integer( $iPeriodPrice_ ) ) { + throw new Exception( 'Subscription.Period.Price.Invalid', 'invalid period price: ' . $iPeriodPrice_ ); + } + $this->_iPeriodPrice = $iPeriodPrice_; + return $this; + } + + /** + * Get the period price of the subscription. + * @return int The period price of the subscription. + * @access public + * @api + */ + public function getPeriodPrice() { + return $this->_iPeriodPrice; + } + + /** + * Configure the subscription initial payment amount. + * @param int $iInitialPayment_ The initial payment amount to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setInitialPayment( $iAmount_ ) { + if ( ! is_integer( $iAmount_ ) ) { + throw new Exception( 'Subscription.Initial.Payment.Invalid', 'invalid initial payment amount: ' . $iAmount_ ); + } + $this->_iInitialPayment = $iAmount_; + return $this; + } + + + /** + * Configure the subscription object with a trial period. + * @param int $iPeriod_ Trial period length to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setTrialPeriod( $iTrialPeriod_ ) { + if ( ! is_integer( $iTrialPeriod_ ) ) { + throw new Exception( 'Subscription.Period.Invalid', 'invalid trial period: ' . $iTrialPeriod_ ); + } + $this->_iTrialPeriod = $iTrialPeriod_; + return $this; + } + + /** + * Get the trial period of the subscription. + * @return int The trial period of the subscription. + * @access public + * @api + */ + public function getTrialPeriod() { + return $this->_iTrialPeriod; + } + + /** + * Configure the subscription object with a trial period type. + * @param string $sTrialPeriodType_ Trial Period type to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setTrialPeriodType( $sTrialPeriodType_ ) { + if ( + ! is_string( $sTrialPeriodType_ ) + || ! in_array( $sTrialPeriodType_, [ 'day', 'week', 'month', 'year' ] ) + ) { + throw new Exception( 'Subscription.Period.Type.Invalid', 'invalid trial period type: ' . $sTrialPeriodType_ ); + } + $this->_sTrialPeriodType = $sTrialPeriodType_; + return $this; + } + + /** + * Get the trial period type of the subscription. + * @return string The trial period type of the subscription. + * @access public + * @api + */ + public function getTrialPeriodType() { + return $this->_sTrialPeriodType; + } + + /** + * Configure the subscription object with a trial period price. + * @param int $iPeriod_ Trial period price to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setTrialPeriodPrice( $iTrialPeriodPrice_ ) { + if ( ! is_integer( $iTrialPeriodPrice_ ) ) { + throw new Exception( 'Subscription.Period.Price.Invalid', 'invalid trial period price: ' . $iTrialPeriodPrice_ ); + } + $this->_iTrialPeriodPrice = $iTrialPeriodPrice_; + return $this; + } + + /** + * Get the period price of the subscription. + * @return int The period price of the subscription. + * @access public + * @api + */ + public function getTrialPeriodPrice() { + return $this->_iPeriodPrice; + } + + /** + * Configure the subscription date on which it should start. + * @param string $sStartDate_ The start date to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setStartDate( $sStartDate_ ) { + if ( ! is_string( $sStartDate_ ) ) { + throw new Exception( 'Subscription.Date.Start.Invalid', 'invalid start date: ' . $sStartDate_ ); + } + $this->_sStartDate = $sStartDate_; + return $this; + } + + /** + * Get the start date of the subscription. + * @return string The start date of the subscription. + * @access public + * @api + */ + public function getStartDate() { + return $this->_sStartDate; + } + + /** + * Configure the date on which the subscription should end. + * @param string $sEndDate_ The end date to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setEndDate( $sEndDate_ ) { + if ( ! is_string( $sEndDate_ ) ) { + throw new Exception( 'Subscription.Date.End.Invalid', 'invalid end date: ' . $sEndDate_ ); + } + $this->_sEndDate = $sEndDate_; + return $this; + } + + /** + * Get the end date of the subscription. + * @return string The end date of the subscription. + * @access public + * @api + */ + public function getEndDate() { + return $this->_sEndDate; + } + + /** + * Get the status of the subscription. + * @return string The end date of the subscription. + * @access public + * @api + */ + public function getStatus() { + return $this->_sStatus; + } + + /** + * Registers the subscription with the CardGate payment gateway. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function register() { + $aData = [ + 'site_id' => $this->_iSiteId, + 'currency_id' => $this->_sCurrency, + 'url_callback' => $this->_sCallbackUrl, + 'url_success' => $this->_sSuccessUrl, + 'url_failure' => $this->_sFailureUrl, + 'url_pending' => $this->_sPendingUrl, + 'description' => $this->_sDescription, + 'reference' => $this->_sReference, + 'recurring' => true, + 'period' => $this->_iPeriod, + 'period_type' => $this->_sPeriodType, + 'period_price' => $this->_iPeriodPrice, + 'initial_payment' => $this->_iInitialPayment, + 'trial_period' => $this->_iTrialPeriod, + 'trial_period_type' => $this->_sTrialPeriodType, + 'trial_period_price' => $this->_iTrialPeriodPrice, + 'start_date' => $this->_sStartDate, + 'end_date' => $this->_sEndDate, + ]; + if ( ! is_null( $this->_oConsumer ) ) { + $aData['email'] = $this->_oConsumer->getEmail(); + $aData['phone'] = $this->_oConsumer->getPhone(); + $aData['consumer'] = array_merge( + $this->_oConsumer->address()->getData(), + $this->_oConsumer->shippingAddress()->getData( 'shipto_' ) + ); + $aData['country_id'] = $this->_oConsumer->address()->getCountry(); + } + if ( ! is_null( $this->_oCart ) ) { + $aData['cartitems'] = $this->_oCart->getData(); + } + + $sResource = 'subscription/register/'; + + if ( ! empty( $this->_oPaymentMethod ) ) { + $aData['pt'] = $this->_oPaymentMethod->getId(); + $aData['issuer'] = $this->_sIssuer; + } + + $aData = array_filter( $aData ); // remove NULL values + $aResult = $this->_oClient->doRequest( $sResource, $aData, 'POST' ); + + if ( + empty( $aResult ) + || empty( $aResult['subscription'] ) + ) { + throw new Exception( 'Subscription.Request.Invalid', 'unexpected result: ' . $this->_oClient->getLastResult() . $this->_oClient->getDebugInfo( TRUE, FALSE ) ); + } + $this->_sId = $aResult['subscription']; + if ( + isset( $aResult['subscription']['action'] ) + && 'redirect' == $aResult['subscription']['action'] + ) { + $this->_sActionUrl = $aResult['subscription']['url']; + } + + return $this; + } + + /** + * Change the subscription status. + * @return bool Whether the status change succeeded. + * @throws Exception + * @access public + * @api + */ + public function changeStatus( $sStatus_ ) { + + if ( empty( $this->_sId ) ) { + throw new Exception( 'Subscription.Request.Invalid', 'invalid subscription id' ); + } + + if ( ! in_array( $sStatus_, [ 'reactivate' , 'suspend', 'cancel', 'deactivate' ] ) ) { + throw new Exception( 'Subscription.Status.Invalid', 'invalid subscription status provided' ); + } + + $aData = [ + 'subscription_id' => $this->_sId, + 'description' => $this->_sDescription, + ]; + + $sResource = 'subscription/' . $sStatus_ . '/'; + + $aData = array_filter( $aData ); // remove NULL values + $aResult = $this->_oClient->doRequest( $sResource, $aData, 'POST' ); + + if ( FALSE == $aResult['success'] ) { + // oClient will have thrown an error if there was a proper error from the API, so this is weird! + throw new Exception( 'Subscription.Request.Invalid', 'unexpected result: ' . $this->_oClient->getLastResult() . $this->_oClient->getDebugInfo( TRUE, FALSE ) ); + } + + return TRUE; + } + + } + +} diff --git a/cardgate/classes/cardgate-clientlib-php/src/Transaction.php b/cardgate/classes/cardgate-clientlib-php/src/Transaction.php new file mode 100644 index 0000000..ccd8bbb --- /dev/null +++ b/cardgate/classes/cardgate-clientlib-php/src/Transaction.php @@ -0,0 +1,793 @@ +_oClient = $oClient_; + $this->setSiteId( $iSiteId_ )->setAmount( $iAmount_ )->setCurrency( $sCurrency_ ); + } + + /** + * Set the transaction id. + * @param string $sId_ Transaction id to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setId( $sId_ ) { + if ( + ! is_string( $sId_ ) + || empty( $sId_ ) + ) { + throw new Exception( 'Transaction.Id.Invalid', 'invalid id: ' . $sId_ ); + } + $this->_sId = $sId_; + return $this; + } + + /** + * Get the transaction id associated with this transaction. + * @return string The transaction id associated with this transaction. + * @throws Exception + * @access public + * @api + */ + public function getId() { + if ( empty( $this->_sId ) ) { + throw new Exception( 'Transaction.Not.Initialized', 'invalid transaction state' ); + } + return $this->_sId; + } + + /** + * Configure the transaction object with a site id. + * @param int $iSiteId_ Site id to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setSiteId( $iSiteId_ ) { + if ( ! is_integer( $iSiteId_ ) ) { + throw new Exception( 'Transaction.SiteId.Invalid', 'invalid site: ' . $iSiteId_ ); + } + $this->_iSiteId = $iSiteId_; + return $this; + } + + /** + * Get the site id associated with this transaction. + * @return int The site id associated with this transaction. + * @access public + * @api + */ + public function getSiteId() { + return $this->_iSiteId; + } + + /** + * Set the Site key to authenticate the hash in the request. + * @param string $sSiteKey_ The site key to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setSiteKey( $sSiteKey_ ) { + if ( ! is_string( $sSiteKey_ ) ) { + throw new Exception( 'Client.SiteKey.Invalid', 'invalid site key: ' . $sSiteKey_ ); + } + $this->_sSiteKey = $sSiteKey_; + return $this; + } + + /** + * Get the Merchant API key to authenticate the transaction request with. + * @return string The merchant API key. + * @access public + * @api + */ + public function getSiteKey() { + return $this->_sSiteKey; + } + + /** + * Configure the transaction object with an amount. + * @param int $iAmount_ Amount in cents to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setAmount( $iAmount_ ) { + if ( ! is_integer( $iAmount_ ) ) { + throw new Exception( 'Transaction.Amount.Invalid', 'invalid amount: ' . $iAmount_ ); + } + $this->_iAmount = $iAmount_; + return $this; + } + + /** + * Get the amount of the transaction. + * @return int The amount of the transaction. + * @access public + * @api + */ + public function getAmount() { + return $this->_iAmount; + } + + /** + * Configure the transaction currency. + * @param string $sCurrency_ The currency to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setCurrency( $sCurrency_ ) { + if ( ! is_string( $sCurrency_ ) ) { + throw new Exception( 'Transaction.Currency.Invalid', 'invalid currency: ' . $sCurrency_ ); + } + $this->_sCurrency = $sCurrency_; + return $this; + } + + /** + * Get the currency of the transaction. + * @return string The currency of the transaction. + * @access public + * @api + */ + public function getCurrency() { + return $this->_sCurrency; + } + + /** + * Configure the description for the transaction. + * @param string $sDescription_ The description to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setDescription( $sDescription_ ) { + if ( ! is_string( $sDescription_ ) ) { + throw new Exception( 'Transaction.Description.Invalid', 'invalid description: ' . $sDescription_ ); + } + $this->_sDescription = $sDescription_; + return $this; + } + + /** + * Get the description for the transaction. + * @return string The description of the transaction. + * @access public + * @api + */ + public function getDescription() { + return $this->_sDescription; + } + + /** + * Configure the reference for the transaction. + * @param string $sReference_ The reference to set. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setReference( $sReference_ ) { + if ( ! is_string( $sReference_ ) ) { + throw new Exception( 'Transaction.Reference.Invalid', 'invalid reference: ' . $sReference_ ); + } + $this->_sReference = $sReference_; + return $this; + } + + /** + * Get the reference for the transaction. + * @return string The reference of the transaction. + * @access public + * @api + */ + public function getReference() { + return $this->_sReference; + } + + /** + * Set the payment method to use for the transaction. + * @param Mixed $mPaymentMethod_ The payment method to use for the transaction. Can be one of the + * consts defined in {@link Method} or a {@link Method} instance. + * @return $this + * @throws Exception|\ReflectionException + * @access public + * @api + */ + public function setPaymentMethod( $mPaymentMethod_ ) { + if ( $mPaymentMethod_ instanceof Method ) { + $this->_oPaymentMethod = $mPaymentMethod_; + } elseif ( is_string( $mPaymentMethod_ ) ) { + $this->_oPaymentMethod = new Method( $this->_oClient, $mPaymentMethod_, $mPaymentMethod_ ); + } else { + throw new Exception( 'Transaction.PaymentMethod.Invalid', 'invalid payment method: ' . $mPaymentMethod_ ); + } + return $this; + } + + /** + * Get the payment method that will be used for the transaction. + * @return Method The payment method that will be used for the transaction. + * @access public + * @api + */ + public function getPaymentMethod() { + return $this->_oPaymentMethod; + } + + /** + * Set the optional payment method issuer to use for the transaction. + * @param string $sIssuer_ The payment method issuer to use for the transaction. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setIssuer( $sIssuer_ ) { + if ( + empty( $this->_oPaymentMethod ) + || ! is_string( $sIssuer_ ) + ) { + throw new Exception( 'Transaction.Issuer.Invalid', 'invalid issuer: ' . $sIssuer_ ); + } + $this->_sIssuer = $sIssuer_; + return $this; + } + + /** + * Get the optional payment method issuer that will be used for the transaction. + * @return string The payment method issuer that will be used for the transaction. + * @access public + * @api + */ + public function getIssuer() { + return $this->_sIssuer; + } + + /** + * Set the recurring flag on the transaction. + * @param bool $bRecurring_ Wether or not this transaction can be used for recurring. + * @return $this + * @access public + * @api + */ + public function setRecurring( $bRecurring_ ) { + $this->_bRecurring = (bool) $bRecurring_; + return $this; + } + + /** + * Get the recurring flag of the transaction. + * @return bool Returns wether or not this transaction can be used for recurring. + * @access public + * @api + */ + public function getRecurring() { + return $this->_bRecurring; + } + + /** + * Set the consumer for the transaction. + * @param Consumer $oConsumer_ The consumer for the transaction. + * @return $this + * @access public + * @api + */ + public function setConsumer( Consumer $oConsumer_ ) { + $this->_oConsumer = $oConsumer_; + return $this; + } + + /** + * Get the consumer for the transaction. + * @return Consumer The consumer for the transaction. + * @access public + * @api + */ + public function getConsumer() { + if ( empty( $this->_oConsumer ) ) { + $this->_oConsumer = new Consumer(); + } + return $this->_oConsumer; + } + + /** + * Get the consumer for the transaction. + * @return Consumer The consumer for the transaction. + * @access public + * @api + * @deprecated Will be removed in v2.0.0. + */ + public function getCustomer() { + return $this->getConsumer(); + } + + /** + * Set the cart for the transaction. + * @param Cart $oCart_ The cart for the transaction. + * @return $this + * @access public + * @api + */ + public function setCart( Cart $oCart_ ) { + $this->_oCart = $oCart_; + return $this; + } + + /** + * Get the cart for the transaction. + * @return Cart The cart for the transaction. + * @access public + * @api + */ + public function getCart() { + if ( empty( $this->_oCart ) ) { + $this->_oCart = new Cart(); + } + return $this->_oCart; + } + + /** + * Set the callback URL. + * @param string $sUrl_ The URL to send callbacks to. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setCallbackUrl( $sUrl_ ) { + if ( FALSE === filter_var( $sUrl_, FILTER_VALIDATE_URL ) ) { + throw new Exception( 'Transaction.CallbackUrl.Invalid', 'invalid url: ' . $sUrl_ ); + } + $this->_sCallbackUrl = $sUrl_; + return $this; + } + + /** + * Get the callbacl URL. + * @return string The URL callbacks are being sent to. + * @access public + * @api + */ + public function getCallbackUrl() { + return $this->_sCallbackUrl; + } + + /** + * Set the success URL. + * @param string $sUrl_ The URL to send successful transaction redirects. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setSuccessUrl( $sUrl_ ) { + if ( FALSE === filter_var( $sUrl_, FILTER_VALIDATE_URL ) ) { + throw new Exception( 'Transaction.SuccessUrl.Invalid', 'invalid url: ' . $sUrl_ ); + } + $this->_sSuccessUrl = $sUrl_; + return $this; + } + + /** + * Get the success URL. + * @return string The URL successful transactions are being redirected to. + * @access public + * @api + */ + public function getSuccessUrl() { + return $this->_sSuccessUrl; + } + + /** + * Set the failure URL. + * @param string $sUrl_ The URL to send failed transaction redirects. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setFailureUrl( $sUrl_ ) { + if ( FALSE === filter_var( $sUrl_, FILTER_VALIDATE_URL ) ) { + throw new Exception( 'Transaction.FailureUrl.Invalid', 'invalid url: ' . $sUrl_ ); + } + $this->_sFailureUrl = $sUrl_; + return $this; + } + + /** + * Get the failure URL. + * @return string The URL failed transactions are being redirected to. + * @access public + * @api + */ + public function getFailureUrl() { + return $this->_sFailureUrl; + } + + /** + * Set the failure URL. + * @param string $sUrl_ The URL to send failed transaction redirects. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setPendingUrl( $sUrl_ ) { + if ( FALSE === filter_var( $sUrl_, FILTER_VALIDATE_URL ) ) { + throw new Exception( 'Transaction.PendingUrl.Invalid', 'invalid url: ' . $sUrl_ ); + } + $this->_sPendingUrl = $sUrl_; + return $this; + } + + /** + * Use this method to set the url for success, failure and pending all at once. + * @param string $sUrl_ The URL to use for success, failure and pending. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function setRedirectUrl( $sUrl_ ) { + $this->setSuccessUrl( $sUrl_ )->setFailureUrl( $sUrl_ )->setPendingUrl( $sUrl_ ); + return $this; + } + + /** + * Get the pending URL. + * @return string The URL pending transactions are being redirected to. + * @access public + * @api + */ + public function getPendingUrl() { + return $this->_sPendingUrl; + } + + /** + * Get the redirect URL after transaction register. + * @return string The URL to redirect to after register. + * @access public + * @api + */ + public function getActionUrl() { + return $this->_sActionUrl; + } + + /** + * Registers the transaction with the cardgate payment gateway. + * @return $this + * @throws Exception + * @access public + * @api + */ + public function register() { + $aData = [ + 'site_id' => $this->_iSiteId, + 'amount' => $this->_iAmount, + 'currency_id' => $this->_sCurrency, + 'url_callback' => $this->_sCallbackUrl, + 'url_success' => $this->_sSuccessUrl, + 'url_failure' => $this->_sFailureUrl, + 'url_pending' => $this->_sPendingUrl, + 'description' => $this->_sDescription, + 'reference' => $this->_sReference, + 'recurring' => $this->_bRecurring ? '1' : '0' + ]; + if ( ! is_null( $this->_oConsumer ) ) { + $aData['email'] = $this->_oConsumer->getEmail(); + $aData['phone'] = $this->_oConsumer->getPhone(); + $aData['consumer'] = array_merge( + $this->_oConsumer->address()->getData(), + $this->_oConsumer->shippingAddress()->getData( 'shipto_' ) + ); + $aData['country_id'] = $this->_oConsumer->address()->getCountry(); + } + if ( ! is_null( $this->_oCart ) ) { + $aData['cartitems'] = $this->_oCart->getData(); + } + + $sResource = 'payment/'; + if ( ! empty( $this->_oPaymentMethod ) ) { + $sResource .= $this->_oPaymentMethod->getId() . '/'; + $aData['issuer'] = $this->_sIssuer; + } + + $aData = array_filter( $aData ); // remove NULL values + $aResult = $this->_oClient->doRequest( $sResource, $aData, 'POST' ); + + if ( + empty( $aResult['payment'] ) + || empty( $aResult['payment']['transaction'] ) + ) { + throw new Exception( 'Transaction.Request.Invalid', 'unexpected result: ' . $this->_oClient->getLastResult() . $this->_oClient->getDebugInfo( TRUE, FALSE ) ); + } + $this->_sId = $aResult['payment']['transaction']; + if ( + isset( $aResult['payment']['action'] ) + && 'redirect' == $aResult['payment']['action'] + ) { + $this->_sActionUrl = $aResult['payment']['url']; + } + + return $this; + } + + /** + * This method can be used to determine if this transaction can be refunded. + * @param bool $iRemainder_ Will be set to the amount that can be refunded. + * refunds are supported. + * @return bool + * @throws Exception + * @access public + */ + public function canRefund( &$iRemainder_ = NULL ) { + $sResource = "transaction/{$this->_sId}/"; + + $aResult = $this->_oClient->doRequest( $sResource, NULL, 'GET' ); + + if ( empty( $aResult['transaction'] ) ) { + throw new Exception( 'Transaction.CanRefund.Invalid', 'unexpected result: ' . $this->_oClient->getLastResult() . $this->_oClient->getDebugInfo( TRUE, FALSE ) ); + } + + $iRemainder_ = (int) @$aResult['transaction']['refund_remainder']; + + return !empty( $aResult['transaction']['can_refund'] ); + } + + /** + * This method can be used to (partially) refund a transaction. + * @param int $iAmount_ + * @return Transaction The new (refund) transaction. + * @throws Exception + * @access public + * @api + */ + public function refund( $iAmount_ = NULL, $sDescription_ = NULL ) { + if ( + ! is_null( $iAmount_ ) + && ! is_integer( $iAmount_ ) + ) { + throw new Exception( 'Transaction.Amount.Invalid', 'invalid amount: ' . $iAmount_ ); + } + + $aData = [ + 'amount' => is_null( $iAmount_ ) ? $this->_iAmount : $iAmount_, + 'currency_id' => $this->_sCurrency, + 'description' => $sDescription_ + ]; + + $sResource = "refund/{$this->_sId}/"; + + $aData = array_filter( $aData ); // remove NULL values + $aResult = $this->_oClient->doRequest( $sResource, $aData, 'POST' ); + + if ( + empty( $aResult['refund'] ) + || empty( $aResult['refund']['transaction'] ) + ) { + throw new Exception( 'Transaction.Refund.Invalid', 'unexpected result: ' . $this->_oClient->getLastResult() . $this->_oClient->getDebugInfo( TRUE, FALSE ) ); + } + + // This is a bit unlogical! Why not leave this to the callee? + return $this->_oClient->transactions()->get( $aResult['refund']['transaction'] ); + } + + /** + * This method can be used to recur a transaction. + * @param int $iAmount_ + * @param string $sReference_ Optional reference for the recurring transaction. + * @param string $sDescription_ Optional description for the recurring transaction. + * @return Transaction The new (recurred) transaction. + * @throws Exception + * @access public + * @api + */ + public function recur( $iAmount_, $sReference_ = NULL, $sDescription_ = NULL ) { + if ( ! is_integer( $iAmount_ ) ) { + throw new Exception( 'Transaction.Amount.Invalid', 'invalid amount: ' . $iAmount_ ); + } + + $aData = [ + 'amount' => $iAmount_, + 'currency_id' => $this->_sCurrency, + 'reference' => $sReference_, + 'description' => $sDescription_ + ]; + + $sResource = "recurring/{$this->_sId}/"; + + $aData = array_filter( $aData ); // remove NULL values + $aResult = $this->_oClient->doRequest( $sResource, $aData, 'POST' ); + + if ( + empty( $aResult['recurring'] ) + || empty( $aResult['recurring']['transaction_id'] ) + ) { + throw new Exception( 'Transaction.Recur.Invalid', 'unexpected result: ' . $this->_oClient->getLastResult() . $this->_oClient->getDebugInfo( TRUE, FALSE ) ); + } + + // Same unlogical stuff as method above! Why not leave this to the callee? + return $this->_oClient->transactions()->get( $aResult['recurring']['transaction_id'] ); + } + + } + +} diff --git a/cardgate/classes/cardgate-clientlib-php/src/resource/Base.php b/cardgate/classes/cardgate-clientlib-php/src/resource/Base.php new file mode 100644 index 0000000..0aa6998 --- /dev/null +++ b/cardgate/classes/cardgate-clientlib-php/src/resource/Base.php @@ -0,0 +1,54 @@ +_oClient = $oClient_; + } + + } + +} diff --git a/cardgate/classes/cardgate-clientlib-php/src/resource/Consumers.php b/cardgate/classes/cardgate-clientlib-php/src/resource/Consumers.php new file mode 100644 index 0000000..eeb5cb7 --- /dev/null +++ b/cardgate/classes/cardgate-clientlib-php/src/resource/Consumers.php @@ -0,0 +1,47 @@ +_oClient, $sId_, $sId_ ); + } + + /** + * This method can be used to retrieve a list of all available payment methods for a site. + * @param int $iSiteId_ The site to retrieve payment methods for. + * @return array + * @throws \cardgate\api\Exception|\ReflectionException + * @access public + * @api + */ + public function all( $iSiteId_ ) { + if ( ! is_integer( $iSiteId_ ) ) { + throw new \cardgate\api\Exception( 'Methods.SiteId.Invalid', 'invalid site id: ' . $iSiteId_ ); + } + + $sResource = "options/{$iSiteId_}/"; + + $aResult = $this->_oClient->doRequest( $sResource, NULL, 'GET' ); + + if ( empty( $aResult['options'] ) ) { + throw new \cardgate\api\Exception( 'Method.Options.Invalid', 'unexpected result: ' . $this->_oClient->getLastResult() . $this->_oClient->getDebugInfo( TRUE, FALSE ) ); + } + + $aMethods = []; + foreach( $aResult['options'] as $aOption ) { + try { + $aMethods[] = new \cardgate\api\Method( $this->_oClient, $aOption['id'], $aOption['name'] ); + } catch ( \cardgate\api\Exception $oException_ ) { + trigger_error( $oException_->getMessage() . '. Please update this SDK to the latest version.', E_USER_WARNING ); + } + } + return $aMethods; + } + + } + +} diff --git a/cardgate/classes/cardgate-clientlib-php/src/resource/Subscriptions.php b/cardgate/classes/cardgate-clientlib-php/src/resource/Subscriptions.php new file mode 100644 index 0000000..0544a3d --- /dev/null +++ b/cardgate/classes/cardgate-clientlib-php/src/resource/Subscriptions.php @@ -0,0 +1,115 @@ +_oClient->doRequest( $sResource, NULL, 'GET' ); + + if ( empty( $aResult['subscription'] ) ) { + throw new \cardgate\api\Exception( 'Subscription.Details.Invalid', 'invalid subscription data returned' ); + } + + if ( ! is_null( $aDetails_ ) ) { + $aDetails_ = array_merge( $aDetails_, $aResult['subscription'] ); + } + + $oSubscription = new \cardgate\api\Subscription( + $this->_oClient, + (int) $aResult['subscription']['site_id'], + (int) $aResult['subscription']['period'], + $aResult['subscription']['period_type'], + (int) $aResult['subscription']['period_price'] + ); + $oSubscription->setId( $aResult['subscription']['nn_id'] ); + if ( ! empty( $aResult['subscription']['description'] ) ) { + $oSubscription->setDescription( $aResult['subscription']['description'] ); + } + if ( ! empty( $aResult['subscription']['reference'] ) ) { + $oSubscription->setReference( $aResult['subscription']['reference'] ); + } + if ( ! empty( $aResult['subscription']['start_date'] ) ) { + $oSubscription->setStartDate( $aResult['subscription']['start_date'] ); + } + if ( ! empty( $aResult['subscription']['end_date'] ) ) { + $oSubscription->setEndDate( $aResult['subscription']['end_date'] ); + } + // TODO: map other subscription fields? method_id can't be used in client::Method currently... + /* + if ( ! empty( $aResult['subscription']['code'] ) ) { + $oSubscription->setCode( $aResult['subscription']['code'] ); + } + if ( ! empty( $aResult['subscription']['payment_type_id'] ) ) { + $oSubscription->setPaymentMethod( $aResult['subscription']['payment_type_id'] ); + } + if ( ! empty( $aResult['subscription']['last_payment_date'] ) ) { + $oSubscription->setPaymentMethod( $aResult['subscription']['last_payment_date'] ); + } + */ + + return $oSubscription; + } + + /** + * This method can be used to create a new subscription. + * @param int $iSiteId_ Site id to create the subscription for. + * @param int $iPeriod_ The period length of the subscription. + * @param string $sPeriodType_ The period type of the subscription (e.g. day, week, month, year). + * @param int $iPeriodAmount_ The period amount of the subscription in cents. + * @param string $sCurrency_ Currency (ISO 4217) + * @return \cardgate\api\Subscription + * @throws \cardgate\api\Exception + * @access public + * @api + */ + public function create( $iSiteId_, $iPeriod_, $sPeriodType_, $iPeriodAmount_, $sCurrency_ = 'EUR' ) { + return new \cardgate\api\Subscription( $this->_oClient, $iSiteId_, $iPeriod_, $sPeriodType_, $iPeriodAmount_, $sCurrency_ ); + } + + } + +} diff --git a/cardgate/classes/cardgate-clientlib-php/src/resource/Transactions.php b/cardgate/classes/cardgate-clientlib-php/src/resource/Transactions.php new file mode 100644 index 0000000..00ec455 --- /dev/null +++ b/cardgate/classes/cardgate-clientlib-php/src/resource/Transactions.php @@ -0,0 +1,169 @@ +_oClient->doRequest( $sResource, NULL, 'GET' ); + + if ( empty( $aResult['transaction'] ) ) { + throw new \cardgate\api\Exception( 'Transaction.Details.Invalid', 'invalid transaction data returned' . $this->_oClient->getDebugInfo() ); + } + + if ( ! is_null( $aDetails_ ) ) { + $aDetails_ = array_merge( $aDetails_, $aResult['transaction'] ); + } + + $oTransaction = new \cardgate\api\Transaction( + $this->_oClient, + (int) $aResult['transaction']['site_id'], + (int) $aResult['transaction']['amount'], + $aResult['transaction']['currency_id'] + ); + $oTransaction->setId( $aResult['transaction']['id'] ); + if ( ! empty( $aResult['transaction']['description'] ) ) { + $oTransaction->setDescription( $aResult['transaction']['description'] ); + } + if ( ! empty( $aResult['transaction']['reference'] ) ) { + $oTransaction->setReference( $aResult['transaction']['reference'] ); + } + if ( ! empty( $aResult['transaction']['option'] ) ) { + $oTransaction->setPaymentMethod( $aResult['transaction']['option'] ); + } + + return $oTransaction; + } + + /** + * This method can be used to retrieve a transaction status. + * @param string $sTransactionId_ The transaction identifier. + * @return string + * @throws \cardgate\api\Exception + * @access public + * @api + */ + public function status( $sTransactionId_ ) { + if ( ! is_string( $sTransactionId_ ) ) { + throw new \cardgate\api\Exception( 'Transaction.Id.Invalid', 'invalid transaction id: ' . $sTransactionId_ ); + } + + $sResource = "status/{$sTransactionId_}/"; + + $aResult = $this->_oClient->doRequest( $sResource, NULL, 'GET' ); + + if ( + empty( $aResult['status'] ) + || ! is_string( $aResult['status'] ) + ) { + throw new \cardgate\api\Exception( 'Transaction.Status.Invalid', 'invalid transaction status returned' . $this->_oClient->getDebugInfo() ); + } + + return $aResult['status']; + } + + /** + * This method can be used to create a new transaction. + * @param int $iSiteId_ Site id to create transaction for. + * @param int $iAmount_ The amount of the transaction in cents. + * @param string $sCurrency_ Currency (ISO 4217) + * @return \cardgate\api\Transaction + * @throws \cardgate\api\Exception + * @access public + * @api + */ + public function create( $iSiteId_, $iAmount_, $sCurrency_ = 'EUR' ) { + return new \cardgate\api\Transaction( $this->_oClient, $iSiteId_, $iAmount_, $sCurrency_ ); + } + + /** + * This method can be used to verify a callback for a transaction. + * @param array $aData_ The callback data (usually $_GET) to use for verification. + * @param string $sSiteKey_ The site key used to verify hash. Leave empty to check hash with the + * use of the merchant key only (otherwise both are checked). + * @return bool Returns TRUE if the callback is valid or FALSE if not. + * @throws \cardgate\api\Exception + * @access public + * @api + */ + public function verifyCallback( $aData_, $sSiteKey_ = NULL ) { + foreach( [ 'transaction', 'currency', 'amount', 'reference', 'code', 'hash', 'status' ] as $sRequiredKey ) { + if ( ! isset( $aData_[$sRequiredKey] ) ) { + throw new \cardgate\api\Exception( 'Transaction.Callback.Missing', 'missing callback data: ' . $sRequiredKey ); + } + } + $sPrefix = ''; + if ( ! empty( $aData_['testmode'] ) ) { + $sPrefix = 'TEST'; + } + return ( + ( + NULL !== $sSiteKey_ + && md5( + $sPrefix + . $aData_['transaction'] + . $aData_['currency'] + . $aData_['amount'] + . $aData_['reference'] + . $aData_['code'] + . $sSiteKey_ + ) == $aData_['hash'] + ) + || md5( + $sPrefix + . $aData_['transaction'] + . $aData_['currency'] + . $aData_['amount'] + . $aData_['reference'] + . $aData_['code'] + . $this->_oClient->getKey() + ) == $aData_['hash'] + ); + } + + } + +} diff --git a/cardgate/classes/cardgate-clientlib-php/src/resource/Version.php b/cardgate/classes/cardgate-clientlib-php/src/resource/Version.php new file mode 100644 index 0000000..bcb4d78 --- /dev/null +++ b/cardgate/classes/cardgate-clientlib-php/src/resource/Version.php @@ -0,0 +1,68 @@ + 'platform_name', + 'PlatformVersion' => 'platform_version', + 'PluginName' => 'plugin_name', + 'PluginVersion' => 'plugin_version', + ]; + + } + +} diff --git a/cardgate/classes/cardgate.php b/cardgate/classes/cardgate.php new file mode 100755 index 0000000..ff72617 --- /dev/null +++ b/cardgate/classes/cardgate.php @@ -0,0 +1,446 @@ + 'afterpay', + 'CARDGATE_BANCONTACT' => 'bancontact', + 'CARDGATE_BANKTRANSFER' => 'banktransfer', + 'CARDGATE_BILLINK' => 'billink', + 'CARDGATE_BITCOIN' => 'bitcoin', + 'CARDGATE_CREDITCARD' => 'creditcard', + 'CARDGATE_DIRECTDEBIT' => 'directdebit', + 'CARDGATE_GIFTCARD' => 'giftcard', + 'CARDGATE_GIROPAY' => 'giropay', + 'CARDGATE_IDEALPRO' => 'idealpro', + 'CARDGATE_IDEALQR' => 'idealqr', + 'CARDGATE_KLARNA' => 'klarna', + 'CARDGATE_PAYPAL' => 'paypal', + 'CARDGATE_PAYSAFECARD' => 'paysafecard', + 'CARDGATE_PAYSAFECASH' => 'paysafecash', + 'CARDGATE_PRZELEWY24' => 'przelewy24', + 'CARDGATE_SOFORTBANKING' => 'sofortbanking' + ); + + /** + * php style constructor + * + * @access public + */ + function __construct() { + global $xtLink; + } + + /** + * XTC-Funktion, um das Paymentrequest an einen externen PSP zu senden + * + * Die Funktion spiegelt in etwa die alte "payment_action" wieder. An dieser Stelle + * wird die Anfrage gestellt und je nach der Ergebnis der Sprung auf die entsprechende + * Seite vorbereitet (idR IFrame oder Fehlerseite) + * + * @param $order_data array + * mit den wichtigsten Infos zur Bestellung + * @return URL, zu der als nächstes gesprungen werden soll + * @access public + */ + function pspRedirect($aOrderData = null) { + global $xtLink, $filter, $order, $db, $language; + require_once 'cardgate-clientlib-php/init.php'; + + if (! $aOrderData) { + $aOrderData = $order->order_data; + } + $iOrderId = ( int ) $aOrderData ['orders_id']; + if (! is_int ( $iOrderId )) { + return $xtLink->_link ( array ( + 'page' => 'cardgate_checkout', + 'paction' => 'failure', + 'conn' => 'SSL', + 'params' => 'code_1=210' + ) ); + } + // Special, da xt der Meinung ist alle alten GET Parameter mit anzuh�ngen + $_GET = array (); + + // Anfrage durchführen + + try { + + $iMerchantId = ( int ) CARDGATE_MERCHANT_ID; + $sMerchantApiKey = CARDGATE_MERCHANT_API_KEY; + $bIsTest = (CARDGATE_TEST_MODE == 'true' ? true : false); + $sLanguage = $aOrderData ['language_code']; + if ($this->getMajorVersion () <= 4) { + $sPlatformVersion = 'xtCommerce4'; + } else { + $sPlatformVersion = 'xtCommerce5'; + } + $iSiteId = ( int ) CARDGATE_SITE_ID; + $iAmount = ( int ) round ( $order->order_total ['total'] ['plain'] * 100 ); + $sCurrency = $aOrderData ['currency_code']; + $sPaymentMethod = substr ( $aOrderData ['payment_code'], 8 ); + + $sSuccessUrl = $this->_link ( array ( + 'page' => 'cardgate_checkout', + 'conn' => 'SSL' + ) ); + $sFailureUrl = $sSuccessUrl; + $sCallbackUrl = $this->_link ( array ( + 'lang_code' => $language->default_language, + 'page' => 'cardgate_checkout', + 'paction' => 'confirm', + 'conn' => 'SSL' + ) ); + $reference = 'O' . time () . $iOrderId; + + $oCardGate = new cardgate\api\Client ( ( int ) $iMerchantId, $sMerchantApiKey, $bIsTest ); + $oCardGate->setIp ( $_SERVER ['REMOTE_ADDR'] ); + $oCardGate->setLanguage ( $sLanguage ); + $oCardGate->version ()->setPlatformName ( 'xtCommerce' ); + $oCardGate->version ()->setPlatformVersion ( $sPlatformVersion ); + $oCardGate->version ()->setPluginName ( 'CardGate' ); + $oCardGate->version ()->setPluginVersion ( $this->version ); + + $oTransaction = $oCardGate->transactions ()->create ( $iSiteId, $iAmount, $sCurrency ); + + // Configure payment option. + $oTransaction->setPaymentMethod ( $sPaymentMethod ); + if ($sPaymentMethod == 'ideal') { + $oTransaction->setIssuer ( $_SESSION ['cardgate_ideal_bank'] ); + } + + // Configure customer. + $oConsumer = $oTransaction->getConsumer (); + $oConsumer->setEmail ( $order->order_data ['customers_email_address'] ); + $oConsumer->address ()->setFirstName ( $order->order_data ['billing_firstname'] ); + $oConsumer->address ()->setLastName ( $order->order_data ['billing_lastname'] ); + $oConsumer->address ()->setAddress ( $order->order_data ['billing_street_address'] ); + $oConsumer->address ()->setZipCode ( $order->order_data ['billing_postcode'] ); + $oConsumer->address ()->setCity ( $order->order_data ['billing_city'] ); + $oConsumer->address ()->setCountry ( $order->order_data ['billing_country_code'] ); + + // add cartitmes + + $oCart = $oTransaction->getCart (); + $aCartItems = $this->getCartItems ( $order, $iAmount ); + + foreach ( $aCartItems as $item ) { + switch ($item ['type']) { + case 'product' : + $iItemType = \cardgate\api\Item::TYPE_PRODUCT; + break; + case 'shipping' : + $iItemType = \cardgate\api\Item::TYPE_SHIPPING; + break; + case 'paymentfee' : + $iItemType = \cardgate\api\Item::TYPE_HANDLING; + break; + case 'discount' : + $iItemType = \cardgate\api\Item::TYPE_DISCOUNT; + break; + } + + $oItem = $oCart->addItem ( $iItemType, $item ['model'], $item ['name'], $item ['quantity'], $item ['price_wt'] ); + $oItem->setVat ( $item ['vat'] ); + $oItem->setVatAmount ( $item ['vat_amount'] ); + $oItem->setVatIncluded ( 0 ); + } + + $oTransaction->setCallbackUrl ( $sCallbackUrl ); + $oTransaction->setSuccessUrl ( $sSuccessUrl ); + $oTransaction->setFailureUrl ( $sFailureUrl ); + + $oTransaction->setReference ( $reference ); + $oTransaction->setDescription ( 'Order ' . $iOrderId ); + + $result = @$db->Execute ( "INSERT INTO " . $this->_transaction_table . " (TRID, PAYSYS, STATE, DATE, ORDERID) VALUES ('" . $reference . "', '" . $sPaymentMethod . "','REDIRECTED', NOW(), $iOrderId)" ); + + $oTransaction->register (); + + $sActionUrl = $oTransaction->getActionUrl (); + + if (NULL !== $sActionUrl) { + return $sActionUrl; + } else { + $sErrorMessage = 'CardGate error: ' . htmlspecialchars ( $oException_->getMessage () ); + $this->_failureRedirect ( $sErrorMessage ); + } + } catch ( cardgate\api\Exception $oException_ ) { + $sErrorMessage = 'CardGate error: ' . htmlspecialchars ( $oException_->getMessage () ); + $this->_failureRedirect ( $sErrorMessage ); + } + } + + /** + * XTC-Funktion, um auf eine spezielle Success-Seite zu springen + * + * Da der Aufruf in der checkout-Klasse "payment_process" falsch ausgewertet wird (!= anstatt !==) + * macht die Funktion zur Zeit keinen Sinn, da auch eine URL "true" wäre und nie aufgerufen werden + * würde. + * + * @return URL oder true + * @access public + */ + function pspSuccess() { + return true; + } + + /** + * Führt Prüfungen vor Absenden des Request durch + * + * @return true im Erfolgsfall, ansonsten Array mit Daten für Sprung zur Fehlerseite + * @access private + */ + function _checkOrderData($order_data) { + // Prüfen, ob Paymenttype gsetezt + if (! array_key_exists ( $_SESSION ['selected_payment_sub'], $this->paymentTypes )) { + return array ( + 'page' => 'cardgate_checkout', + 'paction' => 'failure', + 'conn' => 'SSL', + 'params' => 'code_1=209' + ); + } + return true; + } + function _link($data) { + global $xtLink; + $ampedLink = $xtLink->_link ( $data ); + $link = str_replace ( '&', '&', $ampedLink ); + return $link; + } + function _failureRedirect($message) { + global $xtLink; + $failureUrl = $xtLink->_link ( array ( + 'page' => 'cardgate_checkout', + 'params' => 'message=' . $message, + 'conn' => 'SSL' + ) ); + $xtLink->_redirect ( $failureUrl ); + } + function getMajorVersion() { + $parts = explode ( '.', _SYSTEM_VERSION ); + return ( int ) $parts [0]; + } + function getMinorVersion() { + $parts = explode ( '.', _SYSTEM_VERSION ); + return ( int ) $parts [1]; + } + private function getCartItems($oOrder, $iAmount) { + $items = array (); + $nr = 0; + $iCartItemTotal = 0; + $iCartItemTaxTotal = 0; + $iOrderTotal = ( int ) round ( $oOrder->order_total ['total'] ['plain'] * 100 ); + $aOrderItems = $oOrder->order_products; + + // any discount will be already calculated in the item total + foreach ( $aOrderItems as $aItem ) { + + $iQty = ( int ) $aItem ['products_quantity']; + $iPrice = ( int ) round ( $aItem ['products_price'] ['plain_otax'] * 100 ); + $iTax = ( int ) round ( $aItem ['products_tax'] ['plain'] * 100 ); + $iTotal = ( int ) round ( $iPrice + $iTax ); + $iTaxrate = ($iTax > 0 ? round ( ($iTotal / $iPrice - 1) * 100, 2 ) : 0); + + $nr ++; + + $items [$nr] ['type'] = 'product'; + $items [$nr] ['model'] = $aItem ['products_model']; + $items [$nr] ['name'] = $aItem ['products_name']; + $items [$nr] ['quantity'] = $iQty; + $items [$nr] ['price_wt'] = $iPrice; + $items [$nr] ['vat'] = $iTaxrate; + $items [$nr] ['vat_amount'] = $iTax; + + $iCartItemTotal += round ( $iPrice * $iQty ); + $iCartItemTaxTotal += round ( $iTax * $iQty ); + } + + $iShippingTotal = 0; + $iShippingVatTotal = 0; + $sub_content = $_SESSION ['cart']->show_sub_content; + if (isset ( $sub_content ['shipping'] )) { + $aShipping = $sub_content ['shipping']; + + $iQty = ( int ) $aShipping ['products_quantity']; + $iPrice = ( int ) round ( $aShipping ['products_price'] ['plain_otax'] * 100 ); + $iTax = ( int ) round ( $aShipping ['products_tax'] ['plain'] * 100 ); + $iTotal = ( int ) round ( $iPrice + $iTax ); + $iTaxrate = ($iTax > 0 ? round ( ($iTotal / $iPrice - 1) * 100, 2 ) : 0); + + $nr ++; + + $items [$nr] ['type'] = 'shipping'; + $items [$nr] ['model'] = $aShipping ['products_model']; + $items [$nr] ['name'] = $aShipping ['products_name']; + $items [$nr] ['quantity'] = $iQty; + $items [$nr] ['price_wt'] = $iPrice; + $items [$nr] ['vat'] = $iTaxrate; + $items [$nr] ['vat_amount'] = $iTax; + + $iShippingTotal = $iPrice; + $iShippingVatTotal = $iTax; + } + + $iExtraFee=0; + + $aOrderTotals = $oOrder->order_total_data; + foreach($aOrderTotals as $aOrderTotal){ + if ($aOrderTotal['orders_total_key'] == 'payment'){ + $iQty = ( int ) 1; + $iPrice = ( int ) round ( $aOrderTotal ['orders_total_price'] ['plain_otax'] * 100 ); + + $nr ++; + + $items [$nr] ['type'] = 'paymentfee'; + $items [$nr] ['model'] = $aOrderTotal['orders_total_model']; + $items [$nr] ['name'] = $aOrderTotal ['orders_total_name']; + $items [$nr] ['quantity'] = $iQty; + $items [$nr] ['price_wt'] = $iPrice; + $items [$nr] ['vat'] = 0; + $items [$nr] ['vat_amount'] = 0; + $iExtraFee += $iPrice; + } + } + + $iCorrection = round ( $iOrderTotal - $iCartItemTotal - $iCartItemTaxTotal - $iShippingTotal - $iShippingVatTotal - $iExtraFee ); + + if ($iCorrection != 0) { + + $nr ++; + $items [$nr] ['type'] = 'product'; + $items [$nr] ['model'] = 'Correction'; + $items [$nr] ['name'] = 'item_correction'; + $items [$nr] ['quantity'] = 1; + $items [$nr] ['price_wt'] = $iCorrection; + $items [$nr] ['vat'] = 0; + $items [$nr] ['vat_amount'] = 0; + } + return $items; + } + function getBanks() { + $this->checkBanks(); + $aIssuers = $this->fetchIssuers(); + + $options = array (); + + foreach ( $aIssuers as $aIssuer ) { + + $options [] = array ( + 'id' => $aIssuer ['id'], + 'name' => $aIssuer ['name'] + ); + } + return $options; + } + + function checkBanks(){ + global $db; + + $sMode = (CARDGATE_TEST_MODE == 'true'? 'TEST': 'LIVE'); + + $sIssuerRefresh = $db->GetOne("SELECT config_value FROM ".TABLE_CONFIGURATION_PAYMENT." WHERE config_key='CARDGATEIDEAL_ISSUER_REFRESH'"); + if ($sIssuerRefresh === NULL){ + $oResult = $db->Execute("SELECT payment_id, shop_id FROM ".TABLE_CONFIGURATION_PAYMENT." WHERE config_key='CARDGATEIDEAL_ORDER_STATUS_NEW'"); + $aFields = $oResult->fields; + $db->Execute("INSERT INTO ". TABLE_CONFIGURATION_PAYMENT." (config_key, config_value, type, payment_id, shop_id ) VALUES ('CARDGATEIDEAL_ISSUER_REFRESH', '".$sMode."0', 'hidden', ". $aFields['payment_id'].", '". $aFields['shop_id']."')"); + } + $sIssuerRefresh = $db->GetOne("SELECT config_value FROM ".TABLE_CONFIGURATION_PAYMENT." WHERE config_key='CARDGATEIDEAL_ISSUER_REFRESH'"); + $sIssuerMode = substr($sIssuerRefresh, 0, 4); + $iIssuerRefresh = (int) substr($sIssuerRefresh, 4); + + if (($sMode != $sIssuerMode) || ($iIssuerRefresh < time())){ + $this->refreshIssuers(); + } + } + + function refreshIssuers(){ + global $db; + + $sIssuers = $db->GetOne("SELECT config_value FROM ".TABLE_CONFIGURATION_PAYMENT." WHERE config_key='CARDGATEIDEAL_ISSUERS'"); + if ($sIssuers === NULL){ + $oResult = $db->Execute("SELECT payment_id, shop_id FROM ".TABLE_CONFIGURATION_PAYMENT." WHERE config_key='CARDGATEIDEAL_ORDER_STATUS_NEW'"); + $aFields = $oResult->fields; + $db->Execute("INSERT INTO ". TABLE_CONFIGURATION_PAYMENT." (config_key, config_value, type, payment_id, shop_id ) VALUES ('CARDGATEIDEAL_ISSUERS', '', 'hidden', ". $aFields['payment_id'].", '". $aFields['shop_id']."')"); + } + + try { + + require_once 'cardgate-clientlib-php/init.php'; + + $iMerchantId = ( int ) CARDGATE_MERCHANT_ID; + $sMerchantApiKey = CARDGATE_MERCHANT_API_KEY; + $bIsTest = (CARDGATE_TEST_MODE == 'true' ? true : false); + + $oCardGate = new cardgate\api\Client ( ( int ) $iMerchantId, $sMerchantApiKey, $bIsTest ); + $oCardGate->setIp ( $_SERVER ['REMOTE_ADDR'] ); + + $aIssuers = $oCardGate->methods ()->get ( cardgate\api\Method::IDEAL )->getIssuers (); + } catch ( cardgate\api\Exception $oException_ ) { + $aIssuers [0] = [ + 'id' => 0, + 'name' => htmlspecialchars ( $oException_->getMessage () ) + ]; + } + + $sIssuers = serialize($aIssuers); + $sMode = ($bIsTest ? 'TEST':'LIVE'); + $iRefreshTime = $sMode . (24 * 60 * 60 + time()); + + $db->execute("UPDATE ". TABLE_CONFIGURATION_PAYMENT. " SET config_value='" .$sIssuers ."' WHERE config_key = 'CARDGATEIDEAL_ISSUERS'" ); + $db->execute("UPDATE ". TABLE_CONFIGURATION_PAYMENT. " SET config_value='" .$iRefreshTime ."' WHERE config_key = 'CARDGATEIDEAL_ISSUER_REFRESH'" ); + } + + function fetchIssuers(){ + global $db; + + $sIssuers = $db->GetOne("SELECT config_value FROM ".TABLE_CONFIGURATION_PAYMENT." WHERE config_key='CARDGATEIDEAL_ISSUERS'"); + $aIssuers = unserialize($sIssuers); + return $aIssuers; + } +} diff --git a/cardgate/installer/install.php b/cardgate/installer/install.php new file mode 100755 index 0000000..42a5355 --- /dev/null +++ b/cardgate/installer/install.php @@ -0,0 +1,63 @@ +Execute(" +CREATE TABLE IF NOT EXISTS `cardgate_transaction` ( + `TRID` varchar(255) NOT NULL default '', + `DATE` datetime NOT NULL default '0000-00-00 00:00:00', + `PAYSYS` varchar(50) NOT NULL default '', + `BRAND` varchar(100) NOT NULL default '', + `ORDERNUMBER` int(11) unsigned NOT NULL default '0', + `ORDERDESCRIPTION` varchar(255) NOT NULL default '', + `STATE` varchar(20) NOT NULL default '', + `MESSAGE` varchar(255) NOT NULL default '', + `ORDERID` int(11) unsigned NOT NULL default '0', + `RESPONSEDATA` TEXT NULL DEFAULT NULL, + PRIMARY KEY (`TRID`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1; +"); + +$db->IgnoreErrors(); +$db->Execute("INSERT INTO ".TABLE_PAYMENT_COST." (`payment_id`, `payment_geo_zone`, `payment_country_code`, `payment_type_value_from`, `payment_type_value_to`, `payment_price`,`payment_allowed`) VALUES(".$payment_id.", 24, '', 0, 10000.00, 0, 1);"); +$db->Execute("INSERT INTO ".TABLE_PAYMENT_COST." (`payment_id`, `payment_geo_zone`, `payment_country_code`, `payment_type_value_from`, `payment_type_value_to`, `payment_price`,`payment_allowed`) VALUES(".$payment_id.", 25, '', 0, 10000.00, 0, 1);"); +$db->Execute("INSERT INTO ".TABLE_PAYMENT_COST." (`payment_id`, `payment_geo_zone`, `payment_country_code`, `payment_type_value_from`, `payment_type_value_to`, `payment_price`,`payment_allowed`) VALUES(".$payment_id.", 26, '', 0, 10000.00, 0, 1);"); +$db->Execute("INSERT INTO ".TABLE_PAYMENT_COST." (`payment_id`, `payment_geo_zone`, `payment_country_code`, `payment_type_value_from`, `payment_type_value_to`, `payment_price`,`payment_allowed`) VALUES(".$payment_id.", 27, '', 0, 10000.00, 0, 1);"); +$db->Execute("INSERT INTO ".TABLE_PAYMENT_COST." (`payment_id`, `payment_geo_zone`, `payment_country_code`, `payment_type_value_from`, `payment_type_value_to`, `payment_price`,`payment_allowed`) VALUES(".$payment_id.", 28, '', 0, 10000.00, 0, 1);"); +$db->Execute("INSERT INTO ".TABLE_PAYMENT_COST." (`payment_id`, `payment_geo_zone`, `payment_country_code`, `payment_type_value_from`, `payment_type_value_to`, `payment_price`,`payment_allowed`) VALUES(".$payment_id.", 29, '', 0, 10000.00, 0, 1);"); +$db->Execute("INSERT INTO ".TABLE_PAYMENT_COST." (`payment_id`, `payment_geo_zone`, `payment_country_code`, `payment_type_value_from`, `payment_type_value_to`, `payment_price`,`payment_allowed`) VALUES(".$payment_id.", 30, '', 0, 10000.00, 0, 1);"); +$db->Execute("INSERT INTO ".TABLE_PAYMENT_COST." (`payment_id`, `payment_geo_zone`, `payment_country_code`, `payment_type_value_from`, `payment_type_value_to`, `payment_price`,`payment_allowed`) VALUES(".$payment_id.", 31, '', 0, 10000.00, 0, 1);"); \ No newline at end of file diff --git a/plugins/cardgate/classes/class.cardgate.php b/plugins/cardgate/classes/class.cardgate.php new file mode 100755 index 0000000..9c5ac55 --- /dev/null +++ b/plugins/cardgate/classes/class.cardgate.php @@ -0,0 +1,397 @@ + 'afterpay', + 'CARDGATE_BANCONTACT' => 'bancontact', + 'CARDGATE_BANKTRANSFER' => 'banktransfer', + 'CARDGATE_BILLINK' => 'billink', + 'CARDGATE_BITCOIN' => 'bitcoin', + 'CARDGATE_CREDITCARD' => 'creditcard', + 'CARDGATE_DIRECTDEBIT' => 'directdebit', + 'CARDGATE_GIROPAY' => 'giropay', + 'CARDGATE_IDEALPRO' => 'idealpro', + 'CARDGATE_IDEALQR' => 'idealqr', + 'CARDGATE_KLARNA' => 'klarna', + 'CARDGATE_PAYPAL' => 'paypal', + 'CARDGATE_PAYSAFECARD' => 'paysafecard', + 'CARDGATE_PRZELEWY24' => 'przelewy24', + 'CARDGATE_SOFORTBANKING' => 'sofortbanking' + ); + + /** + * php style constructor + * + * @access public + */ + function cardgate() { + global $xtLink; + } + + /** + * XTC-Funktion, um das Paymentrequest an einen externen PSP zu senden + * + * Die Funktion spiegelt in etwa die alte "payment_action" wieder. An dieser Stelle + * wird die Anfrage gestellt und je nach der Ergebnis der Sprung auf die entsprechende + * Seite vorbereitet (idR IFrame oder Fehlerseite) + * + * @param $order_data array + * mit den wichtigsten Infos zur Bestellung + * @return URL, zu der als nächstes gesprungen werden soll + * @access public + */ + function pspRedirect($aOrderData = null) { + + global $xtLink, $filter, $order, $db, $language; + require_once 'cardgate-clientlib-php/init.php'; + + if (! $aOrderData) { + $aOrderData = $order->order_data; + } + if (($res = $this->_checkOrderData ( $aOrderData )) !== true) { + return $xtLink->_link ( $res ); + } + + $iOrderId = ( int ) $aOrderData ['orders_id']; + if (! is_int ( $iOrderId )) { + return $xtLink->_link ( array ( + 'page' => 'cardgate_checkout', + 'paction' => 'failure', + 'conn' => 'SSL', + 'params' => 'code_1=210' + ) ); + } + // Special, da xt der Meinung ist alle alten GET Parameter mit anzuh�ngen + $_GET = array (); + + // Anfrage durchführen + + try { + + $iMerchantId = ( int ) CARDGATE_MERCHANT_ID; + $sMerchantApiKey = CARDGATE_MERCHANT_API_KEY; + $bIsTest = (CARDGATE_TEST_MODE == 'true' ? true : false); + $sLanguage = $aOrderData ['language_code']; + if ($this->getMajorVersion () <= 4) { + $sPlatformVersion = 'xtCommerce4'; + } else { + $sPlatformVersion = 'xtCommerce5'; + } + $iSiteId = ( int ) CARDGATE_SITE_ID; + $iAmount = ( int ) round ( $order->order_total ['total'] ['plain'] * 100 ); + $sCurrency = $aOrderData ['currency_code']; + $sPaymentMethod = $this->paymentTypes [$_SESSION ['selected_payment_sub']]; + $sSuccessUrl = $this->_link ( array ( + 'page' => 'cardgate_checkout', + 'conn' => 'SSL' + ) ); + $sFailureUrl = $sSuccessUrl; + $sCallbackUrl = $this->_link ( array ( + 'lang_code' => $language->default_language, + 'page' => 'cardgate_checkout', + 'paction' => 'confirm', + 'conn' => 'SSL' + ) ); + $reference = 'O' . time () . $iOrderId; + + $oCardGate = new cardgate\api\Client ( ( int ) $iMerchantId, $sMerchantApiKey, $bIsTest ); + $oCardGate->setIp ( $_SERVER ['REMOTE_ADDR'] ); + $oCardGate->setLanguage ( $sLanguage ); + $oCardGate->version ()->setPlatformName ( 'xtCommerce' ); + $oCardGate->version ()->setPlatformVersion ( $sPlatformVersion ); + $oCardGate->version ()->setPluginName ( 'CardGate' ); + $oCardGate->version ()->setPluginVersion ( $this->version ); + + $oTransaction = $oCardGate->transactions ()->create ( $iSiteId, $iAmount, $sCurrency ); + + // Configure payment option. + $oTransaction->setPaymentMethod ( $sPaymentMethod ); + if ($sPaymentMethod == 'idealpro') { + $oTransaction->setIssuer ( $_SESSION['cardgate_ideal_bank']); + } + + // Configure customer. + $oCustomer = $oTransaction->getCustomer (); + $oCustomer->setEmail ( $order->order_data ['customers_email_address'] ); + $oCustomer->address ()->setFirstName ( $order->order_data ['billing_firstname'] ); + $oCustomer->address ()->setLastName ( $order->order_data ['billing_lastname'] ); + $oCustomer->address ()->setAddress ( $order->order_data ['billing_street_address'] ); + $oCustomer->address ()->setZipCode ( $order->order_data ['billing_postcode'] ); + $oCustomer->address ()->setCity ( $order->order_data ['billing_city'] ); + $oCustomer->address ()->setCountry ( $order->order_data ['billing_country_code'] ); + + //add cartitmes if necessary + if ($sPaymentMethod =='afterpay' || $sPaymentMethod == 'klarna') { + $oCart = $oTransaction->getCart (); + $aCartItems = $this->getCartItems( $order, $iAmount); + + foreach ( $aCartItems as $item ) { + switch ($item ['type']) { + case 'product' : + $iItemType = \cardgate\api\Item::TYPE_PRODUCT; + break; + case 'shipping' : + $iItemType = \cardgate\api\Item::TYPE_SHIPPING; + break; + case 'paymentfee' : + $iItemType = \cardgate\api\Item::TYPE_HANDLING; + break; + case 'discount' : + $iItemType = \cardgate\api\Item::TYPE_DISCOUNT; + break; + } + + $oItem = $oCart->addItem ( $iItemType, $item ['model'], $item ['name'], ( int ) $item ['quantity'], ( int ) $item ['price_wt'] ); + $oItem->setVat ( $item ['vat'] ); + $oItem->setVatAmount ( $item ['vat_amount'] ); + $oItem->setVatIncluded ( 0 ); + } + } + + $oTransaction->setCallbackUrl ( $sCallbackUrl ); + $oTransaction->setSuccessUrl ( $sSuccessUrl ); + $oTransaction->setFailureUrl ( $sFailureUrl ); + + $oTransaction->setReference ( $reference ); + $oTransaction->setDescription ( 'Order ' . $iOrderId ); + + $result = @$db->Execute ( "INSERT INTO " . $this->_transaction_table . " (TRID, PAYSYS, STATE, DATE, ORDERID) VALUES ('" . $reference . "', '" . $sPaymentMethod . "','REDIRECTED', NOW(), $iOrderId)" ); + + $oTransaction->register (); + + $sActionUrl = $oTransaction->getActionUrl (); + + if (NULL !== $sActionUrl) { + return $sActionUrl; + } else { + $sErrorMessage = 'CardGate error: ' . htmlspecialchars ( $oException_->getMessage () ); + $this->_failureRedirect ( $sErrorMessage ); + } + } catch ( cardgate\api\Exception $oException_ ) { + $sErrorMessage = 'CardGate error: ' . htmlspecialchars ( $oException_->getMessage () ); + $this->_failureRedirect ( $sErrorMessage ); + } + } + + /** + * XTC-Funktion, um auf eine spezielle Success-Seite zu springen + * + * Da der Aufruf in der checkout-Klasse "payment_process" falsch ausgewertet wird (!= anstatt !==) + * macht die Funktion zur Zeit keinen Sinn, da auch eine URL "true" wäre und nie aufgerufen werden + * würde. + * + * @return URL oder true + * @access public + */ + function pspSuccess() { + return true; + } + + /** + * Führt Prüfungen vor Absenden des Request durch + * + * @return true im Erfolgsfall, ansonsten Array mit Daten für Sprung zur Fehlerseite + * @access private + */ + function _checkOrderData($order_data) { + // Prüfen, ob Paymenttype gsetezt + if (! array_key_exists ( $_SESSION ['selected_payment_sub'], $this->paymentTypes )) { + return array ( + 'page' => 'cardgate_checkout', + 'paction' => 'failure', + 'conn' => 'SSL', + 'params' => 'code_1=209' + ); + } + return true; + } + function _link($data) { + global $xtLink; + $ampedLink = $xtLink->_link ( $data ); + $link = str_replace ( '&', '&', $ampedLink ); + return $link; + } + function _failureRedirect($message) { + global $xtLink; + $failureUrl = $xtLink->_link ( array ( + 'page' => 'cardgate_checkout', + 'params' => 'message=' . $message, + 'conn' => 'SSL' + ) ); + $xtLink->_redirect ( $failureUrl ); + } + function getMajorVersion() { + $parts = explode ( '.', _SYSTEM_VERSION ); + return ( int ) $parts [0]; + } + function getMinorVersion() { + $parts = explode ( '.', _SYSTEM_VERSION ); + return ( int ) $parts [1]; + } + private function getCartItems($oOrder, $iAmount) { + + $items = array (); + $nr = 0; + $iCartItemTotal = 0; + $iCartItemTaxTotal = 0; + + $iOrderTotal = (int) round($oOrder->order_total['total']['plain']*100); + $aOrderItems = $oOrder->order_products; + + // any discount will be already calculated in the item total + foreach ( $aOrderItems as $aItem ) { + + $iQty = (int) $aItem['products_quantity']; + $iPrice = (int) round($aItem['products_price']['plain_otax'] *100); + $iTax = (int) round($aItem['products_tax']['plain']*100); + $iTotal = (int) round ( $iPrice + $iTax ); + $iTaxrate = ($iTax > 0 ? round ( ($iTotal / $iPrice - 1) * 100, 2 ) : 0); + + $nr ++; + + $items [$nr] ['type'] = 'product'; + $items [$nr] ['model'] = $aItem['products_model']; + $items [$nr] ['name'] = $aItem['products_name']; + $items [$nr] ['quantity'] = $iQty; + $items [$nr] ['price_wt'] = $iPrice; + $items [$nr] ['vat'] = $iTaxrate; + $items [$nr] ['vat_amount'] = $iTax; + + $iCartItemTotal += round ( $iPrice * $iQty ); + $iCartItemTaxTotal += round ( $iTax * $iQty ); + } + + $iShippingTotal = 0; + $iShippingVatTotal = 0; + $sub_content = $_SESSION['cart']->show_sub_content; + if (isset($sub_content['shipping'])){ + $aShipping = $sub_content['shipping']; + + $iQty = (int) $aShipping['products_quantity']; + $iPrice = (int) round($aShipping['products_price']['plain_otax'] *100); + $iTax = (int) round($aShipping['products_tax']['plain']*100); + $iTotal = (int) round ( $iPrice + $iTax ); + $iTaxrate = ($iTax > 0 ? round ( ($iTotal / $iPrice - 1) * 100, 2 ) : 0); + + $nr ++; + + $items [$nr] ['type'] = 'shipping'; + $items [$nr] ['model'] = $aShipping['products_model']; + $items [$nr] ['name'] = $aShipping['products_name']; + $items [$nr] ['quantity'] = $iQty; + $items [$nr] ['price_wt'] = $iPrice; + $items [$nr] ['vat'] = $iTaxrate; + $items [$nr] ['vat_amount'] = $iTax; + + $iShippingTotal = $iPrice; + $iShippingVatTotal = $iTax; + } + + $iExtraFee; + + /* + $fpExtraFee = (empty ( $woocommerce->session->extra_cart_fee ) ? 0 : $woocommerce->session->extra_cart_fee); + $iExtraFee = round ( $fpExtraFee * 100 ); + + if ($iExtraFee > 0) { + + $nr ++; + $items [$nr] ['type'] = 'paymentfee'; + $items [$nr] ['model'] = 'extra_costs'; + $items [$nr] ['name'] = 'payment_fee'; + $items [$nr] ['quantity'] = 1; + $items [$nr] ['price_wt'] = $iExtraFee; + $items [$nr] ['vat'] = 0; + $items [$nr] ['vat_amount'] = 0; + } + */ + + $iCorrection = round ( $iOrderTotal - $iCartItemTotal - $iCartItemTaxTotal - $iShippingTotal - $iShippingVatTotal - $iExtraFee ); + + if ($iCorrection != 0) { + + $nr ++; + $items [$nr] ['type'] = 'product'; + $items [$nr] ['model'] = 'Correction'; + $items [$nr] ['name'] = 'item_correction'; + $items [$nr] ['quantity'] = 1; + $items [$nr] ['price_wt'] = $iCorrection; + $items [$nr] ['vat'] = 0; + $items [$nr] ['vat_amount'] = 0; + } + return $items; + } + function getBanks(){ + try { + + require_once 'cardgate-clientlib-php/init.php'; + + $iMerchantId = ( int ) CARDGATE_MERCHANT_ID; + $sMerchantApiKey = CARDGATE_MERCHANT_API_KEY; + $bIsTest = (CARDGATE_TEST_MODE == 'true' ? true : false); + + $oCardGate = new cardgate\api\Client ( ( int ) $iMerchantId, $sMerchantApiKey, $bIsTest ); + $oCardGate->setIp ( $_SERVER ['REMOTE_ADDR'] ); + + $aIssuers = $oCardGate->methods ()->get ( cardgate\api\Method::IDEAL )->getIssuers (); + } catch ( cardgate\api\Exception $oException_ ) { + $aIssuers [0] = [ + 'id' => 0, + 'name' => htmlspecialchars ( $oException_->getMessage () ) + ]; + } + + $options = array (); + + foreach ( $aIssuers as $aIssuer ) { + + $options[] = array('id'=>$aIssuer ['id'],'name' => $aIssuer ['name']); + } + return $options; + } +} diff --git a/plugins/cardgate/images/cg_logo.png b/plugins/cardgate/images/cg_logo.png new file mode 100755 index 0000000000000000000000000000000000000000..448274b6ad75b0f41cb0b661a51b897467d221fe GIT binary patch literal 8866 zcmV;TB3<2yP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z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bPoCUIjyGc(L^db z9*i&Q81~(w=>}@1IWed zd2Yw(O=}l@$8Is}X;nuCw;0HjoY}c~Gdp0Jn0c>m9lwsiZT?PN|qaqqO5YH*VY^i6YoXl*0iCl)x|;K40PM zuh$64Xx(a(Q&%jhy*}6FxUqBCcLgUX)pXsgX>2Ud<2ZiH+WAkctgjq03=M#M4o~=B zXrJPz6Y&PJ9743v>)dXV#O-V6&w#-=4m5Wm*JFp(EF(mKa4Z3{EOo9}Ftd|$VCBMD zINa1x{lu2N&m`9!jIp}1 z{O3xtv!0t);6W%liQdr=JXuy`*)5qA5B=*@@6Q|j80S-Qg+bNyOhVpZFc?QHmVk)@ zJ>vni^$g?ki|3)Gqrd9skG;0}NOQ+`lw{fgQOICeLcwjDum05+S1o)ysiYzB^Ho3r zLhyg8aR91rKr;;JhH)+|Xu1KzV1L!UiJ$iXlu}p)0-rAklPqF*BDku(cW8E7@5q|d zodfF=u}Lc=5s(Bx)d5|{P1mh|SFKxo|95ZP_>it=te9UYi2T1k|8fdt zjKO6yY$ya2X*4k|^lj?5vT6HDx=lUcdCey>4f3 kGNrY6xU$Fhp00Voq%^$I83jhEB07*qoM6N<$f`C;Kxc~qF literal 0 HcmV?d00001 diff --git a/plugins/cardgate/installer/cardgate.xml b/plugins/cardgate/installer/cardgate.xml new file mode 100755 index 0000000..bc84f03 --- /dev/null +++ b/plugins/cardgate/installer/cardgate.xml @@ -0,0 +1,551 @@ + + + CardGate + payment + 1.0.0 + cardgate + http://cardgate.com + Zahlungsmodul CardGate + cg_logo.png + + cardgate + cardgate + + cardgate.html + + CardGate + + + + CardGate + + + + CardGate + + + + + + + + + page_registry.php:bottom + + 1 + 1 + + + + + + ORDER_STATUS_PENDING + dropdown + status:order_status + 17 + 90 + + Bestellstatus für ausstehende Zahlung + + + Order Status for Pending transactions + + + Order Status voor Pending transactie + + + + ORDER_STATUS_CANCEL + dropdown + status:order_status + 32 + 80 + + Abbruchstatus + + + Cancelstatus + + + Annuleerstatus + + + + ORDER_STATUS_FAILED + dropdown + status:order_status + 32 + 70 + + Fehlerstatus + + + failure status + + + faal status + + + + ORDER_STATUS_COMPLETED + dropdown + status:order_status + 23 + 60 + + Erfolgsstatus + + + success status + + + success status + + + + SITE_ID + textfield + + 20 + + Site ID + + + Site ID + + + Site ID + + + + HASH_KEY + textfield + + 30 + + Hash key + + + Hash key + + + Hash key + + + + MERCHANT_ID + textfield + + 40 + + Merchant ID + + + Merchant ID + + + Merchant ID + + + + MERCHANT_API_KEY + textfield + + 50 + + API key + + + API key + + + API key + + + + TEST_MODE + dropdown + true + conf_truefalse + 10 + + Test Mode + + + Test Mode + + + Test Mode + + + + + + + TEXT_PAYMENT_CARDGATE_AFTERPAY + store + + Afterpay + + + Afterpay + + + Afterpay + + + + TEXT_PAYMENT_CARDGATE_BANCONTACT + store + + Bancontact + + + Bancontact + + + Bancontact + + + + TEXT_PAYMENT_CARDGATE_BANKTRANSFER + store + + Banktransfer + + + Banktransfer + + + Bankoverboeking + + + + TEXT_PAYMENT_CARDGATE_BILLINK + store + + Billink + + + Billink + + + Billink + + + + TEXT_PAYMENT_CARDGATE_BITCOIN + store + + Bitcoin + + + Bitcoin + + + Bitcoin + + + + TEXT_PAYMENT_CARDGATE_CREDITCARD + store + + Kreditkarte + + + Credit Card + + + Creditcard + + + + TEXT_PAYMENT_CARDGATE_DIRECTDEBIT + store + + Lastschriftverfahren + + + Direct Debit + + + Direct Debit + + + + TEXT_PAYMENT_CARDGATE_GIROPAY + store + + Giropay + + + Giropay + + + Giropay + + + + TEXT_PAYMENT_CARDGATE_IDEALQR + store + + iDEAL QR + + + iDEAL QR + + + iDEAL QR + + + + TEXT_PAYMENT_CARDGATE_IDEALPRO + store + + iDEAL + + + iDEAL + + + iDEAL + + + + TEXT_PAYMENT_CARDGATE_KLARNA + store + + Klarna + + + Klarna + + + Klarna + + + + TEXT_PAYMENT_CARDGATE_PAYPAL + store + + PayPal + + + PayPal + + + PayPal + + + + TEXT_PAYMENT_CARDGATE_PAYSAFECARD + store + + Paysafecard + + + Paysafecard + + + Paysafecard + + + + TEXT_PAYMENT_CARDGATE_PRZELEWY24 + store + + Przelewy24 + + + Przelewy24 + + + Przelewy24 + + + + TEXT_PAYMENT_CARDGATE_SOFORTBANKING + store + + SOFORT Überweisung (PIN/TAN) + + + SOFORT Banking (PIN/TAN) + + + SOFORT Banking (PIN/TAN) + + + + TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_SUCCESS + store + + + + + Your order was successfully executed + + + Uw order is succesvol verwerkt + + + + TEXT_CARDGATE_CHECKOUT_SUCCESS_DESC + store + + + + + + Your order has been received and will be processed + immediately. For your personal control you + received an email with + your order details! + + + + Uw order is ontvangen en zal meteen verwerkt worden. + U heeft een email ontvangen waarmee u de details van de order kan + controleren. + + + + + TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_PENDING + store + + + + + Your order was successfully executed + + + Uw order is succesvol uitgevoerd + + + + TEXT_CARDGATE_CHECKOUT_PENDING_DESC + store + + + + + + Thank you for your purchase, your order will be shipped as + soon as we get the payment + confirmation from your bank! + + + + Bedankt voor uw aankoop, uw order wordt verstuurd zodra wij + de + betalingsbevestiging van uw bank hebben gekregen! + + + + + TEXT_CARDGATE_CHECKOUT_SUCCESS_THANKS + store + + + + + Thank you for your purchase! + + + Bedankt voor uw aankoop! + + + + TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_CANCEL + store + + Der Zahlvorgang wurde abgebrochen. + + + The payment transaction was canceled. + + + De betaling is geanulleerd. + + + + TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_CANCEL_DESC + store + + Leider wurde der Zahlungsvorgang abgebrochen. Bei Fragen zu + Ihrer Bestellung, wenden Sie sich + bitte an den Shop-Betreiber. + + + + Regrettably the payment transaction was canceled. Please + contact the shop owner for questions + about your order. + + + + Helaas is de betaling geannuleerd. Neem contact op met + de webwinkeleigenaar indien u vragen heeft. + + + + + TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_FAIL + store + + Es ist ein Fehler aufgetreten. + + + An error has occured. + + + Er is een fout opgetreden. + + + + TEXT_PAGE_TITLE_CARDGATE_CHECKOUT_FAIL_DESC + store + + + + + Please check your data. Following errors occurred: + + + Controleer uw data a.u.bv. De volgende fouten kwamen voor: + + + + + TEXT_CARDGATE_PAYMENT_COMMENT + store + + + + + The amount has been paid using: + + + Het bedrag is betaald met: + + + + TEXT_CARDGATE_PAYMENT_PENDINGCOMMENT + store + + + + + The payment is pending, waiting for bank approval. + + + De betaling is pending, wachtend op bevestiging van de bank. + + + + diff --git a/plugins/cardgate/installer/install.php b/plugins/cardgate/installer/install.php new file mode 100755 index 0000000..04356a1 --- /dev/null +++ b/plugins/cardgate/installer/install.php @@ -0,0 +1,37 @@ +page_action == 'confirm') { + // hash check + if (! empty ( $_GET ['hash'] )) { + $sRoot = dirname ( dirname ( dirname ( dirname ( __FILE__ ) ) ) ); + + require_once( $sRoot . '/cardgate/classes/cardgate-clientlib-php/init.php' ); + + try { + $data = $_REQUEST; + $iMerchantId = ( int ) CARDGATE_MERCHANT_ID; + $sMerchantApiKey = CARDGATE_MERCHANT_API_KEY; + $sHashKey = CARDGATE_HASH_KEY; + $bTestMode = (CARDGATE_TEST_MODE == 'true' ? true : false); + + $oCardGate = new cardgate\api\Client ( $iMerchantId, $sMerchantApiKey, $bTestMode ); + $oCardGate->setIp ( $_SERVER ['REMOTE_ADDR'] ); + + if (FALSE == $oCardGate->transactions ()->verifyCallback ( $data, $sHashKey )) { + die ( 'Hashcheck failed!' ); + } + } catch ( cardgate\api\Exception $oException_ ) { + die ( 'Hashckeck failed!' ); + } + } + + // hashcheck has passed + // process order + + $result = $db->Execute ( "SELECT ORDERID FROM " . TABLE_CARDGATE_TRANSACTION . " WHERE TRID = '" . $data ['reference'] . "' LIMIT 1" ); + $fields = $result->fields; + $iOrderId = ( int ) $fields ['ORDERID']; + + $order = new order ( $iOrderId, - 1 ); + + if (checkPaid ( $order )) { + die ( 'Payment already processed!' ); + } + + if ($data ['code'] == '0') { + $paymentState = 'PENDING'; + } + if ($data ['code'] >= '200' && $data ['code'] < '300') { + $paymentState = 'SUCCESS'; + } + if ($data ['code'] >= '300' && $data ['code'] < '400') { + if ($data ['code'] == 309) { + $paymentState = 'CANCEL'; + } else { + $paymentState = 'FAILURE'; + } + } + if ($data ['code'] >= '700' && $data ['code'] < '800') { + $paymentState = 'PENDING'; + } + + if ($paymentState == 'SUCCESS') { + if (! empty ( $iOrderId )) { + $result = $db->AutoExecute ( TABLE_CARDGATE_TRANSACTION, Array ( + 'STATE' => $paymentState + ), 'UPDATE', 'TRID="' . $data ['reference'] . '"' ); + updateOrderPayment ( $iOrderId, $paymentState ); + } + + $strMsg = TEXT_CARDGATE_PAYMENT_COMMENT . ' ' . constant ( "TEXT_PAYMENT_CARDGATE_" . strtoupper ( $data ['pt'] ) ); + ; + + $order->_sendOrderMail (); + $order->_updateOrderStatus ( CARDGATE_ORDER_STATUS_COMPLETED, $strMsg, 'true', 'true', 'user', $data ['transaction'] ); + } + + if ($paymentState == 'PENDING') { + updateOrderPayment ( $iOrderId, $paymentState ); + $txtOk = $db->AutoExecute ( TABLE_CARDGATE_TRANSACTION, Array ( + 'STATE' => $paymentState + ), 'UPDATE', 'TRID="' . $data ['reference'] . '"' ); + + $strMsg = TEXT_CARDGATE_PAYMENT_PENDINGCOMMENT; + $order->_updateOrderStatus ( CARDGATE_ORDER_STATUS_PENDING, $strMsg, 'true', 'true', 'user', $data ['transaction'] ); + } + + if ($paymentState == 'CANCEL') { + $strMsg = 'Customer canceled the payment process'; + $order->_updateOrderStatus ( CARDGATE_ORDER_STATUS_CANCEL, $strMsg, 'false' ); + $txtOk = $db->AutoExecute ( TABLE_CARDGATE_TRANSACTION, Array ( + 'STATE' => $paymentState + ), 'UPDATE', 'TRID="' . $data ['reference'] . '"' ); + } + + if ($paymentState == 'FAILURE') { + $payment_error_message = 'An error occured during the payment process:
    ' . $data ['reference']; + // Order-Status setzen und History speichern + $order->_updateOrderStatus ( CARDGATE_ORDER_STATUS_FAILED, $payment_error_message, 'false' ); + $txtOk = $db->AutoExecute ( TABLE_CARDGATE_TRANSACTION, Array ( + 'STATE' => $paymentState + ), 'UPDATE', 'TRID="' . $data ['reference'] . '"' ); + } + + die ( $data ['transaction'] . '.' . $data ['code'] ); +} else { + + $strState = ""; + if (isset ( $_GET ['reference'] )) { + + if (isset ( $_SESSION ['redirect_url'] )) { + unset ( $_SESSION ['redirect_url'] ); + } + + $rs = $db->Execute ( 'SELECT STATE,MESSAGE FROM ' . TABLE_CARDGATE_TRANSACTION . ' WHERE `TRID`="' . $_GET ['reference'] . '" ' ); + if ($rs->RecordCount () == 1) { + $strState = $rs->fields ['STATE']; + } + } + if ($strState == 'SUCCESS') { + unset ( $_SESSION ['last_order_id'] ); + $_SESSION ['cart']->_resetCart (); + $checkout_data = array ( + 'page_action' => 'success' + ); + } elseif ($strState == 'CANCEL') { + $checkout_data = array ( + 'page_action' => 'cancel' + ); + } elseif ($strState == 'PENDING') { + unset ( $_SESSION ['last_order_id'] ); + $_SESSION ['cart']->_resetCart (); + $checkout_data = array ( + 'page_action' => 'pending' + ); + } elseif ($strState == 'FAILURE') { + $messages = array (); + $messages [0] ['message'] = 'An error occured during the payment process:
    ' . $data ['reference']; + $checkout_data = array ( + 'page_action' => 'failure', + 'messages' => $messages + ); + } else { + $messages = array (); + if (isset ( $_GET ['message'] )) { + $messages [0] ['message'] = htmlentities ( $_GET ['message'] ); + } else { + $messages [0] ['message'] = 'Invalid call'; + } + $checkout_data = array ( + 'page_action' => 'failure', + 'messages' => $messages + ); + } + + if (is_array ( $checkout_data )) { + $tpl_data = $checkout_data; + ($plugin_code = $xtPlugin->PluginCode ( 'module_checkout.php:checkout_data' )) ? eval ( $plugin_code ) : false; + $template = new Template (); + $tpl = 'cardgate_checkout.html'; + ($plugin_code = $xtPlugin->PluginCode ( 'module_checkout.php:checkout_bottom' )) ? eval ( $plugin_code ) : false; + + $page_data = $template->getTemplate ( 'smarty', '/' . _SRV_WEB_CORE . 'pages/' . $tpl, $tpl_data ); + } +} +function checkPaid($order) { + return ( bool ) ($order->order_data ['orders_status_id'] == CARDGATE_ORDER_STATUS_COMPLETED); +} +function updateOrderPayment($oid, $strOrderStatus, $callback_id='',$callback_messge='') { + $parts = explode ( '.', _SYSTEM_VERSION ); + $iVersion = ( int ) $parts [0]; + + if ($iVersion < 5) { + if (! empty ( $strOrderStatus ) && $oid > 0) { + global $db; + $ok = $db->AutoExecute ( TABLE_ORDERS, Array ( + 'subpayment_code' => $strOrderStatus + ), 'UPDATE', 'orders_id="' . $oid . '" AND subpayment_code!="' . $strOrderStatus . '"' ); + if (! $ok) { + + return cardgateCheckoutPageConfirmResponse ( 'Paymenttype update failed' ); + } + } + return true; + } +} +function cardgateCheckoutPageConfirmResponse($message = null) { + if ($message != null) { + $value = 'result="NOK" message="' . $message . '" '; + } else { + $value = 'result="OK"'; + } + return ''; +} + +?> diff --git a/plugins/cardgate/templates/cardgate.html b/plugins/cardgate/templates/cardgate.html new file mode 100755 index 0000000..312e9a3 --- /dev/null +++ b/plugins/cardgate/templates/cardgate.html @@ -0,0 +1,138 @@ +{* + * Shop System Plugins - Terms of Use + * + * These plugins are offered by CardGate + * + * They have been tested and approved for full functionality in the standard + * configuration + * (status on delivery) of the corresponding shop system. They are under + * General Public License Version 2 (GPLv2) and can be used, developed and + * passed on to third parties under the same terms. + * + * However, CardGate does not provide any guarantee or accept any liability + * for any errors occurring when used in an enhanced, customized shop system + * configuration. + * + * Operation in an enhanced, customized configuration is at your own risk and + * requires a comprehensive test phase by the user of the plugin. + * + * Customers use the plugins at their own risk. CardGate does not guarantee + * their full functionality neither does CardGate assume liability for any + * disadvantages related to the use of the plugins. Additionally, CardGate + * does not guarantee the full functionality for customized shop systems or + * installed plugins of other vendors of plugins within the same shop system. + * + * Customers are responsible for testing the plugin's functionality before + * starting productive operation. + * + * By installing the plugin into the shop system the customer agrees to these + * terms of use. Please do not use the plugin if you do not agree to these + * terms of use! +*} + +{if $plugin} + +{capture name="paymenttypes"} +{/capture} + +{if $plugin->getMajorVersion() > 4} +{capture name="paymenttypes"} +
    + {$payment_name} +
    + +
    +
    +{/capture} +{/if} + +{if $plugin->getMajorVersion() <= 4} +{capture name="paymenttypes"} + + {form type=radio name=selected_payment value=$payment_code} + + {$payment_name} + +{/capture} +{/if} + +{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} +{literal} + +{/literal} + +
    + +
    +
    +

    + + {$smarty.capture.paymenttypes} +
    +

    +
    +
    + +
    + +{elseif $plugin->getMajorVersion() > 4} +{$smarty.capture.paymenttypes} +{else} + + + + + + + + + + +
    {$payment_name}{$payment_price.formated}
    + + + + + + + + +
    + {$smarty.capture.paymenttypes} +   + +
    + +
    +
    + +{/if} +{/if} \ No newline at end of file diff --git a/plugins/cardgateafterpay/classes/class.cardgateafterpay.php b/plugins/cardgateafterpay/classes/class.cardgateafterpay.php new file mode 100755 index 0000000..2c16522 --- /dev/null +++ b/plugins/cardgateafterpay/classes/class.cardgateafterpay.php @@ -0,0 +1,59 @@ +order_data['order_data']['payment_code'] == 'afterpay') { + /** @global ADODB_mysql $db */ + global $db; + + $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); + if (count($rs)) + { + $cg_data = array_pop($rs); + if (strlen($cg_data['RESPONSEDATA'])) + { + $blacklist = array('last_order_id'); + $info = json_decode($cg_data['RESPONSEDATA']); + foreach ($info as $k => $v) + { + if (in_array($k, $blacklist)) + continue; + $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); + } + + } + } + +// if($rs->RecordCount()>0) { +// print "xxx"; +// foreach ($rs as $v) +// print_r($v); +// } + +} + diff --git a/plugins/cardgateafterpay/images/cardgateafterpay.png b/plugins/cardgateafterpay/images/cardgateafterpay.png new file mode 100755 index 0000000000000000000000000000000000000000..dad36b397c86ae02e8f3fb4c606acec96c2e2d54 GIT binary patch literal 2871 zcmZ{m3pkW%8^>R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Vam$fL~oFZmpio0oraRz%Pp!Y))9}R<+8TUe=3x_ws`*$d&VwB^5%4G{)!+5v~sxFdVau$hy&xr z!t)i@VQ9y?Gx1MHW30{*!t<1sieB?-PXpeSr^UG(Pdn+2w_D4=U0{`7hY#-liqrh# zQ?_H(a{-h41)TZhiR6>6{)xD4cT)?z4KtJ#Et!*L*p&M|*_`EPBbDh!`&@z_hr2%Q z=XfQiTmUg!eX6d2k|QK4-QKjrvW>6T1UzTGk*M$Umeo5Po6^k5*b?0~PI#N5hPA*E zF9|r!D{tc$F3vcgN(~K~UM?EO2G*SlbJ-&BgmkNTjv6e=n!p>2oX33zdD_wsYhRc!dATV0Lsddx1>#?UfL$hY%-d4);S)ggP!W+SiG>fWVStB^_LMHk0C z5}HG`oYGh&4-cgviw^m*n&2vNwQaa7a4tR{@HU#gDhB2y46kLPRi#X+JW@6-6j6((}O%Ytd%?NeY2H1%cHaYre;6+VsS71Qi*D` z{2-Ee28DZWu)Ee(t-v1q{^yTJLhD_POp=J=jYNs&YwI$wsOMO?pcK(HCx)op?Y_*} z%(uC=SX3qFX(M*Ixx3_@WyIXMFYm*iK~A2M9vmKMS>m=-x_#D>yioYWnf3lji_RxR zg?Dga>{FC^(D?HbtvvA#s;*lU^%vKq zGfpMsL5I;cMr6Qp^^Py{pmon6yu0ceUFuE^e$QjPlq#(ADq4w6s&&Jy(|L?RwTMPR zo>JVx;tp@)=V_{Ak&6%SZ48w`9hEgqk#4$fAlK8t4?f;s3chIj`Lo0vX2~d1+T&*D Tg2Fk`@2Q + + Afterpay + payment + 1.0.0 + cardgateafterpay + http://cardgate.com + Zahlungsmodul Afterpay + cardgateafterpay.png + + cardgateafterpay + cardgateafterpay + + cardgateafterpay.html + + Afterpay + + + + Afterpay + + + + Afterpay + + + + + + + + + page_registry.php:bottom + + 1 + 1 + + + class.checkout.php:_getPayment + $v) { + if ($k != 'afterpay') { + unset($payment_data[$k]); + } + } + reset($payment_data); + } + ]]> + 1 + 1 + + + + class.checkout.php:_selectPayment_tpl_data + + 1 + 1 + + + + order_edit.php:display_data + + 0 + 1 + + + + + + + TEXT_PAYMENT_CARDGATE_AFTERPAY + store + + Afterpay + + + Afterpay + + + Afterpay + + + + diff --git a/plugins/cardgateafterpay/installer/install.php b/plugins/cardgateafterpay/installer/install.php new file mode 100755 index 0000000..26ece13 --- /dev/null +++ b/plugins/cardgateafterpay/installer/install.php @@ -0,0 +1,37 @@ +getMajorVersion() > 4} +{capture name="paymenttypes"} +
    + {$payment_name} +
    + +
    +
    +{/capture} +{/if} + +{if $plugin->getMajorVersion() <= 4} +{capture name="paymenttypes"} + + {form type=radio name=selected_payment value=$payment_code} + + {$payment_name} + +{/capture} +{/if} + +{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} +{literal} + +{/literal} + +
    + +
    +
    +

    + + {$smarty.capture.paymenttypes} +
    +

    +
    +
    + +
    + +{elseif $plugin->getMajorVersion() > 4} +{$smarty.capture.paymenttypes} +{else} + + + + + + + + + + +
    {$payment_name}{$payment_price.formated}
    + + + + + + + + +
    + {$smarty.capture.paymenttypes} +   + +
    + +
    +
    + +{/if} +{/if} \ No newline at end of file diff --git a/plugins/cardgatebancontact/classes/class.cardgatebancontact.php b/plugins/cardgatebancontact/classes/class.cardgatebancontact.php new file mode 100755 index 0000000..3f8a504 --- /dev/null +++ b/plugins/cardgatebancontact/classes/class.cardgatebancontact.php @@ -0,0 +1,59 @@ +order_data['order_data']['payment_code'] == 'bancontact') { + /** @global ADODB_mysql $db */ + global $db; + + $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); + if (count($rs)) + { + $cg_data = array_pop($rs); + if (strlen($cg_data['RESPONSEDATA'])) + { + $blacklist = array('last_order_id'); + $info = json_decode($cg_data['RESPONSEDATA']); + foreach ($info as $k => $v) + { + if (in_array($k, $blacklist)) + continue; + $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); + } + + } + } + +// if($rs->RecordCount()>0) { +// print "xxx"; +// foreach ($rs as $v) +// print_r($v); +// } + +} + diff --git a/plugins/cardgatebancontact/images/cardgatebancontact.png b/plugins/cardgatebancontact/images/cardgatebancontact.png new file mode 100755 index 0000000000000000000000000000000000000000..65f1e9ca5ce9c7100fac3829c3336d251ebd4e37 GIT binary patch literal 2023 zcmV{ z4qWZE27^K5p*8`Jc_KA7g3rSJ@)fozo^>x$u%jLIA ztGc!yzg2Yj`kcUmfMo5jpFzM&PwMR;9eL*NMXaaK&nEhi6z1FRc&JgPOR0$I^4mkHoZ(tu6-nC&|n=i`$QCO zbNN@K#r&nVze8`Y@3AgU5Ni9)b_Rc3Ed)uc%U^Zd8o@(ih19`@v0W>a1{)nM!2p0% z!XFo9eW+tx3Tw;P;eG=6Kq$_-q9-|8+Egu!6D5x%@Yi~g^d|vt0vVvp<$>X(gBb9q|`;4w%pXo;U$dMP)hfE$Lj|bM=Jf55&^5#dE z*9;Y(>c~r!l-)9!PPK#j#w@jrPo1nCJV1YI71yL<>v;3O8D)(Fgs%jXnDhEyi2hh#YZxz=%F)}%Z`FW5!>w`&^yHKv}zKh>9WxVbP~{=~M0 zPb`f3f9!zaiTM1JZ{DXc9HX1F6MlFS`H}YgZwpnspG=ywtg%6(Ob}5I4l7bX?95Zo zWj1{E$_2|g>j2NQplg7YMy(^l3s%#hSz4XU#dVpU4 z$xWbtf3`h&cU5KEL`bH6+`I1JjnN73%&$cf_ z##LJTF7%H$z2`g4K*tM7d7MZk!U0P69Y;o-w5+}lx_S)Gcsbdo_e|K_;AXSk(`Rza zB?7O{o0TYmnG{!aKD#JpM_yte5KvGAsDnzRkOx&eloHy0whqlwvq!v#CZMpJuZWO} z__OUz68)@h6yAuJ=`gw4bnfzI{hu$7h$t*CQOqGOIH>)@nw0&ugRuf!$R~?eDB1c9 zMc1aws&-|cZXAIk?8J`DP^psiZmn8C)EV9DQskLR!Tzfw86xzZ=QE(Iq;{aBrXQ!U z?%(AlNy+J>iR0|&(M=kukXO1kHRMHy)dLmw@;K_n9M#+FSbp={D?h!|Gfzy$L`J{` zgso-~h8?Q39Llwk%crZR_Hohi>dM z-E*CBI9APzb;!Hckd+Cc7gN-foeLnU+k|HAyJiFkFEeoQ>?2gV! z5OWdPl%vuGv7a8%UhABI=e-Nv;L%4_;uq2)S(HyE?R!4s{B_-)iYC^batf}#Km@)k z*tiWx;5a_Hp5$7rl$eaQx^v=uC3_#tjia7QlR>N>E4@*=Asxm$-^rF6P?}FxFIudC zG+T1Ev*5p>FMd1$41KO0#q2%=Ltj1JrDg9s*d9$xb&oxKHT4=@^Q3&l;SH2)hiE1M zkJ;(&HrU)j256hx3p8-_7O&G695FdN$1R*#%b25g!T|&@>w7KZR-eV?0b#B;^nm4m z51T;-XfOga*aS(Jp9WJ#D{BF?ChRV-4}{(0=M?|iFbr>$9ck1FB}Q(NNGYa}huQ|r zUhSYYKV6nAqfqX@AZWLA4zu0+aFHpb!bg<<^Ui++7yxQVmr-5L0eAoa002ovPDHLk FV1n;6?_2-? literal 0 HcmV?d00001 diff --git a/plugins/cardgatebancontact/installer/cardgatebancontact.xml b/plugins/cardgatebancontact/installer/cardgatebancontact.xml new file mode 100755 index 0000000..20f0dc4 --- /dev/null +++ b/plugins/cardgatebancontact/installer/cardgatebancontact.xml @@ -0,0 +1,94 @@ + + + Bancontact + payment + 1.0.0 + cardgatebancontact + http://cardgate.com + Zahlungsmodul Bancontact + cardgatebancontact.png + + cardgatebancontact + cardgatebancontact + + cardgatebancontact.html + + Bancontact + + + + Bancontact + + + + Bancontact + + + + + + + + + page_registry.php:bottom + + 1 + 1 + + + class.checkout.php:_getPayment + $v) { + if ($k != 'bancontact') { + unset($payment_data[$k]); + } + } + reset($payment_data); + } + ]]> + 1 + 1 + + + + class.checkout.php:_selectPayment_tpl_data + + 1 + 1 + + + + order_edit.php:display_data + + 0 + 1 + + + + + + + TEXT_PAYMENT_CARDGATE_BANCONTACT + store + + Bancontact + + + Bancontact + + + Bancontact + + + + diff --git a/plugins/cardgatebancontact/installer/install.php b/plugins/cardgatebancontact/installer/install.php new file mode 100755 index 0000000..26ece13 --- /dev/null +++ b/plugins/cardgatebancontact/installer/install.php @@ -0,0 +1,37 @@ +getMajorVersion() > 4} +{capture name="paymenttypes"} +
    + {$payment_name} +
    + +
    +
    +{/capture} +{/if} + +{if $plugin->getMajorVersion() <= 4} +{capture name="paymenttypes"} + + {form type=radio name=selected_payment value=$payment_code} + + {$payment_name} + +{/capture} +{/if} + +{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} +{literal} + +{/literal} + +
    + +
    +
    +

    + + {$smarty.capture.paymenttypes} +
    +

    +
    +
    + +
    + +{elseif $plugin->getMajorVersion() > 4} +{$smarty.capture.paymenttypes} +{else} + + + + + + + + + + +
    {$payment_name}{$payment_price.formated}
    + + + + + + + + +
    + {$smarty.capture.paymenttypes} +   + +
    + +
    +
    + +{/if} +{/if} \ No newline at end of file diff --git a/plugins/cardgatebanktransfer/classes/class.cardgatebanktransfer.php b/plugins/cardgatebanktransfer/classes/class.cardgatebanktransfer.php new file mode 100755 index 0000000..632e953 --- /dev/null +++ b/plugins/cardgatebanktransfer/classes/class.cardgatebanktransfer.php @@ -0,0 +1,59 @@ +order_data['order_data']['payment_code'] == 'banktransfer') { + /** @global ADODB_mysql $db */ + global $db; + + $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); + if (count($rs)) + { + $cg_data = array_pop($rs); + if (strlen($cg_data['RESPONSEDATA'])) + { + $blacklist = array('last_order_id'); + $info = json_decode($cg_data['RESPONSEDATA']); + foreach ($info as $k => $v) + { + if (in_array($k, $blacklist)) + continue; + $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); + } + + } + } + +// if($rs->RecordCount()>0) { +// print "xxx"; +// foreach ($rs as $v) +// print_r($v); +// } + +} + diff --git a/plugins/cardgatebanktransfer/images/cardgatebanktransfer.png b/plugins/cardgatebanktransfer/images/cardgatebanktransfer.png new file mode 100755 index 0000000000000000000000000000000000000000..f56f5f2f271117f4854770b5523daadd872f8aea GIT binary patch literal 3208 zcmV;340rR1P){m7Q+wLub0HwzgB9ZVMI_U#MWM+O1U) zHGrTbKp;FqAnzBsNp5npf20j5#co~M>FjQQf1Z23bI$$c`@ZwLCrBt1g5PjIK!5E5 z{`>G7W%mv2*Dhc@q1WsEe!oN_VYAuMc9+ZLa5#o>JZ;jX2hW21^e*%H{YI{beFYvYHzALdxlItpAP^eLVkuKxiB-G!(u&nvM`1{o_!yEbm9E@h(#`! zCrzCA^wUr0=H#I0_}>*Smy5w*WMpKFOSBQng27;;y5saWSM2WLywsG5@lyLRUfH*{VV@FP(KHa6&e){RBB9UlZvP7e- ztgN)Ol*=8T<1#{--Q}*me9hr<&3}02oEg)?#?++5s&f}=uicV~#f4du$0sF*VHgGg zN~Lo3>eT?yxOo2Jg$qxeI;C!JFa8fuCY4I1Qt5a_8=LO8(-I`pGSef*Nr?#$ zWu@0%y>X?fH78Zk)7S6z`V>itTn-xmfFo z6h-|6VK7^qE_a+*L{np5ftX z4?Q$wG<9gy94@yYKVQJ-hZlxIA&cGKsqOL&yCczZa&sdNBb2r4`T!tJspLep8!DA5 zm&rIx=8)AkXt7+l(bzL+e0EVum@===SNq*H*RW^Rf>;DaZnUbeHn%#QE|h|DIqZ2e zre>v0(i_buFMWr5y~-qcx86YD_;XUpsMiYw0#2us#bPNHim>I}xpU=z{_}ud?{>Qd zLSb=n@#amNQd3jIPmdfqvU~ULaDSA=#lQUWORH9`8g*~f*Vk{_v?((qW8a4#)|@=K z=Wl!FFI=$u{r7J-HNN@A>ntX7+O%okUA;Qc-_Kw$SFBvIb;}kelL-J9|MBhaUGH~y z>jRzQ_Zz|E zF_}yTgW*I?&F$N_mo8m8At3<(zOBEpZvBQHo$mENy?OO|!xMAneDV3`Z@%@m$zlzK zLbY{uTefTg1U>lK-z$%upi-&jJ9eBsdzK{0NX-KV!+Y<(YaAN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W3|~86O;1t@|2S% zMT+*|_>G2!mX;QS!N88;=I7<+=jTf#lCx*e+HAI2vt}hGCgM1L{rYviUZ0+xPNh;? zT3V8mlV{GH+1uND{rYttk5^Pw6mGRmO-&sg9XUBU+1c60jvs$@!-h34zO;PVQgxep z_wHR^ef3rG!;c(2TqTwK@X-<)3nWPrM1TkcNRk}W;b#yC1pIy?7!2O;!k>Z&1iW6~ zy=ou`!sGFHeZB`z6o%DiTd{H#o6UB)-C@hETep&uk{AqzR;!J;jXj(~5Cp?07=;q< z==TK*g+irb<1+TbC=@!KcCQ*R3}Z5x<28~300aPm5J{5l?d^eJ5CH5>r_blhoic?L zB_aN&2H6h?KA*pI+48H`uC0INmAP~0hC-p!XKN`G%IejtBj4mO<{ + + Bank transfer + payment + 1.0.0 + cardgatebanktransfer + http://cardgate.com + Zahlungsmodul Bank transfer + cardgatebanktransfer.png + + cardgatebanktransfer + cardgatebanktransfer + + cardgatebanktransfer.html + + Bank transfer + + + + Bank transfer + + + + Bank overboeking + + + + + + + + + page_registry.php:bottom + + 1 + 1 + + + class.checkout.php:_getPayment + $v) { + if ($k != 'banktransfer') { + unset($payment_data[$k]); + } + } + reset($payment_data); + } + ]]> + 1 + 1 + + + + class.checkout.php:_selectPayment_tpl_data + + 1 + 1 + + + + order_edit.php:display_data + + 0 + 1 + + + + + + + TEXT_PAYMENT_CARDGATE_BANKTRANSFER + store + + Bank transfer + + + Bank transfer + + + Bankoverboeking + + + + diff --git a/plugins/cardgatebanktransfer/installer/install.php b/plugins/cardgatebanktransfer/installer/install.php new file mode 100755 index 0000000..26ece13 --- /dev/null +++ b/plugins/cardgatebanktransfer/installer/install.php @@ -0,0 +1,37 @@ +getMajorVersion() > 4} +{capture name="paymenttypes"} +
    + {$payment_name} +
    + +
    +
    +{/capture} +{/if} + +{if $plugin->getMajorVersion() <= 4} +{capture name="paymenttypes"} + + {form type=radio name=selected_payment value=$payment_code} + + {$payment_name} + +{/capture} +{/if} + +{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} +{literal} + +{/literal} + +
    + +
    +
    +

    + + {$smarty.capture.paymenttypes} +
    +

    +
    +
    + +
    + +{elseif $plugin->getMajorVersion() > 4} +{$smarty.capture.paymenttypes} +{else} + + + + + + + + + + +
    {$payment_name}{$payment_price.formated}
    + + + + + + + + +
    + {$smarty.capture.paymenttypes} +   + +
    + +
    +
    + +{/if} +{/if} \ No newline at end of file diff --git a/plugins/cardgatebillink/classes/class.cardgatebillink.php b/plugins/cardgatebillink/classes/class.cardgatebillink.php new file mode 100755 index 0000000..ceb6797 --- /dev/null +++ b/plugins/cardgatebillink/classes/class.cardgatebillink.php @@ -0,0 +1,59 @@ +order_data['order_data']['payment_code'] == 'billink') { + /** @global ADODB_mysql $db */ + global $db; + + $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); + if (count($rs)) + { + $cg_data = array_pop($rs); + if (strlen($cg_data['RESPONSEDATA'])) + { + $blacklist = array('last_order_id'); + $info = json_decode($cg_data['RESPONSEDATA']); + foreach ($info as $k => $v) + { + if (in_array($k, $blacklist)) + continue; + $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); + } + + } + } + +// if($rs->RecordCount()>0) { +// print "xxx"; +// foreach ($rs as $v) +// print_r($v); +// } + +} + diff --git a/plugins/cardgatebillink/images/cardgatebillink.png b/plugins/cardgatebillink/images/cardgatebillink.png new file mode 100644 index 0000000000000000000000000000000000000000..e7f21535104e9d52046946bb5f7d6af844fe4155 GIT binary patch literal 4679 zcmY*dbyO5iyIu+DR60aZQrM-WmR`CPl*}Db@ zE~_C6093>iU0dMZjai_|+8O|W4?6%56bb-b-a$bd0DuPw0N64I0L0$|05r}SbuYnp z69mr625tZV(SyHn50IWg3jo|RuzjWPuCJjk4s~+iv#@fqgz+IAobT8G02nEL*L8ro zTd*J<>>b_2k&>+cFvRcre_kfaCCKOG3J3CwiHQM00zd%)-a7`bo42F81(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tuO>XL@z2at+3>r(dC)&Q z988KXolDyADD>CdafaP5pHJ#viGC+x; z!PJc<&rj0e;n9Jd%dTy`k|rwCR<6#K@JaqA3Yv&oW`W6HZFRVDUlK>`Z47I#o&Ae0 z9FY5ZpqZKQ*8^uQX~pEuz6X5sL#Z82H24&u>F&u|x=^@{BXyaSW$Zd!GhZ;lWoS<=dej`yIr$j6jTg`iH-4 zep4wogO#%nKpn!`&aj>M@vGY+%_4%d+NZAbue1;7J77*si$pD~2PIn7YF+aLId~wx@ak$2k%_tcU}Ny-hsbkX z_BinoGvXz!(ilD&%q!?`st)ov-ox^}Y$N2FmdQ4fuc7=@uu;1@%3n+L8`tob_By3) z)XV&F)A%HG>7rMt8lhv}HSDW@{h$DQz6+@Yj>^AbI4f%RYNq7S~7yKFA!T> ym%~GG9SwAdiLsM!vt^B^>5b4XQgj}A{Hhu1T-?6A7rgrSyGBJp6H+Q?9{exE0>sP! literal 0 HcmV?d00001 diff --git a/plugins/cardgatebillink/installer/cardgatebillink.xml b/plugins/cardgatebillink/installer/cardgatebillink.xml new file mode 100755 index 0000000..b5f6c1d --- /dev/null +++ b/plugins/cardgatebillink/installer/cardgatebillink.xml @@ -0,0 +1,94 @@ + + + Billink + payment + 1.0.0 + cardgatebillink + http://cardgate.com + Zahlungsmodul Billink + cardgatebillink.png + + cardgatebillink + cardgatebillink + + cardgatebillink.html + + Billink + + + + Billink + + + + Billink + + + + + + + + + page_registry.php:bottom + + 1 + 1 + + + class.checkout.php:_getPayment + $v) { + if ($k != 'billink') { + unset($payment_data[$k]); + } + } + reset($payment_data); + } + ]]> + 1 + 1 + + + + class.checkout.php:_selectPayment_tpl_data + + 1 + 1 + + + + order_edit.php:display_data + + 0 + 1 + + + + + + + TEXT_PAYMENT_CARDGATE_BILLINK + store + + Billink + + + Billink + + + Billink + + + + diff --git a/plugins/cardgatebillink/installer/install.php b/plugins/cardgatebillink/installer/install.php new file mode 100755 index 0000000..26ece13 --- /dev/null +++ b/plugins/cardgatebillink/installer/install.php @@ -0,0 +1,37 @@ +getMajorVersion() > 4} +{capture name="paymenttypes"} +
    + {$payment_name} +
    + +
    +
    +{/capture} +{/if} + +{if $plugin->getMajorVersion() <= 4} +{capture name="paymenttypes"} + + {form type=radio name=selected_payment value=$payment_code} + + {$payment_name} + +{/capture} +{/if} + +{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} +{literal} + +{/literal} + +
    + +
    +
    +

    + + {$smarty.capture.paymenttypes} +
    +

    +
    +
    + +
    + +{elseif $plugin->getMajorVersion() > 4} +{$smarty.capture.paymenttypes} +{else} + + + + + + + + + + +
    {$payment_name}{$payment_price.formated}
    + + + + + + + + +
    + {$smarty.capture.paymenttypes} +   + +
    + +
    +
    + +{/if} +{/if} \ No newline at end of file diff --git a/plugins/cardgatebitcoin/classes/class.cardgatebitcoin.php b/plugins/cardgatebitcoin/classes/class.cardgatebitcoin.php new file mode 100755 index 0000000..b93dd23 --- /dev/null +++ b/plugins/cardgatebitcoin/classes/class.cardgatebitcoin.php @@ -0,0 +1,59 @@ +order_data['order_data']['payment_code'] == 'bitcoin') { + /** @global ADODB_mysql $db */ + global $db; + + $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); + if (count($rs)) + { + $cg_data = array_pop($rs); + if (strlen($cg_data['RESPONSEDATA'])) + { + $blacklist = array('last_order_id'); + $info = json_decode($cg_data['RESPONSEDATA']); + foreach ($info as $k => $v) + { + if (in_array($k, $blacklist)) + continue; + $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); + } + + } + } + +// if($rs->RecordCount()>0) { +// print "xxx"; +// foreach ($rs as $v) +// print_r($v); +// } + +} + diff --git a/plugins/cardgatebitcoin/images/cardgatebitcoin.png b/plugins/cardgatebitcoin/images/cardgatebitcoin.png new file mode 100755 index 0000000000000000000000000000000000000000..02c13a2da94a16344fcac04f2c046726326f00af GIT binary patch literal 3090 zcmZvecRbbmA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q-xzM2$jLG%E=DMCP3sLYjzwisZV&+QT&UG-Isi{v=Bpft0_9fFn-%2;yc9w~CFFY({ z=*le<;LQ`FWaM5_QrAsGRRuj`p9%v9xp(C6|NaS>@Ch7Z^L;e+$pO8}d81f$uZp~* OA9akLDVnC^5c)4kDR8L( literal 0 HcmV?d00001 diff --git a/plugins/cardgatebitcoin/installer/cardgatebitcoin.xml b/plugins/cardgatebitcoin/installer/cardgatebitcoin.xml new file mode 100755 index 0000000..a9359a5 --- /dev/null +++ b/plugins/cardgatebitcoin/installer/cardgatebitcoin.xml @@ -0,0 +1,94 @@ + + + Bitcoin + payment + 1.0.0 + cardgatebitcoin + http://cardgate.com + Zahlungsmodul Bitcoin + cardgatebitcoin.png + + cardgatebitcoin + cardgatebitcoin + + cardgatebitcoin.html + + Bitcoin + + + + Bitcoin + + + + Bitcoin + + + + + + + + + page_registry.php:bottom + + 1 + 1 + + + class.checkout.php:_getPayment + $v) { + if ($k != 'bitcoin') { + unset($payment_data[$k]); + } + } + reset($payment_data); + } + ]]> + 1 + 1 + + + + class.checkout.php:_selectPayment_tpl_data + + 1 + 1 + + + + order_edit.php:display_data + + 0 + 1 + + + + + + + TEXT_PAYMENT_CARDGATE_BITCOIN + store + + Bitcoin + + + Bitcoin + + + Bitcoin + + + + diff --git a/plugins/cardgatebitcoin/installer/install.php b/plugins/cardgatebitcoin/installer/install.php new file mode 100755 index 0000000..26ece13 --- /dev/null +++ b/plugins/cardgatebitcoin/installer/install.php @@ -0,0 +1,37 @@ +getMajorVersion() > 4} +{capture name="paymenttypes"} +
    + {$payment_name} +
    + +
    +
    +{/capture} +{/if} + +{if $plugin->getMajorVersion() <= 4} +{capture name="paymenttypes"} + + {form type=radio name=selected_payment value=$payment_code} + + {$payment_name} + +{/capture} +{/if} + +{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} +{literal} + +{/literal} + +
    + +
    +
    +

    + + {$smarty.capture.paymenttypes} +
    +

    +
    +
    + +
    + +{elseif $plugin->getMajorVersion() > 4} +{$smarty.capture.paymenttypes} +{else} + + + + + + + + + + +
    {$payment_name}{$payment_price.formated}
    + + + + + + + + +
    + {$smarty.capture.paymenttypes} +   + +
    + +
    +
    + +{/if} +{/if} \ No newline at end of file diff --git a/plugins/cardgatecreditcard/classes/class.cardgatecreditcard.php b/plugins/cardgatecreditcard/classes/class.cardgatecreditcard.php new file mode 100755 index 0000000..81c936a --- /dev/null +++ b/plugins/cardgatecreditcard/classes/class.cardgatecreditcard.php @@ -0,0 +1,59 @@ +order_data['order_data']['payment_code'] == 'creditcard') { + /** @global ADODB_mysql $db */ + global $db; + + $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); + if (count($rs)) + { + $cg_data = array_pop($rs); + if (strlen($cg_data['RESPONSEDATA'])) + { + $blacklist = array('last_order_id'); + $info = json_decode($cg_data['RESPONSEDATA']); + foreach ($info as $k => $v) + { + if (in_array($k, $blacklist)) + continue; + $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); + } + + } + } + +// if($rs->RecordCount()>0) { +// print "xxx"; +// foreach ($rs as $v) +// print_r($v); +// } + +} + diff --git a/plugins/cardgatecreditcard/images/cardgatecreditcard.png b/plugins/cardgatecreditcard/images/cardgatecreditcard.png new file mode 100755 index 0000000000000000000000000000000000000000..021ad0811ce403af9ae499f07cd8094a41d8286f GIT binary patch literal 1009 zcmZ?wbhEHb3}ldExXJ(mDYN%IWm5h>lOaQwn@OjLi8ue;kAKrTIvJf>zGle&yAXQj z%ozp-$MX0XowCJ$4>9h#^i)kfMM*X3iC3#cM5U;46g z-!cxZFOBowUjNTvoVH=fCco~Dum1h7U32XF`}^1LKl^{?%-0{knL~R%eEsw9^QUkB z{=fY2{r}&$VCRrV=zx@i{KCNY-=U|#Lr1Fr#G;f#Iac#8te7%$P1O3+FN8u~_-*n% zdC9@7X6f}URUBnix&@xw56H~co!YfTCieH*T;W(TS*Esj*(Tu>F)o4r36kCEzV*}G z6N*^d=gg5!VeV&Myrf?;C1LuioKjY?xf|LSE!ncTe?`dZRo+GGH*Vl!+Io1QK-x|z zZtjy(E`p3If)Xl>(#~osN=l5EoCUAkUDLGxKwICDEdtBEomIJ)oOR+)5fn_}cVbNa z?kt`9!{vyGhD)DtOCZ;Ut4$lyodktAAKx@?$aiL9W;FQWJs}~wsmIAhV#kaJP6rBE zPs)aPoN8!k=QPscsGP{cR?D`=c1MQq3HJYr-z?&I+80h|;1cOm>)l%PbVUkhyRN~r z2_2mijiV?0vD9zevW~waN#N(i#lB|D)-ne!FdpXQQs*iBaDbtifnRQl(gA^kbK3&n ziz!GjCQh7KDe9gUbMb3BOJ9o1pCcb0E_yOii77AZv?2=|yV8=i77q>_VdWEa3rHw@ zaG;5YWyjPHJ&R1+7)5y`4oW&62{7t8BUDrjuvVqs^q*fIBZhb!~Ghs?5^1s$KB#+thr*zJ7bz$e{vz%f=v z;Q2OK!G5+*ceOYJadVBIAe_q=NFfzBncjKmpbWK7dH2Y zCoUdjRdiVp)}SnN;1I`)Rs|+*d6xr@>`FZbhf0)PE;zBNT$$m+94dNI)P3?xVWnbz z76FDx&YBM?OvfY(!UBCHE*+eaGD(xcQF6&lM<Jq8gpA8%;f3_SnvkgpB^+?#|q@km8 z@lnv^U4JGXbyz%a@`^>GCI|dhO=~!qwR%0@<`*khTw3KOyj zuzEQ7vB%B` + + Creditcard + payment + 1.0.0 + cardgatecreditcard + http://cardgate.com + Zahlungsmodul Creditcard + cardgatecreditcard.png + + cardgatecreditcard + cardgatecreditcard + + cardgatecreditcard.html + + Creditcard + + + + Creditcard + + + + Creditcard + + + + + + + + + page_registry.php:bottom + + 1 + 1 + + + class.checkout.php:_getPayment + $v) { + if ($k != 'creditcard') { + unset($payment_data[$k]); + } + } + reset($payment_data); + } + ]]> + 1 + 1 + + + + class.checkout.php:_selectPayment_tpl_data + + 1 + 1 + + + + order_edit.php:display_data + + 0 + 1 + + + + + + + TEXT_PAYMENT_CARDGATE_CREDITCARD + store + + Creditcard + + + Creditcard + + + Creditcard + + + + diff --git a/plugins/cardgatecreditcard/installer/install.php b/plugins/cardgatecreditcard/installer/install.php new file mode 100755 index 0000000..26ece13 --- /dev/null +++ b/plugins/cardgatecreditcard/installer/install.php @@ -0,0 +1,37 @@ +getMajorVersion() > 4} +{capture name="paymenttypes"} +
    + {$payment_name} +
    + +
    +
    +{/capture} +{/if} + +{if $plugin->getMajorVersion() <= 4} +{capture name="paymenttypes"} + + {form type=radio name=selected_payment value=$payment_code} + + {$payment_name} + +{/capture} +{/if} + +{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} +{literal} + +{/literal} + +
    + +
    +
    +

    + + {$smarty.capture.paymenttypes} +
    +

    +
    +
    + +
    + +{elseif $plugin->getMajorVersion() > 4} +{$smarty.capture.paymenttypes} +{else} + + + + + + + + + + +
    {$payment_name}{$payment_price.formated}
    + + + + + + + + +
    + {$smarty.capture.paymenttypes} +   + +
    + +
    +
    + +{/if} +{/if} \ No newline at end of file diff --git a/plugins/cardgatedirectdebit/classes/class.cardgatedirectdebit.php b/plugins/cardgatedirectdebit/classes/class.cardgatedirectdebit.php new file mode 100755 index 0000000..3e84bf6 --- /dev/null +++ b/plugins/cardgatedirectdebit/classes/class.cardgatedirectdebit.php @@ -0,0 +1,59 @@ +order_data['order_data']['payment_code'] == 'directdebit') { + /** @global ADODB_mysql $db */ + global $db; + + $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); + if (count($rs)) + { + $cg_data = array_pop($rs); + if (strlen($cg_data['RESPONSEDATA'])) + { + $blacklist = array('last_order_id'); + $info = json_decode($cg_data['RESPONSEDATA']); + foreach ($info as $k => $v) + { + if (in_array($k, $blacklist)) + continue; + $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); + } + + } + } + +// if($rs->RecordCount()>0) { +// print "xxx"; +// foreach ($rs as $v) +// print_r($v); +// } + +} + diff --git a/plugins/cardgatedirectdebit/images/cardgatedirectdebit.png b/plugins/cardgatedirectdebit/images/cardgatedirectdebit.png new file mode 100755 index 0000000000000000000000000000000000000000..2e0f0b6d1e36b753608fb28e20ba8324651e3efb GIT binary patch literal 3902 zcmcJSc~Fzdw!r)QvWEl$31JHm_8nvon=E19K?FolFbNQrfFS`yL_tIaMi3EML=+eW zanNxA#0^nL9T@~v+|U8N2#kt2in!-~8LQN}_3pj(Ue)VAx_*87oI0mZpYH1R@$+Wc zCs+d-xCNw*L?ThCR0e~gt*vclW@cq&FMe3?;jo>9v2tK<#N-~(z3F$^78UZ zN=nMh%d4xa8yg#2T3R|fI*uPde(Kbz3l}a73=E8pj*g9uJ$m$Lc6RpFt5*_<3AOofVkS-7jkqKt>vKS_A5Ws){u)q?4 z1Ws0F&=T(mX>@*GY-Sds^!G^Li~>k1xnbrT%4Gh1?!S)YIhjHc08l8RY0c$jaS$#> zI4wt%DV5J5Ok0&IWf(1GArc_M%2H1H!lr-ed|@{!bJGP}L`NEPCO4fc<%17GYXCFChy6G)XEK@i@r{FG83kj0k5V>&l=L01 z`i@1sTqIBc*cq8?g#4sr5z~-k#I$s9U@?7pIcYqR$SgF0lbRspGT9mFnF)e50DM`r z)Cwp_lgmW1Y-j0UXJ=+*j^zJq`;U`fwf-|mH}{Lit1tjb%MPLsd=q{%{wB+427on> zB&YJ5Y*ifq-J1YVzV}V0yB7etVgS0Xf43mIv|^G)qD)5%i=3Psb3Tt_F3srI_Fomg zYW{op&Y!u|-`C_ZJ$Z=<;xrLcnpI9lT83E2%*ssQ@R(+QmGSq-?tf?bKL_(&Ag1BG zM4pf*Kzv2=c{zMR60+d}E?>mY5HR_If49f~N3(wk2Pti&vXMq@{S0U;%>m^)4WOP6 z05nwwpkntRGmv!SzN|lx5DBEGFG_RjOX*83zntj5=xYa8AP8silbBKwJ3NBP5eu`W zj2sJThXF(&hg_H{Km+IiLtqB1fIV;mZomupgAfn_mVp(31Cl{H5P}?#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A|ew>1lr@jf3m;VsrSSw^HT>-Yn^U5qj;v` zEb(mdS;@J)bMt+feb3G(oqycFvj6^t=nFS5hFu)I6maRvFW$dgxa@xU+!dEAr>{C* zJ^3r^*Y0a}*SZF52TuHE``d{@yTPvO_Sbuc9EN&_orlkkxQ?8^;d$ein|?R1-3q=n zJi2uB&h6OS<9E1srthZReR(hY-iP}e#xP^04=4|69x@&_|8DgA;c>h1GZUT@1CN$G zy8oE-_~}2g{_%0L_zC$*&6MU;`?S^c>4+KcnV~=!kA8S7u zed_%j@Oeyrunk`Fn=iME*a;H0_xXUwiK1&~Pwm zlNT}N`r587H7rLY?=(@Or*k8H93Cyj!z!t{&~MKSWQAQmVAymDHcK(jzzgoa@h zAOr`~MT*f%bj5_V%5=KAnqr$ejk^DkQt-}T8o=kQC1&CqHjy-} zSjpV0S6g5}fh#HJRbcXfa%`?Av=N0>)OFblLYdlt_BNljl}XVG!-Ckinfr<`2Fi}{ zSE{s7CJPx#Oy3dkV!2^8l9B0~Ba?2xQqQlJIYFm~$~?^7Lh(g;v}jf*f-QLMBH3We z)sHrqvU?g8RGs73?k$9?7&K8RaXi{wj-(CpX|GJRWYP2>S2_4VU{yK$+?}0aZyp!vdt`%05MJpGlzhbc)EW;mp)ut0efH*sR;S{o$Q>S- unc0b_zh6J+`q7eIyLpru%Ibbth_63@!KvCzk8h-S8%`9{?C>EJ;Pg*q5ad(< literal 0 HcmV?d00001 diff --git a/plugins/cardgatedirectdebit/installer/cardgatedirectdebit.xml b/plugins/cardgatedirectdebit/installer/cardgatedirectdebit.xml new file mode 100755 index 0000000..e8f83aa --- /dev/null +++ b/plugins/cardgatedirectdebit/installer/cardgatedirectdebit.xml @@ -0,0 +1,94 @@ + + + DirectDebit + payment + 1.0.0 + cardgatedirectdebit + http://cardgate.com + Zahlungsmodul DirectDebit + cardgatedirectdebit.png + + cardgatedirectdebit + cardgatedirectdebit + + cardgatedirectdebit.html + + DirectDebit + + + + DirectDebit + + + + DirectDebit + + + + + + + + + page_registry.php:bottom + + 1 + 1 + + + class.checkout.php:_getPayment + $v) { + if ($k != 'directdebit') { + unset($payment_data[$k]); + } + } + reset($payment_data); + } + ]]> + 1 + 1 + + + + class.checkout.php:_selectPayment_tpl_data + + 1 + 1 + + + + order_edit.php:display_data + + 0 + 1 + + + + + + + TEXT_PAYMENT_CARDGATE_DIRECTDEBIT + store + + Lastschriftverfahren + + + Direct Debit + + + Direct Debit + + + + diff --git a/plugins/cardgatedirectdebit/installer/install.php b/plugins/cardgatedirectdebit/installer/install.php new file mode 100755 index 0000000..26ece13 --- /dev/null +++ b/plugins/cardgatedirectdebit/installer/install.php @@ -0,0 +1,37 @@ +getMajorVersion() > 4} +{capture name="paymenttypes"} +
    + {$payment_name} +
    + +
    +
    +{/capture} +{/if} + +{if $plugin->getMajorVersion() <= 4} +{capture name="paymenttypes"} + + {form type=radio name=selected_payment value=$payment_code} + + {$payment_name} + +{/capture} +{/if} + +{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} +{literal} + +{/literal} + +
    + +
    +
    +

    + + {$smarty.capture.paymenttypes} +
    +

    +
    +
    + +
    + +{elseif $plugin->getMajorVersion() > 4} +{$smarty.capture.paymenttypes} +{else} + + + + + + + + + + +
    {$payment_name}{$payment_price.formated}
    + + + + + + + + +
    + {$smarty.capture.paymenttypes} +   + +
    + +
    +
    + +{/if} +{/if} \ No newline at end of file diff --git a/plugins/cardgategiftcard/classes/class.cardgategiftcard.php b/plugins/cardgategiftcard/classes/class.cardgategiftcard.php new file mode 100755 index 0000000..779c4cc --- /dev/null +++ b/plugins/cardgategiftcard/classes/class.cardgategiftcard.php @@ -0,0 +1,59 @@ +order_data['order_data']['payment_code'] == 'giftcard') { + /** @global ADODB_mysql $db */ + global $db; + + $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); + if (count($rs)) + { + $cg_data = array_pop($rs); + if (strlen($cg_data['RESPONSEDATA'])) + { + $blacklist = array('last_order_id'); + $info = json_decode($cg_data['RESPONSEDATA']); + foreach ($info as $k => $v) + { + if (in_array($k, $blacklist)) + continue; + $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); + } + + } + } +} + diff --git a/plugins/cardgategiftcard/images/cardgategiftcard.png b/plugins/cardgategiftcard/images/cardgategiftcard.png new file mode 100644 index 0000000000000000000000000000000000000000..74fc7e70fe60688e6bea36fbe112c62d80489348 GIT binary patch literal 715 zcmZ?wbh9u|bYswCxXJ(qp$rUZ3=Fvp3^fc44L~Ht(4fH3pv}wkpGX1^xvp467IzR%tW* zXZZjBKg0&wk%~WAIE@$-7<52Zfc(V3_TOQGK!}D^|A|8ZKPK4ByRf3fYpv7t!-tek z>L$&;wxL36VvO94bx}K6rXMfZXuSJf-Q15g73+va98K5v~uamh0Ao!WxTcv_bE0DoeFZ4oD#QM+j~abuO(}_ZchnV zozgS=yW`;rzE|Gud}W$HcY+UVJLB&skx_?d-f`_RIiqtyT|ndO*(qmEG*t#DX-#vT z;rVpyOa|56$>(Ov&DgHe*EVUE>Xx~ik5B15nNysrvLMj1vG?mq-I%~S=61Inojn&% z-8Y=Rt$fnG7f&{Mp6-fNlALp~Ie7Zd$z2+69<@(;CtSDd*U^j(%r5`t@dSK%_uBhr b?%K}}|9o|2xhBN&XWG1~sV9_O1Q@IV>1q)l literal 0 HcmV?d00001 diff --git a/plugins/cardgategiftcard/installer/cardgategiftcard.xml b/plugins/cardgategiftcard/installer/cardgategiftcard.xml new file mode 100755 index 0000000..ea6266d --- /dev/null +++ b/plugins/cardgategiftcard/installer/cardgategiftcard.xml @@ -0,0 +1,94 @@ + + + Gift Card + payment + 1.0.0 + cardgategiftcard + http://cardgate.com + Zahlungsmodul Gift Card + cardgategiftcard.png + + cardgategiftcard + cardgategiftcard + + cardgategiftcard.html + + Gift Card + + + + Gift Card + + + + Gift Card + + + + + + + + + page_registry.php:bottom + + 1 + 1 + + + class.checkout.php:_getPayment + $v) { + if ($k != 'giftcard') { + unset($payment_data[$k]); + } + } + reset($payment_data); + } + ]]> + 1 + 1 + + + + class.checkout.php:_selectPayment_tpl_data + + 1 + 1 + + + + order_edit.php:display_data + + 0 + 1 + + + + + + + TEXT_PAYMENT_CARDGATE_GIFTCARD + store + + Gift Card + + + Gift Card + + + Gift Card + + + + diff --git a/plugins/cardgategiftcard/installer/install.php b/plugins/cardgategiftcard/installer/install.php new file mode 100755 index 0000000..26ece13 --- /dev/null +++ b/plugins/cardgategiftcard/installer/install.php @@ -0,0 +1,37 @@ +getMajorVersion() > 4} +{capture name="paymenttypes"} +
    + {$payment_name} +
    + +
    +
    +{/capture} +{/if} + +{if $plugin->getMajorVersion() <= 4} +{capture name="paymenttypes"} + + {form type=radio name=selected_payment value=$payment_code} + + {$payment_name} + +{/capture} +{/if} + +{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} +{literal} + +{/literal} + +
    + +
    +
    +

    + + {$smarty.capture.paymenttypes} +
    +

    +
    +
    + +
    + +{elseif $plugin->getMajorVersion() > 4} +{$smarty.capture.paymenttypes} +{else} + + + + + + + + + + +
    {$payment_name}{$payment_price.formated}
    + + + + + + + + +
    + {$smarty.capture.paymenttypes} +   + +
    + +
    +
    + +{/if} +{/if} \ No newline at end of file diff --git a/plugins/cardgategiropay/classes/class.cardgategiropay.php b/plugins/cardgategiropay/classes/class.cardgategiropay.php new file mode 100755 index 0000000..a5fdabc --- /dev/null +++ b/plugins/cardgategiropay/classes/class.cardgategiropay.php @@ -0,0 +1,59 @@ +order_data['order_data']['payment_code'] == 'giropay') { + /** @global ADODB_mysql $db */ + global $db; + + $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); + if (count($rs)) + { + $cg_data = array_pop($rs); + if (strlen($cg_data['RESPONSEDATA'])) + { + $blacklist = array('last_order_id'); + $info = json_decode($cg_data['RESPONSEDATA']); + foreach ($info as $k => $v) + { + if (in_array($k, $blacklist)) + continue; + $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); + } + + } + } + +// if($rs->RecordCount()>0) { +// print "xxx"; +// foreach ($rs as $v) +// print_r($v); +// } + +} + diff --git a/plugins/cardgategiropay/images/cardgategiropay.png b/plugins/cardgategiropay/images/cardgategiropay.png new file mode 100755 index 0000000000000000000000000000000000000000..3d9810138af746d09948668bcc12cc8ec44c25a8 GIT binary patch literal 2549 zcmaJ@c|25mA09VZ$CeZ!ry=n&8#BrN&$6INpAkY?l zx|=7@ljwk1gFNiQ2hZ=x! z!CQZgB^+TPK|CHC1BZu)hr_}RVJuD{9BFK93`ZEi4Gf?{1e6=WVllwJI!i2&3BsLrgLu_nm6G$Zfe<*|T4bA1b z(Ej!NKZUt&5o{XVg~nxtawx)s3((vM#m3+`G!l=+abvNLZD#RM5R1p+2C>+H)iD}_ z#^iAUq|h5cBvI(hjg>DwG`E_b6S7;Ir=JdHySqfxCnEC%pp^BDT~ zy%>I1?<<%3eJ`l*a^XTV@Qow>uOr`_64ud1_geuA2j4yc8dF&J9ASZzW0d?sATd7z z-olMPFykrdusv}5dVrI^!0M)sh(J;4?8UxOh2p~kqd1^6nEdNDZ%Xg=%I+XJMsNy& z@zaqIId7%P>&sXEW9imxTTw0VT;$sd&0^)R)EU zbVvf41|AIw(-AR5mX z$D&b<>th)6s`wTY77n5O*LdjDH?iCkyDrh|L~^ECF6t4_Ex1;a8PqF+8^in8hIDT} zuUR;*W)35$w~Vtt=e)C-MrFDi=k>k<3NX0jrC8YLR@)pHZhkr8L5N4Ldz1yU%Y1$z zj<_lILdHMGCdXLc~vx+`6_SlsEG9 zHsIEW8o{p<&Gj0Cx-=iLfZ9Lu->~hTK6XD-7p^Zcw^LNZN%M?dh0bHYEw4XnpHAR4 zuieBP)w^}5^Qv95<+F(uqq|8E@5+kEC1rOK>Yh}gYy~D-t$aeQJ-DocdUvR^0^8(C z~0cRrQN>8yl=6_6*4>OMq&JOfS? zkyb`a9EC!G@t60+J7-F|T2f<;O%(HB0{_0?wtVsXxRS%!((f{kGEa@r<04-B+U~t} z-LF>d^Mt~Dhl%W5m4|sd+k{scu9>la2>9>#Whj$wg<@Z z^5X=7Yd<6`Oe(8?{EDU(`F*~#XEi(rqD^kkIF$Rt8iM3zhI;Aq^7vJG#MJIW+(Mf7 z(w?RaWpN*>mT9RL8op?^3PF|sRUkbskl$&;l{9iR0asb!6t{zao=)jX6xFpB_}XN+ zs2BB5vP-URGn+9@@j1~sN_JKOM?&Ln>`qr1Q2p&-esblrVe`@XhBp4a)-8vh?4YXE z#W7FKA}Kxc;2FhaA8I=`PLns#qIy+Q)&(-sZYuHNG$ zh~UCUyPj36$J|bv>bQS`tJLXv0d*-3>Q5Y))UH`nc0r_T$hCA1u>+`r?8{qx_{yk; zfP(I+Q6tr;-rq?AFN7qF#T`S!n}oZhsAXo<*YWQmd{cx+TP zX{x07NK-~~lf0@lo3SionNa0tBKP*KuT5vSeX#6&Vzw+}&#v|8X(XDS(j=|B?X)vE zbtYw5v}L_Wp>;c*=LrhYiU zVG^cm?S^P^ zkG(bZ(3JebGwryYz2_I#yQd|+_c5z<%GE`k^mjWKm_WUa${k6yG57Yb=_R6~4Buvk zNZsjMb+W)oGV7yT?4X%5>nl+!Ch4_|dZuf4+QMGftQbMhB+_k*>Cl6Go!TM#>Zd}j z!MNEMuhN$n(1H~?)E}sXU#l*MKYcIRE7>DjfWt2&?>p&ui^aC??SD12GS#*?GO0QS sVC`#v^pj@9Y^_##5zu9p^?Iu^h;XNxGoal-*!U46SUKWvS^CHQ4eaqZp8x;= literal 0 HcmV?d00001 diff --git a/plugins/cardgategiropay/installer/cardgategiropay.xml b/plugins/cardgategiropay/installer/cardgategiropay.xml new file mode 100755 index 0000000..09dbfef --- /dev/null +++ b/plugins/cardgategiropay/installer/cardgategiropay.xml @@ -0,0 +1,94 @@ + + + Giropay + payment + 1.0.0 + cardgategiropay + http://cardgate.com + Zahlungsmodul Giropay + cardgategiropay.png + + cardgategiropay + cardgategiropay + + cardgategiropay.html + + Giropay + + + + Giropay + + + + Giropay + + + + + + + + + page_registry.php:bottom + + 1 + 1 + + + class.checkout.php:_getPayment + $v) { + if ($k != 'giropay') { + unset($payment_data[$k]); + } + } + reset($payment_data); + } + ]]> + 1 + 1 + + + + class.checkout.php:_selectPayment_tpl_data + + 1 + 1 + + + + order_edit.php:display_data + + 0 + 1 + + + + + + + TEXT_PAYMENT_CARDGATE_GIROPAY + store + + Giropay + + + Giropay + + + Giropay + + + + diff --git a/plugins/cardgategiropay/installer/install.php b/plugins/cardgategiropay/installer/install.php new file mode 100755 index 0000000..26ece13 --- /dev/null +++ b/plugins/cardgategiropay/installer/install.php @@ -0,0 +1,37 @@ +getMajorVersion() > 4} +{capture name="paymenttypes"} +
    + {$payment_name} +
    + +
    +
    +{/capture} +{/if} + +{if $plugin->getMajorVersion() <= 4} +{capture name="paymenttypes"} + + {form type=radio name=selected_payment value=$payment_code} + + {$payment_name} + +{/capture} +{/if} + +{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} +{literal} + +{/literal} + +
    + +
    +
    +

    + + {$smarty.capture.paymenttypes} +
    +

    +
    +
    + +
    + +{elseif $plugin->getMajorVersion() > 4} +{$smarty.capture.paymenttypes} +{else} + + + + + + + + + + +
    {$payment_name}{$payment_price.formated}
    + + + + + + + + +
    + {$smarty.capture.paymenttypes} +   + +
    + +
    +
    + +{/if} +{/if} \ No newline at end of file diff --git a/plugins/cardgateideal/classes/class.cardgateideal.php b/plugins/cardgateideal/classes/class.cardgateideal.php new file mode 100755 index 0000000..39cd335 --- /dev/null +++ b/plugins/cardgateideal/classes/class.cardgateideal.php @@ -0,0 +1,59 @@ +getBanks(); +} diff --git a/plugins/cardgateideal/hooks/module_checkout_payment_check.php b/plugins/cardgateideal/hooks/module_checkout_payment_check.php new file mode 100755 index 0000000..48ef2d7 --- /dev/null +++ b/plugins/cardgateideal/hooks/module_checkout_payment_check.php @@ -0,0 +1,41 @@ +order_data['order_data']['payment_code'] == 'ideal') { + /** @global ADODB_mysql $db */ + global $db; + + $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); + if (count($rs)) + { + $cg_data = array_pop($rs); + if (strlen($cg_data['RESPONSEDATA'])) + { + $blacklist = array('last_order_id'); + $info = json_decode($cg_data['RESPONSEDATA']); + foreach ($info as $k => $v) + { + if (in_array($k, $blacklist)) + continue; + $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); + } + + } + } + +// if($rs->RecordCount()>0) { +// print "xxx"; +// foreach ($rs as $v) +// print_r($v); +// } + +} + diff --git a/plugins/cardgateideal/images/cardgateideal.png b/plugins/cardgateideal/images/cardgateideal.png new file mode 100755 index 0000000000000000000000000000000000000000..ae41d86a3f5cac3ee646fb5922e5aafe7559ed98 GIT binary patch literal 939 zcmV;c162HpP)@imQoaM_Pq=y_E8nGUt9;19{Qj>)}1O=9wSF~D; zT*B6M7D;{UpfB*lVd(Quz@0`+KyCtP1yCr4x2v1FokB#NJ*=n_7 ztZ!(jH=7LxL-xgc;1?b)mn#?y{?8{n91a+^+wFS2KATS@PbMaeMx)B3qtPhFx!KuB zBmyP)N8E1r$jC@vU!TGTx-O^F$#GmP7R&p>7X*P0fj~(l60!wbeEKGeioyOatO#dE z6+Nr49o04(%PmH}+2r&2t_}=b9~z>I@Or&$B+JwUY9p~GP78{EN%OiEzUIEbh>^`41xv!>VjvIz z?vZ5DB!Z*f*w;HRc#{dZhg<&+kzo%I;u!J!{j^|x;fwfcX{O~Ge$dmep}ChO7x06E zSIk3?k4HXw9ze&I=ixAWg4`z{hkZqUB$G+P-umlk-LM^#`}k@x{C@TE8}e0CTS*|q zSYBHNDB{l6Cg+b?ESRBeQ*}?NREn?{yY+N$Q#!AI#zkHG5u8W{HkMacMxRxlYGQZc zI|$+kAih<>5>Xk;F(5Qe1&43Pp+7#v(|E1Y;b<6!4g*|=x#n^gMyy$1j=74s-`zHBR-G2f$mOS?ny0^#E0k6A#jsjS5x(Oa*F&h>5w~ZqV z21<3%nv@E3Pg0VSy}voMIlpxAF2+RY9r+5YNUV$uyI-dR#3fK58xTy;rHmsKbs33} ze-s<7R;v&_xFRbb%EY{r5MJo22pV!ksIMB?1)PiUuro!e?!X?`Tss*GK?n5}(Gp0V zvK}MlZ&55A@^l~UX$5maNBxybRB6G@0Nh|zatPU(@t&wV$nS0%LmrrcH(i~b)Rknb zx#*`@3ZeTXHc~9@1Za=~cqE;Rn>`lHNQqyVjs=|w3JppF+pb_{`^qgo4Gs?G6fs$j zBN%KsSMK+~I@GY`(NNO%4x0^icIO@zLRBPJ$<(oC>tWUJ$xnU@FaQyQtT|-curdGu N002ovPDHLkV1nc&rrH1i literal 0 HcmV?d00001 diff --git a/plugins/cardgateideal/installer/cardgateideal.xml b/plugins/cardgateideal/installer/cardgateideal.xml new file mode 100755 index 0000000..69128fe --- /dev/null +++ b/plugins/cardgateideal/installer/cardgateideal.xml @@ -0,0 +1,99 @@ + + + iDEAL + payment + 1.0.0 + cardgateideal + http://cardgate.com + Zahlungsmodul iDEAL + cardgateideal.png + + cardgateideal + cardgateideal + + cardgateideal.html + + iDEAL + + + + iDEAL + + + + iDEAL + + + + + + + + + page_registry.php:bottom + + 1 + 1 + + + class.checkout.php:_getPayment + $v) { + if ($k != 'ideal') { + unset($payment_data[$k]); + } + } + reset($payment_data); + } + ]]> + 1 + 1 + + + + class.checkout.php:_selectPayment_tpl_data + + 1 + 1 + + + module_checkout.php:checkout_payment_check + + 1 + 1 + + + order_edit.php:display_data + + 0 + 1 + + + + + + + TEXT_PAYMENT_CARDGATE_IDEAL + store + + iDEAL + + + iDEAL + + + iDEAL + + + + diff --git a/plugins/cardgateideal/installer/install.php b/plugins/cardgateideal/installer/install.php new file mode 100755 index 0000000..26ece13 --- /dev/null +++ b/plugins/cardgateideal/installer/install.php @@ -0,0 +1,37 @@ +No CardGate paymenttype activated +{/capture} + +{if $plugin->getMajorVersion() > 4} +{capture name="paymenttypes"} +
    + {$payment_name} +
    + +
    +
    + +
    +
    +{/capture} +{/if} + +{if $plugin->getMajorVersion() <= 4} +{capture name="paymenttypes"} + + {form type=radio name=selected_payment value=$payment_code} + + + + {$payment_name} + +{/capture} +{/if} + +{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} +{literal} + +{/literal} + +
    + +
    +
    +

    + + {$smarty.capture.paymenttypes} +
    +

    +
    +
    +
    +
    + +
    + +{elseif $plugin->getMajorVersion() > 4} +{$smarty.capture.paymenttypes} +{else} + + + + + + + + + + + +
    {$payment_name}{$payment_price.formated}
    + + + + + + + + +
    + {$smarty.capture.paymenttypes} +   + +
    + +
    +
    + +{/if} +{/if} \ No newline at end of file diff --git a/plugins/cardgateidealqr/classes/class.cardgateidealqr.php b/plugins/cardgateidealqr/classes/class.cardgateidealqr.php new file mode 100755 index 0000000..da95ace --- /dev/null +++ b/plugins/cardgateidealqr/classes/class.cardgateidealqr.php @@ -0,0 +1,59 @@ +order_data['order_data']['payment_code'] == 'idealqr') { + /** @global ADODB_mysql $db */ + global $db; + + $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); + if (count($rs)) + { + $cg_data = array_pop($rs); + if (strlen($cg_data['RESPONSEDATA'])) + { + $blacklist = array('last_order_id'); + $info = json_decode($cg_data['RESPONSEDATA']); + foreach ($info as $k => $v) + { + if (in_array($k, $blacklist)) + continue; + $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); + } + + } + } + +// if($rs->RecordCount()>0) { +// print "xxx"; +// foreach ($rs as $v) +// print_r($v); +// } + +} + diff --git a/plugins/cardgateidealqr/images/cardgateidealqr.png b/plugins/cardgateidealqr/images/cardgateidealqr.png new file mode 100644 index 0000000000000000000000000000000000000000..fec6326cd1a6a281493d2d72162db6e275e96900 GIT binary patch literal 3251 zcmY*c2|Sct`?l{}X$-QA5!uE}mNzCt7$KpU$r=VD`!@DvFbdf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A0|GwodidHMI*8SDXsPKh~|ip|M{$sSSnQ1#Nqtv9|?;RB-CP!3*)X+fHE^<@ZM zE{UKP$7xbSaC--to3`hRt`cuTR=fs$0206He+L6nyKgXfmPL^E`5{s!Q()w*y9-fz zo<9iY_k)x4J+v>l9y|K`iVWN2`rOc7qRCwDRYwHCNX61(H?l-Oo@n=jZQ`|pn&Njc zb!P_TI!?@VJTp^3n2^V1!V)qqF-ORA4m`89DG_Q(o)XSm%Egf eGLZ}Mv)e#Ke~#lTwhG(Bn}oTE6|%<2jqo4i#Rx?J literal 0 HcmV?d00001 diff --git a/plugins/cardgateidealqr/installer/cardgateidealqr.xml b/plugins/cardgateidealqr/installer/cardgateidealqr.xml new file mode 100755 index 0000000..a31b207 --- /dev/null +++ b/plugins/cardgateidealqr/installer/cardgateidealqr.xml @@ -0,0 +1,94 @@ + + + iDEAL QR + payment + 1.0.0 + cardgateidealqr + http://cardgate.com + Zahlungsmodul iDEAL QR + cardgateidealqr.png + + cardgateidealqr + cardgateidealqr + + cardgateidealqr.html + + IDEAL QR + + + + IDEAL QR + + + + IDEAL QR + + + + + + + + + page_registry.php:bottom + + 1 + 1 + + + class.checkout.php:_getPayment + $v) { + if ($k != 'idealqr') { + unset($payment_data[$k]); + } + } + reset($payment_data); + } + ]]> + 1 + 1 + + + + class.checkout.php:_selectPayment_tpl_data + + 1 + 1 + + + + order_edit.php:display_data + + 0 + 1 + + + + + + + TEXT_PAYMENT_CARDGATE_IDEALQR + store + + IDEAL QR + + + IDEAL QR + + + IDEAL QR + + + + diff --git a/plugins/cardgateidealqr/installer/install.php b/plugins/cardgateidealqr/installer/install.php new file mode 100755 index 0000000..26ece13 --- /dev/null +++ b/plugins/cardgateidealqr/installer/install.php @@ -0,0 +1,37 @@ +getMajorVersion() > 4} +{capture name="paymenttypes"} +
    + {$payment_name} +
    + +
    +
    +{/capture} +{/if} + +{if $plugin->getMajorVersion() <= 4} +{capture name="paymenttypes"} + + {form type=radio name=selected_payment value=$payment_code} + + {$payment_name} + +{/capture} +{/if} + +{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} +{literal} + +{/literal} + +
    + +
    +
    +

    + + {$smarty.capture.paymenttypes} +
    +

    +
    +
    + +
    + +{elseif $plugin->getMajorVersion() > 4} +{$smarty.capture.paymenttypes} +{else} + + + + + + + + + + +
    {$payment_name}{$payment_price.formated}
    + + + + + + + + +
    + {$smarty.capture.paymenttypes} +   + +
    + +
    +
    + +{/if} +{/if} \ No newline at end of file diff --git a/plugins/cardgateklarna/classes/class.cardgateklarna.php b/plugins/cardgateklarna/classes/class.cardgateklarna.php new file mode 100755 index 0000000..68b7699 --- /dev/null +++ b/plugins/cardgateklarna/classes/class.cardgateklarna.php @@ -0,0 +1,59 @@ +order_data['order_data']['payment_code'] == 'klarna') { + /** @global ADODB_mysql $db */ + global $db; + + $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); + if (count($rs)) + { + $cg_data = array_pop($rs); + if (strlen($cg_data['RESPONSEDATA'])) + { + $blacklist = array('last_order_id'); + $info = json_decode($cg_data['RESPONSEDATA']); + foreach ($info as $k => $v) + { + if (in_array($k, $blacklist)) + continue; + $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); + } + + } + } + +// if($rs->RecordCount()>0) { +// print "xxx"; +// foreach ($rs as $v) +// print_r($v); +// } + +} + diff --git a/plugins/cardgateklarna/images/cardgateklarna.png b/plugins/cardgateklarna/images/cardgateklarna.png new file mode 100755 index 0000000000000000000000000000000000000000..4d3b982c552f1de42297b76701f0b5343675b787 GIT binary patch literal 5235 zcmai22{@GN+aLSBhwPKJ5@VRLOoK3F$r{<0*(}M7WiS!RE+V9avJ_JGWJ$Ix9c15$ z$a2WOMb>Y0>VNuQ=X~GyUe~+b&;9$|zx%$Q=XtN|jWRO0%tX&i4*&p|bhHsBq&tRm zo}r~CT|vIg(WD!tlbXI708kRgaDb#Dy#vwOCi(z?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WMq-F7!fcp%{!=VZ5-W{9H+Cp)xe=qB(!VNu&#$) zo?bu7c=Uj1OmR4*)#rBUZB)WET0n*N8=!S6Ws@^ofXDgDSL!ol`(r&R-&r4j?0YdY z$1#Fa4w!6&18m0)WqNtj`O|K%5H<?H9lTSp0+Pi;#BRQ#U7MF8Sgn z%0eZgs6ufRjd$-}j`HBI46Yo`kXu{Zfd;(i`hMx@moH+5B97+#Os!&v%h#l>(sHd` zJQ@<~d~Jz$8!CJ)s%CJ6NM|pX1wDng=bnctrMTJL)lTIS`n1*XscfV_TYeb6*m4*W zOZK7cqK%J9!%UN!-ZWDkBGCih}G#8 zc(L{x=<395@qMy$BRCD!Cln*liCp7Ry`pv6iBML0-KgyABzK(6=KH(Pyw4S_77*i{ zG49TkS~>BXJy!DOn9a40b?fq3DA=>Wrv3@-@j0CwX6CT~Ezx-s6{zy}-Ihdenl!k` zBgxYZ)b1KMc9;zZ nB!0`>gLLQKQDHj3yG+{KWdUM}F1Pia{O{AzG(Z%pI|Tm^RCGHQ literal 0 HcmV?d00001 diff --git a/plugins/cardgateklarna/installer/cardgateklarna.xml b/plugins/cardgateklarna/installer/cardgateklarna.xml new file mode 100755 index 0000000..12c008a --- /dev/null +++ b/plugins/cardgateklarna/installer/cardgateklarna.xml @@ -0,0 +1,94 @@ + + + Klarna + payment + 1.0.0 + cardgateklarna + http://cardgate.com + Zahlungsmodul Klarna + cardgateklarna.png + + cardgateklarna + cardgateklarna + + cardgateklarna.html + + Klarna + + + + Klarna + + + + Klarna + + + + + + + + + page_registry.php:bottom + + 1 + 1 + + + class.checkout.php:_getPayment + $v) { + if ($k != 'klarna') { + unset($payment_data[$k]); + } + } + reset($payment_data); + } + ]]> + 1 + 1 + + + + class.checkout.php:_selectPayment_tpl_data + + 1 + 1 + + + + order_edit.php:display_data + + 0 + 1 + + + + + + + TEXT_PAYMENT_CARDGATE_KLARNA + store + + Klarna + + + Klarna + + + Klarna + + + + diff --git a/plugins/cardgateklarna/installer/install.php b/plugins/cardgateklarna/installer/install.php new file mode 100755 index 0000000..26ece13 --- /dev/null +++ b/plugins/cardgateklarna/installer/install.php @@ -0,0 +1,37 @@ +getMajorVersion() > 4} +{capture name="paymenttypes"} +
    + {$payment_name} +
    + +
    +
    +{/capture} +{/if} + +{if $plugin->getMajorVersion() <= 4} +{capture name="paymenttypes"} + + {form type=radio name=selected_payment value=$payment_code} + + {$payment_name} + +{/capture} +{/if} + +{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} +{literal} + +{/literal} + +
    + +
    +
    +

    + + {$smarty.capture.paymenttypes} +
    +

    +
    +
    + +
    + +{elseif $plugin->getMajorVersion() > 4} +{$smarty.capture.paymenttypes} +{else} + + + + + + + + + + +
    {$payment_name}{$payment_price.formated}
    + + + + + + + + +
    + {$smarty.capture.paymenttypes} +   + +
    + +
    +
    + +{/if} +{/if} \ No newline at end of file diff --git a/plugins/cardgatepaypal/classes/class.cardgatepaypal.php b/plugins/cardgatepaypal/classes/class.cardgatepaypal.php new file mode 100755 index 0000000..0c81057 --- /dev/null +++ b/plugins/cardgatepaypal/classes/class.cardgatepaypal.php @@ -0,0 +1,59 @@ +order_data['order_data']['payment_code'] == 'paypal') { + /** @global ADODB_mysql $db */ + global $db; + + $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); + if (count($rs)) + { + $cg_data = array_pop($rs); + if (strlen($cg_data['RESPONSEDATA'])) + { + $blacklist = array('last_order_id'); + $info = json_decode($cg_data['RESPONSEDATA']); + foreach ($info as $k => $v) + { + if (in_array($k, $blacklist)) + continue; + $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); + } + + } + } + +// if($rs->RecordCount()>0) { +// print "xxx"; +// foreach ($rs as $v) +// print_r($v); +// } + +} + diff --git a/plugins/cardgatepaypal/images/cardgatepaypal.png b/plugins/cardgatepaypal/images/cardgatepaypal.png new file mode 100755 index 0000000000000000000000000000000000000000..8d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t zcu8KoqA15RBz)i4#G5;ggd`;hOPi_%zrE$C(EwyDm|tJRY!!^4<#12m@QA^@c>!lG zYQP6+6G0CFq&(^TqycN+*?ZUD{rjwn(&ob*Yd7v0Nu>!1L3LH}tje-zr#SNsvnmgD z4gy4$&bgw5`^H~f>&&86#wIfRI{Hlz<%vZNRTN=a7yJr&a*hH;A2RG29RB*Fug|M3 zJ32J_=JvMZEoH|vUxS-IUG3Q0{Bqw&Ar_l_ZcD`7$b#wwbNH$ zeL+PQoPvn#@5lE8BuN@iB|DEE zN63oO!otEFvtWuMN+K0yktF!^D;sy-`1S7_nV|yWsfTVmXT<^-35%8qCqIt5B9<*o zK3cp)WKte|!zaR2rXVj?l%Fuh07!@cg=EC=Cr3cSz0at?ILZ6F1oaAnNi=#o4A9_b2VWxHwT=T;L&r0wY?>i0Zs= zj`xjxVCG;d(WZ9r|0`LxDMtMePZ=hgS5P)|l8>x^_J#GEcefbx z^FHG6`F#kb599Q2DN*N6+xH*t>gk7&lgL@Vq$xKy#_ZAmd$#-k08k%_ew-c^SpWb4 M07*qoM6N<$g49TiFaQ7m literal 0 HcmV?d00001 diff --git a/plugins/cardgatepaypal/installer/cardgatepaypal.xml b/plugins/cardgatepaypal/installer/cardgatepaypal.xml new file mode 100755 index 0000000..5a5f3eb --- /dev/null +++ b/plugins/cardgatepaypal/installer/cardgatepaypal.xml @@ -0,0 +1,94 @@ + + + PayPal + payment + 1.0.0 + cardgatepaypal + http://cardgate.com + Zahlungsmodul PayPal + cardgatepaypal.png + + cardgatepaypal + cardgatepaypal + + cardgatepaypal.html + + PayPal + + + + PayPal + + + + PayPal + + + + + + + + + page_registry.php:bottom + + 1 + 1 + + + class.checkout.php:_getPayment + $v) { + if ($k != 'paypal') { + unset($payment_data[$k]); + } + } + reset($payment_data); + } + ]]> + 1 + 1 + + + + class.checkout.php:_selectPayment_tpl_data + + 1 + 1 + + + + order_edit.php:display_data + + 0 + 1 + + + + + + + TEXT_PAYMENT_CARDGATE_PAYPAL + store + + PayPal + + + PayPal + + + PayPal + + + + diff --git a/plugins/cardgatepaypal/installer/install.php b/plugins/cardgatepaypal/installer/install.php new file mode 100755 index 0000000..26ece13 --- /dev/null +++ b/plugins/cardgatepaypal/installer/install.php @@ -0,0 +1,37 @@ +getMajorVersion() > 4} +{capture name="paymenttypes"} +
    + {$payment_name} +
    + +
    +
    +{/capture} +{/if} + +{if $plugin->getMajorVersion() <= 4} +{capture name="paymenttypes"} + + {form type=radio name=selected_payment value=$payment_code} + + {$payment_name} + +{/capture} +{/if} + +{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} +{literal} + +{/literal} + +
    + +
    +
    +

    + + {$smarty.capture.paymenttypes} +
    +

    +
    +
    + +
    + +{elseif $plugin->getMajorVersion() > 4} +{$smarty.capture.paymenttypes} +{else} + + + + + + + + + + +
    {$payment_name}{$payment_price.formated}
    + + + + + + + + +
    + {$smarty.capture.paymenttypes} +   + +
    + +
    +
    + +{/if} +{/if} \ No newline at end of file diff --git a/plugins/cardgatepaysafecard/classes/class.cardgatepaysafecard.php b/plugins/cardgatepaysafecard/classes/class.cardgatepaysafecard.php new file mode 100755 index 0000000..0abd6ea --- /dev/null +++ b/plugins/cardgatepaysafecard/classes/class.cardgatepaysafecard.php @@ -0,0 +1,59 @@ +ƒorder_data['order_data']['payment_code'] == 'paysafecard') { + /** @global ADODB_mysql $db */ + global $db; + + $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); + if (count($rs)) + { + $cg_data = array_pop($rs); + if (strlen($cg_data['RESPONSEDATA'])) + { + $blacklist = array('last_order_id'); + $info = json_decode($cg_data['RESPONSEDATA']); + foreach ($info as $k => $v) + { + if (in_array($k, $blacklist)) + continue; + $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); + } + + } + } + +// if($rs->RecordCount()>0) { +// print "xxx"; +// foreach ($rs as $v) +// print_r($v); +// } + +} + diff --git a/plugins/cardgatepaysafecard/images/cardgatepaysafecard.png b/plugins/cardgatepaysafecard/images/cardgatepaysafecard.png new file mode 100644 index 0000000000000000000000000000000000000000..3a7d0bdb6a7a27227e0bd1af433bf70db9410bc3 GIT binary patch literal 5748 zcmb_g2|UyP|6eFqa-?!wt{kz=F)ZeqGZUkbl-WKQcG%`tsZf*AP|qa84APrv}U~4 zajapy-#?wA$oOD$H$WSJKshno)7aIFYcS3Xg9d?u0a8k@1X&{h_H1oA8;EJ9f2*mZ0VCO)0KwBbkWTFZdPj&@V0*Dlb zHVC8>fM9$j0(2}mfap!4Ap&%z<}?tD?@Td73OuJm_tKSeKwE>2$W#EVp`xw=l|piX z!C)OK-VK34nJmB=SGrOjbUFnAf%yCTtN5#_kg4tvn6|by1gZ*ARaItaDANK-bZme! zi6%WyvdDu1XgDf?LMM<(U?wltmF!E`m6Bo_`uUjmlTL73vP7aSgvAID!aRY%RG^TR zU_b!jFEHlGUtxIM&!{NARPVW%@HhzI4G;kmoyNeyRy4=REgJn3`iq+ZSjwC^B5_3| zjc)A62z?=yDS z6b~|;O!FZB1^V-NKKFAyHD78SW+4&G@VtGQ9kG){pd(dv=IZ;qc&S0=Q9GyvMmDfa z7!tMsSuR_q&#XJbnh*eZJD>=RYSNe(ZB=a@$ciVwBaO)3WU4I%ivy5w4GlGo1=uq2 z?}#~Dj!U*+aE6CVww9eNL*j7=H!_uor6UPMtUCaqklb}3OTuNEb1jEp1nW*9VZBjg zoG-IQ%~42SUjiPXZHUq~Fj7SsnHa!OC>YEDW`Z&?(K1n2he1sY47GG1f5rb{!;CPjuP@6Sc>bIzHVxhX(kadU;lkx704 zl@8!_Aiv0$9Q%n~05a@g8A}YH(vWUcG7&tVJ5LJW4yKbAuI4g1&$mqdcTOD$b02vV z{y)Q_k=^M2SSn!P&L|MlfVr2!){D~uHZlUMLSgD)c{CPBATdWsVKMGsfxo-DlsB9Q zmgElLk&s2;qTufke-D6!WZ2bEhH5CoV0JJK1mmfusRUI;K%t8~b6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>vmGh{Kj{vFAq#md)jbw_)zJOt7`>i#n*ogG|G41{P2V2C7;WzM>Ep{14OTK`;tMh ztTtuz5yG}*O$zPHvia+c*bkd|-=H>GB)S@?Hm*d=*VF3}-T>)h&*l?BEacJ(?menO&&4Tm1F73ir1xA1MjBA#aTNc6wGWP*I3) zDR7n?>dBdT2b$V5&|2i$eb=%7?I!c4X^HiXr^0Zm79R5LgxR4l0;6wu#6^q3>KkCH z?Vp1px>LXPYytLf;1NIA0((#gzM~JlPBWNM)5zZcniF0%)oEWakh`wrK2R;NSM2p& zZJ~9$rZ|%>jE4yg3#y7XPiE$Y1jb)wlPfG3<=@u?b8LK-KPIsHtC)3~5+9qNTfmRv znBMREopioBKNI$P$v}9+O1N`Z2Z@)o4TNw>h9Bp*?dKKU$BSP5nJwL}QzHAcUAeW5 zUX65X943G^3ZmZ)-%~Vn|A<&?%t-cRaoL5OVYVkb;rRq%cUKktdy2+(JdZ$iue}rV zf(~Z&H_7Tu3=Ms7aDLXxWg{?T%MeZq%sMrNgt~H!jB=RTZCVqB+Et!|jXC~8TE$%h zdeJ9ypEJ(D7WdUAC(`WpDybT)iM1z^y&fN2m1h$4L^#H$migbVxv>@MrlHH>{{V4Z B%j*CD literal 0 HcmV?d00001 diff --git a/plugins/cardgatepaysafecard/installer/cardgatepaysafecard.xml b/plugins/cardgatepaysafecard/installer/cardgatepaysafecard.xml new file mode 100755 index 0000000..d2857a8 --- /dev/null +++ b/plugins/cardgatepaysafecard/installer/cardgatepaysafecard.xml @@ -0,0 +1,94 @@ + + + Paysafecard + payment + 1.0.0 + cardgatepaysafecard + http://cardgate.com + Zahlungsmodul Paysafecard + cardgatepaysafecard.png + + cardgatepaysafecard + cardgatepaysafecard + + cardgatepaysafecard.html + + Paysafecard + + + + Paysafecard + + + + Paysafecard + + + + + + + + + page_registry.php:bottom + + 1 + 1 + + + class.checkout.php:_getPayment + $v) { + if ($k != 'paysafecard') { + unset($payment_data[$k]); + } + } + reset($payment_data); + } + ]]> + 1 + 1 + + + + class.checkout.php:_selectPayment_tpl_data + + 1 + 1 + + + + order_edit.php:display_data + + 0 + 1 + + + + + + + TEXT_PAYMENT_CARDGATE_PAYSAFECARD + store + + Paysafecard + + + Paysafecard + + + Paysafecard + + + + diff --git a/plugins/cardgatepaysafecard/installer/install.php b/plugins/cardgatepaysafecard/installer/install.php new file mode 100755 index 0000000..26ece13 --- /dev/null +++ b/plugins/cardgatepaysafecard/installer/install.php @@ -0,0 +1,37 @@ +getMajorVersion() > 4} +{capture name="paymenttypes"} +
    + {$payment_name} +
    + +
    +
    +{/capture} +{/if} + +{if $plugin->getMajorVersion() <= 4} +{capture name="paymenttypes"} + + {form type=radio name=selected_payment value=$payment_code} + + {$payment_name} + +{/capture} +{/if} + +{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} +{literal} + +{/literal} + +
    + +
    +
    +

    + + {$smarty.capture.paymenttypes} +
    +

    +
    +
    + +
    + +{elseif $plugin->getMajorVersion() > 4} +{$smarty.capture.paymenttypes} +{else} + + + + + + + + + + +
    {$payment_name}{$payment_price.formated}
    + + + + + + + + +
    + {$smarty.capture.paymenttypes} +   + +
    +
    +
    + +{/if} +{/if} \ No newline at end of file diff --git a/plugins/cardgatepaysafecash/classes/class.cardgatepaysafecash.php b/plugins/cardgatepaysafecash/classes/class.cardgatepaysafecash.php new file mode 100755 index 0000000..805f13d --- /dev/null +++ b/plugins/cardgatepaysafecash/classes/class.cardgatepaysafecash.php @@ -0,0 +1,59 @@ +order_data['order_data']['payment_code'] == 'paysafecash') { + /** @global ADODB_mysql $db */ + global $db; + + $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); + if (count($rs)) + { + $cg_data = array_pop($rs); + if (strlen($cg_data['RESPONSEDATA'])) + { + $blacklist = array('last_order_id'); + $info = json_decode($cg_data['RESPONSEDATA']); + foreach ($info as $k => $v) + { + if (in_array($k, $blacklist)) + continue; + $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); + } + + } + } + +// if($rs->RecordCount()>0) { +// print "xxx"; +// foreach ($rs as $v) +// print_r($v); +// } + +} + diff --git a/plugins/cardgatepaysafecash/images/cardgatepaysafecash.png b/plugins/cardgatepaysafecash/images/cardgatepaysafecash.png new file mode 100644 index 0000000000000000000000000000000000000000..95949af6cfce7d38c933d3f27d05d102a6ac8dbc GIT binary patch literal 2400 zcmY*bX*d*I8yTGkSLiMWXn>rB|BrO zG^y!8iRl$KmY&$GC?A2S<#5q zfd@HR<6kwhWL99q+ZyWw%6r5X_pksY8V>+)3G8(?Kt>jrML=Uwjs!;wb8T0DoZ>|{ z|4Z(QLAU@G8vxJ=(q>I@?u3hwAe^rsUOPw^`jer}n(x6dDC8%F;G+w5w6KO4_y@W} z)D+>0N>Du@1Om|sbo0=*MHu})&RXe0y$FN=Z5WJ1A}Nwo75xJ}Vai%sS}-LQn2L%5 zi=luI_9I*jQt-n|{u23*4#FMp8i)-bVEz3dd%71d`4b7cQ0Sh~pY|(H0@mZdPJZ~` zWw8o`?d`yn6_sFrv{^@W_E2rBK&(5|D1DZdVK?48>a!n9tQAiNg!N(W%>ad>b*IHhKieUEj6X?mjC|gtcil~IL?t**^ z5vk&%QfKc#Yi%aB&fqTNxZ}^;Rv1`gq-;bfHCQKPz9ajI48ft9TDfAJ*kF8zew%t> z>bM$cjBhe@d8&m}_*S0J{@HDh`%^UhTvu?|yfVEb;XNotQ&LVc(a}idlg{wyfI0ZV zg9ou0!|8BriZ2canq6&BS66@8*wj=#N{WX$)gYG_i`Rx5YZ&oYu365s_xt785TsHh4nyZtZ$X-IVLn zSf!F#=@JHZj#@@`H$2>4m2c|55e@qELqTd`7u-<+(*;ntO znR*;c@qClNndcwuZiw6UNYuqRSJl}Zj9{x;;9o(f-&XC_0>|k0wsw@RGYh}i^`m$$ zAL`{uIXd@Z$MC`y1>6?z2wQJ^(ix(uM$I}QH|~_BnpXz8TkjuSHfyr5os(%HFspan z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chs0=TfvR^OW8NslgTyJZ! zZNo-!8c{#7lgk^XaewOqHBE5Be`sQ@MXwhwZhRWe2~cI@IMCE1W9j;jX2uu3{2G)J z^F_C&4Wle7i~Hr3!s_=@$7>@>h{i5AG0wKDM?P$F!YR!)E0*L|y%+{OsnFR-+alTK zDspwH>|P6h|L(#1?*;K1;i-*o8biHIRlmo<0`JpE5J;OWnO@xb?y1=vDF7Q1y+uww zx?k2JB{P&NcKpmaZ!gW(2KAzmu?UT9@pkG1r- + + Paysafecash + payment + 1.0.0 + cardgatepaysafecash + http://cardgate.com + Zahlungsmodul Paysafecash + cardgatepaysafecash.png + + cardgatepaysafecash + cardgatepaysafecash + + cardgatepaysafecash.html + + Paysafecash + + + + Paysafecash + + + + Paysafecash + + + + + + + + + page_registry.php:bottom + + 1 + 1 + + + class.checkout.php:_getPayment + $v) { + if ($k != 'paysafecash') { + unset($payment_data[$k]); + } + } + reset($payment_data); + } + ]]> + 1 + 1 + + + + class.checkout.php:_selectPayment_tpl_data + + 1 + 1 + + + + order_edit.php:display_data + + 0 + 1 + + + + + + + TEXT_PAYMENT_CARDGATE_PAYSAFECASH + store + + Paysafecash + + + Paysafecash + + + Paysafecash + + + + diff --git a/plugins/cardgatepaysafecash/installer/install.php b/plugins/cardgatepaysafecash/installer/install.php new file mode 100755 index 0000000..26ece13 --- /dev/null +++ b/plugins/cardgatepaysafecash/installer/install.php @@ -0,0 +1,37 @@ +getMajorVersion() > 4} +{capture name="paymenttypes"} +
    + {$payment_name} +
    + +
    +
    +{/capture} +{/if} + +{if $plugin->getMajorVersion() <= 4} +{capture name="paymenttypes"} + + {form type=radio name=selected_payment value=$payment_code} + + {$payment_name} + +{/capture} +{/if} + +{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} +{literal} + +{/literal} + +
    + +
    +
    +

    + + {$smarty.capture.paymenttypes} +
    +

    +
    +
    + +
    + +{elseif $plugin->getMajorVersion() > 4} +{$smarty.capture.paymenttypes} +{else} + + + + + + + + + + +
    {$payment_name}{$payment_price.formated}
    + + + + + + + + +
    + {$smarty.capture.paymenttypes} +   + +
    + +
    +
    + +{/if} +{/if} \ No newline at end of file diff --git a/plugins/cardgateprzelewy24/classes/class.cardgateprzelewy24.php b/plugins/cardgateprzelewy24/classes/class.cardgateprzelewy24.php new file mode 100755 index 0000000..7f7ae4a --- /dev/null +++ b/plugins/cardgateprzelewy24/classes/class.cardgateprzelewy24.php @@ -0,0 +1,59 @@ +order_data['order_data']['payment_code'] == 'przelewy24') { + /** @global ADODB_mysql $db */ + global $db; + + $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); + if (count($rs)) + { + $cg_data = array_pop($rs); + if (strlen($cg_data['RESPONSEDATA'])) + { + $blacklist = array('last_order_id'); + $info = json_decode($cg_data['RESPONSEDATA']); + foreach ($info as $k => $v) + { + if (in_array($k, $blacklist)) + continue; + $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); + } + + } + } + +// if($rs->RecordCount()>0) { +// print "xxx"; +// foreach ($rs as $v) +// print_r($v); +// } + +} + diff --git a/plugins/cardgateprzelewy24/images/cardgateprzelewy24.png b/plugins/cardgateprzelewy24/images/cardgateprzelewy24.png new file mode 100644 index 0000000000000000000000000000000000000000..4abb6de87981ceddb6a85f14213a2cde1c9878b8 GIT binary patch literal 4102 zcmY*ccR1Wj+y3dIo(-!dVyzr4>}tVo?COply+!XEZNp;K5G`5|L?>EwqD9*XRbH4ZczPYZMXXc)J?)!P>kGZaiH_-o!nSqA^003q!O*NzQXmH;7 z=xNVKET1;}d7ySv)>8(6#uUb52b%LW#7Wag4*-G%0U#n80DhfA5vu^;F985+_5gs) z1^`ZMey5?r`NjpTrllVMFtYvb6hLl17XVOLVoWS>7J9l!Cm%1EgR_sL3k>gtJ!b=e z0v>rj^>V>EK=59k-hN0t3i>w#c|QLQ!=aGBDL4-l)I!eyqUz)80=W*8fk{Bo3=jxJ z!PnUp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7tW#<@XIff^UiHo1q^?ic+Ldz8V zK-zBM2AWr&g)FE7pJ;)sK}+JXkcnh)l;bTasDO!kGlgXWi^#}M>??~wO~SW`C>h^D zG{foYO zOD_dMjL-aY?Kf`0WL9sj#J zL6@8oTV6bz=1zJ=>TN&SV`aO0SCMr(UN!RvVT`6F#)BQ1{3Pnz(~?6?r6c&r!aTEcbTjMk-?o;zzFNJC{k{JH!fc4# literal 0 HcmV?d00001 diff --git a/plugins/cardgateprzelewy24/installer/cardgateprzelewy24.xml b/plugins/cardgateprzelewy24/installer/cardgateprzelewy24.xml new file mode 100755 index 0000000..d51617b --- /dev/null +++ b/plugins/cardgateprzelewy24/installer/cardgateprzelewy24.xml @@ -0,0 +1,94 @@ + + + Przelewy24 + payment + 1.0.0 + cardgateprzelewy24 + http://cardgate.com + Zahlungsmodul Przelewy24 + cardgateprzelewy24.png + + cardgateprzelewy24 + cardgateprzelewy24 + + cardgateprzelewy24.html + + Przelewy24 + + + + Przelewy24 + + + + Przelewy24 + + + + + + + + + page_registry.php:bottom + + 1 + 1 + + + class.checkout.php:_getPayment + $v) { + if ($k != 'przelewy24') { + unset($payment_data[$k]); + } + } + reset($payment_data); + } + ]]> + 1 + 1 + + + + class.checkout.php:_selectPayment_tpl_data + + 1 + 1 + + + + order_edit.php:display_data + + 0 + 1 + + + + + + + TEXT_PAYMENT_CARDGATE_PRZELEWY24 + store + + Przelewy24 + + + Przelewy24 + + + Przelewy24 + + + + diff --git a/plugins/cardgateprzelewy24/installer/install.php b/plugins/cardgateprzelewy24/installer/install.php new file mode 100755 index 0000000..26ece13 --- /dev/null +++ b/plugins/cardgateprzelewy24/installer/install.php @@ -0,0 +1,37 @@ +getMajorVersion() > 4} +{capture name="paymenttypes"} +
    + {$payment_name} +
    + +
    +
    +{/capture} +{/if} + +{if $plugin->getMajorVersion() <= 4} +{capture name="paymenttypes"} + + {form type=radio name=selected_payment value=$payment_code} + + {$payment_name} + +{/capture} +{/if} + +{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} +{literal} + +{/literal} + +
    + +
    +
    +

    + + {$smarty.capture.paymenttypes} +
    +

    +
    +
    + +
    + +{elseif $plugin->getMajorVersion() > 4} +{$smarty.capture.paymenttypes} +{else} + + + + + + + + + + +
    {$payment_name}{$payment_price.formated}
    + + + + + + + + +
    + {$smarty.capture.paymenttypes} +   + +
    + +
    +
    + +{/if} +{/if} \ No newline at end of file diff --git a/plugins/cardgatesofortbanking/classes/class.cardgatesofortbanking.php b/plugins/cardgatesofortbanking/classes/class.cardgatesofortbanking.php new file mode 100755 index 0000000..8521e2e --- /dev/null +++ b/plugins/cardgatesofortbanking/classes/class.cardgatesofortbanking.php @@ -0,0 +1,59 @@ +order_data['order_data']['payment_code'] == 'sofortbanking') { + /** @global ADODB_mysql $db */ + global $db; + + $rs = $db->GetAssoc("SELECT * FROM cardgate_transaction WHERE orderid=?", array((int)$this->order_data['order_data']['orders_id'])); + if (count($rs)) + { + $cg_data = array_pop($rs); + if (strlen($cg_data['RESPONSEDATA'])) + { + $blacklist = array('last_order_id'); + $info = json_decode($cg_data['RESPONSEDATA']); + foreach ($info as $k => $v) + { + if (in_array($k, $blacklist)) + continue; + $tpl_data['order_data']['order_info_options'][] = array('text' => $k, 'value' => $v); + } + + } + } + +// if($rs->RecordCount()>0) { +// print "xxx"; +// foreach ($rs as $v) +// print_r($v); +// } + +} + diff --git a/plugins/cardgatesofortbanking/images/cardgatesofortbanking.png b/plugins/cardgatesofortbanking/images/cardgatesofortbanking.png new file mode 100755 index 0000000000000000000000000000000000000000..8b5c6be27117f3810b72d464bd56d38dc0093cc1 GIT binary patch literal 2876 zcmV-C3&Zq@P)o8X`uNUCsdl0t>{nh_w_g8*^#2qm_0txfCIjn08iLV-f6`Zu4 z6dQ~Yci2f$cG)FE@WK*`iYUQl&mQ)2_MG4Q^pA56dvO;qW=*EwnVs3+@Ao|Kb9>+C z@*Xh;nwy&|O3KR@%5#&PmI?drjGxxMfY@cCcr3mGWb}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r_<@GqN1XSJv}ummzQ5PFfec`42#44 z`z6-SRZL--6l4~Yil2sG%WEhS+e90 zCHJuR{6u1w8TWZ_Jul%tL1EYi@43+l+5ZtPKJymH2&Nnsb^1l$zO&Y?gZ^myl%nLbbBD z_v{1Sdk@6&!@(;91L-dS)y}zDW;R3OQx5Z-Ra-+@HtF%dVeSSNB5B@G+6N{`#eNNcKs|S|Ru>=mlWEndNR= zxY{L{sF;DQlrX=$mE zims5dQ@s?ES3iVrWP;$eTxHk!Z$N-Wixyq#oVyx=8P3_;lAg+B+*IenniqtOra_4OSpE33F6oemEa7js!AlQ|j$#aF)d)`|T!H8u5_ zOlGfh#n%LZu928##;m=2pSv9{a5M88#P8BiPQMo7@p!bXEcPGd27*fPU)j5N@9y_g ahyMdWcFX*YW1c|(0000 + + SofortBanking + payment + 1.0.0 + cardgatesofortbanking + http://cardgate.com + Zahlungsmodul SofortBanking + cardgatesofortbanking.png + + cardgatesofortbanking + cardgatesofortbanking + + cardgatesofortbanking.html + + SOFORT Überweisung + + + + SofortBanking + + + + SofortBanking + + + + + + + + + page_registry.php:bottom + + 1 + 1 + + + class.checkout.php:_getPayment + $v) { + if ($k != 'sofortbanking') { + unset($payment_data[$k]); + } + } + reset($payment_data); + } + ]]> + 1 + 1 + + + + class.checkout.php:_selectPayment_tpl_data + + 1 + 1 + + + + order_edit.php:display_data + + 0 + 1 + + + + + + + TEXT_PAYMENT_CARDGATE_SOFORTBANKING + store + + SOFORT Überweisung (PIN/TAN) + + + SOFORT Banking (PIN/TAN) + + + SOFORT Banking (PIN/TAN) + + + + diff --git a/plugins/cardgatesofortbanking/installer/install.php b/plugins/cardgatesofortbanking/installer/install.php new file mode 100755 index 0000000..26ece13 --- /dev/null +++ b/plugins/cardgatesofortbanking/installer/install.php @@ -0,0 +1,37 @@ +getMajorVersion() > 4} +{capture name="paymenttypes"} +
    + {$payment_name} +
    + +
    +
    +{/capture} +{/if} + +{if $plugin->getMajorVersion() <= 4} +{capture name="paymenttypes"} + + {form type=radio name=selected_payment value=$payment_code} + + {$payment_name} + +{/capture} +{/if} + +{if $plugin->getMajorVersion() >= 4 && $plugin->getMinorVersion() >= 1} +{literal} + +{/literal} + +
    + +
    +
    +

    + + {$smarty.capture.paymenttypes} +
    +

    +
    +
    + +
    + +{elseif $plugin->getMajorVersion() > 4} +{$smarty.capture.paymenttypes} +{else} + + + + + + + + + + +
    {$payment_name}{$payment_price.formated}
    + + + + + + + + +
    + {$smarty.capture.paymenttypes} +   + +
    + +
    +
    + +{/if} +{/if} \ No newline at end of file diff --git a/templates/xt_mobile/plugins/cardgateafterpay/cardgateafterpay.html b/templates/xt_mobile/plugins/cardgateafterpay/cardgateafterpay.html new file mode 100644 index 0000000..2122716 --- /dev/null +++ b/templates/xt_mobile/plugins/cardgateafterpay/cardgateafterpay.html @@ -0,0 +1,39 @@ + +
  • + {$payment_name} +
  • + +
  • +
    + +
    + +
    +

    {$payment_desc}

    +

    +
  • \ No newline at end of file diff --git a/templates/xt_mobile/plugins/cardgatebancontact/cardgatebancontact.html b/templates/xt_mobile/plugins/cardgatebancontact/cardgatebancontact.html new file mode 100644 index 0000000..2122716 --- /dev/null +++ b/templates/xt_mobile/plugins/cardgatebancontact/cardgatebancontact.html @@ -0,0 +1,39 @@ + +
  • + {$payment_name} +
  • + +
  • +
    + +
    + +
    +

    {$payment_desc}

    +

    +
  • \ No newline at end of file diff --git a/templates/xt_mobile/plugins/cardgatebanktransfer/cardgatebanktransfer.html b/templates/xt_mobile/plugins/cardgatebanktransfer/cardgatebanktransfer.html new file mode 100644 index 0000000..2122716 --- /dev/null +++ b/templates/xt_mobile/plugins/cardgatebanktransfer/cardgatebanktransfer.html @@ -0,0 +1,39 @@ + +
  • + {$payment_name} +
  • + +
  • +
    + +
    + +
    +

    {$payment_desc}

    +

    +
  • \ No newline at end of file diff --git a/templates/xt_mobile/plugins/cardgatebitcoin/cardgatebitcoin.html b/templates/xt_mobile/plugins/cardgatebitcoin/cardgatebitcoin.html new file mode 100644 index 0000000..2122716 --- /dev/null +++ b/templates/xt_mobile/plugins/cardgatebitcoin/cardgatebitcoin.html @@ -0,0 +1,39 @@ + +
  • + {$payment_name} +
  • + +
  • +
    + +
    + +
    +

    {$payment_desc}

    +

    +
  • \ No newline at end of file diff --git a/templates/xt_mobile/plugins/cardgatecreditcard/cardgatecreditcard.html b/templates/xt_mobile/plugins/cardgatecreditcard/cardgatecreditcard.html new file mode 100644 index 0000000..2122716 --- /dev/null +++ b/templates/xt_mobile/plugins/cardgatecreditcard/cardgatecreditcard.html @@ -0,0 +1,39 @@ + +
  • + {$payment_name} +
  • + +
  • +
    + +
    + +
    +

    {$payment_desc}

    +

    +
  • \ No newline at end of file diff --git a/templates/xt_mobile/plugins/cardgatedirectdebit/cardgatedirectdebit.html b/templates/xt_mobile/plugins/cardgatedirectdebit/cardgatedirectdebit.html new file mode 100644 index 0000000..2122716 --- /dev/null +++ b/templates/xt_mobile/plugins/cardgatedirectdebit/cardgatedirectdebit.html @@ -0,0 +1,39 @@ + +
  • + {$payment_name} +
  • + +
  • +
    + +
    + +
    +

    {$payment_desc}

    +

    +
  • \ No newline at end of file diff --git a/templates/xt_mobile/plugins/cardgategiropay/cardgategiropay.html b/templates/xt_mobile/plugins/cardgategiropay/cardgategiropay.html new file mode 100644 index 0000000..b5e0e90 --- /dev/null +++ b/templates/xt_mobile/plugins/cardgategiropay/cardgategiropay.html @@ -0,0 +1,39 @@ + +
  • + {$payment_name} +
  • + +
  • +
    + +
    + +
    +

    {$payment_desc}

    +

    +
  • diff --git a/templates/xt_mobile/plugins/cardgateideal/cardgateideal.html b/templates/xt_mobile/plugins/cardgateideal/cardgateideal.html new file mode 100644 index 0000000..7a1f121 --- /dev/null +++ b/templates/xt_mobile/plugins/cardgateideal/cardgateideal.html @@ -0,0 +1,54 @@ + +
  • + {$payment_name} +
  • + +
  • +
    + + +
      +
    • + +
    • + +
    +
    + +
    +

    {$payment_desc}

    +

    +
  • \ No newline at end of file diff --git a/templates/xt_mobile/plugins/cardgateklarna/cardgateklarna.html b/templates/xt_mobile/plugins/cardgateklarna/cardgateklarna.html new file mode 100644 index 0000000..2122716 --- /dev/null +++ b/templates/xt_mobile/plugins/cardgateklarna/cardgateklarna.html @@ -0,0 +1,39 @@ + +
  • + {$payment_name} +
  • + +
  • +
    + +
    + +
    +

    {$payment_desc}

    +

    +
  • \ No newline at end of file diff --git a/templates/xt_mobile/plugins/cardgatepaypal/cardgatepaypal.html b/templates/xt_mobile/plugins/cardgatepaypal/cardgatepaypal.html new file mode 100644 index 0000000..2122716 --- /dev/null +++ b/templates/xt_mobile/plugins/cardgatepaypal/cardgatepaypal.html @@ -0,0 +1,39 @@ + +
  • + {$payment_name} +
  • + +
  • +
    + +
    + +
    +

    {$payment_desc}

    +

    +
  • \ No newline at end of file diff --git a/templates/xt_mobile/plugins/cardgatepaysafecard/cardgatepaysafecard.html b/templates/xt_mobile/plugins/cardgatepaysafecard/cardgatepaysafecard.html new file mode 100644 index 0000000..2122716 --- /dev/null +++ b/templates/xt_mobile/plugins/cardgatepaysafecard/cardgatepaysafecard.html @@ -0,0 +1,39 @@ + +
  • + {$payment_name} +
  • + +
  • +
    + +
    + +
    +

    {$payment_desc}

    +

    +
  • \ No newline at end of file diff --git a/templates/xt_mobile/plugins/cardgateprzelewy24/cardgateprzelewy24.html b/templates/xt_mobile/plugins/cardgateprzelewy24/cardgateprzelewy24.html new file mode 100644 index 0000000..2122716 --- /dev/null +++ b/templates/xt_mobile/plugins/cardgateprzelewy24/cardgateprzelewy24.html @@ -0,0 +1,39 @@ + +
  • + {$payment_name} +
  • + +
  • +
    + +
    + +
    +

    {$payment_desc}

    +

    +
  • \ No newline at end of file diff --git a/templates/xt_mobile/plugins/cardgatesofortbanking/cardgatesofortbanking.html b/templates/xt_mobile/plugins/cardgatesofortbanking/cardgatesofortbanking.html new file mode 100644 index 0000000..2122716 --- /dev/null +++ b/templates/xt_mobile/plugins/cardgatesofortbanking/cardgatesofortbanking.html @@ -0,0 +1,39 @@ + +
  • + {$payment_name} +
  • + +
  • +
    + +
    + +
    +

    {$payment_desc}

    +

    +
  • \ No newline at end of file From 20204e9647768ce041af5b29ce0930f83450729f Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 26 Jul 2019 13:12:25 +0200 Subject: [PATCH 6/9] Changed .gitignore --- .gitignore | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/.gitignore b/.gitignore index e69de29..d4caf9a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,84 @@ +* +!.gitignore +!cardgate/ +!plugins/ +plugins/* +!plugins/cardgate +!plugins/cardgateafterpay +!plugins/cardgatebancontact +!plugins/cardgatebanktransfer +!plugins/cardgatebillink +!plugins/cardgatebitcoin +!plugins/cardgatecreditcard +!plugins/cardgatedirectdebit +!plugins/cardgategiftcard +!plugins/cardgategiropay +!plugins/cardgateideal +!plugins/cardgateidealqr +!plugins/cardgateklarna +!plugins/cardgatepaypal +!plugins/cardgatepaysafecard +!plugins/cardgatepaysafecash +!plugins/cardgateprzlewy24 +!plugins/cardgatesofortbanking +!templates +templates/* +!templates/xt_default +templates/xt_default/* +!templates/xt_default/xtCore +templates/xt_default/xtCore/* +!templates/xt_default/xtCore/pages +templates/xt_default/xtCore/pages/* +!templates/xt_default/xtCore/pages/cardgate_checkout.html +!templates/xt_default/xtCore/pages/checkout +templates/xt_default/xtCore/pages/checkout/* +!templates/xt_default/xtCore/pages/checkout/subpage_cardgate_cancel.html +!templates/xt_default/xtCore/pages/checkout/subpage_cardgate_failure.html +!templates/xt_default/xtCore/pages/checkout/subpage_cardgate_pending.html +!templates/xt_default/xtCore/pages/checkout/subpage_cardgate_success.html +!templates/xt_grid +templates/xt_grid/* +!templates/xt_grid/xtCore +templates/xt_grid/xtCore/* +!templates/xt_grid/xtCore/pages +templates/xt_grid/xtCore/pages/* +!templates/xt_grid/xtCore/pages/cardgate_checkout.html +!templates/xt_grid/xtCore/pages/checkout +templates/xt_grid/xtCore/pages/checkout/* +!templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_cancel.html +!templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_failure.html +!templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_pending.html +!templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_success.html +!templates/xt_mobile +templates/xt_mobile/* +!templates/xt_mobile/plugins +templates/xt_mobile/plugins/* +!templates/xt_mobile/plugins/cardgateafterpay +!templates/xt_mobile/plugins/cardgatebancontact +!templates/xt_mobile/plugins/cardgatebanktransfer +!templates/xt_mobile/plugins/cardgatebitcoin +!templates/xt_mobile/plugins/cardgatecreditcard +!templates/xt_mobile/plugins/cardgatedirectdebit +!templates/xt_mobile/plugins/cardgategiropay +!templates/xt_mobile/plugins/cardgateideal +!templates/xt_mobile/plugins/cardgateklarna +!templates/xt_mobile/plugins/cardgatepaypal +!templates/xt_mobile/plugins/cardgatepaysafecard +!templates/xt_mobile/plugins/cardgateprzelewy24 +!templates/xt_mobile/plugins/cardgatesofortbanking +!templates/xt_responsive +templates/xt_responsive/* +!templates/xt_responsive/xtCore +templates/xt_responsive/xtCore/* +!templates/xt_responsive/xtCore/pages +templates/xt_responsive/xtCore/pages/* +!templates/xt_responsive/xtCore/pages/cardgate_checkout.html +!templates/xt_responsive/xtCore/pages/checkout +templates/xt_responsive/xtCore/pages/checkout/* +!templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_cancel.html +!templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_failure.html +!templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_pending.html +!templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_success.html +!README.md +!README_DE.md +!README_NL.md \ No newline at end of file From 65b006be0a539f5d4eaedb34ae6d8e3af46b2948 Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 26 Jul 2019 13:26:16 +0200 Subject: [PATCH 7/9] Edited ReadMe files. --- README.md | 2 +- README_DE.md | 2 +- README_NL.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4d6bc39..8bc8916 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Please visit [My CardGate](https://my.cardgate.com/) and retrieve your credentia 1. Download and unzip the most recent [source code](https://github.com/cardgate/xtcommerce/releases) file on your desktop. -2. Upload the contents of the **xtcommerce** folder to the **root** of your website. +2. Upload the contents of the **zip folder** to the **root** of your website. ## Configuration diff --git a/README_DE.md b/README_DE.md index d389508..6091dd5 100644 --- a/README_DE.md +++ b/README_DE.md @@ -15,7 +15,7 @@ Gehen zu [My CardGate](https://my.cardgate.com/) und fragen Sie Ihre Zugangsdate 1. Downloaden und entpacken Sie den aktuellsten [Source Code](https://github.com/cardgate/xtcommerce/releases/) auf Ihrem Desktop. -2. Laden Sie die **Inhalte** des **xtcommerce** Ordners in das Root-Verzeichnis Ihrer Webseite. +2. Laden Sie die **Inhalt** der **Zip-Datei** in den **Root-Ordner** Ihres Webshops. ## Configuration diff --git a/README_NL.md b/README_NL.md index cad41fd..eea1375 100644 --- a/README_NL.md +++ b/README_NL.md @@ -16,7 +16,7 @@ of neem contact op met je accountmanager. 1. Download en unzip de meest recente [source code](https://github.com/cardgate/xtcommerce/releases/) op je bureaublad. -2. Plaats de **inhoud** van de **xtcommerce** map in de root van je website. +2. Plaats de **inhoud** van het **zip bestand** in de **root** van je website. ## Configuratie From c0ae3897b018c44c9a049c67423bd6f5579a403f Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 26 Jul 2019 14:41:45 +0200 Subject: [PATCH 8/9] Check for valid ideal issuers. --- cardgate/classes/cardgate.php | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/cardgate/classes/cardgate.php b/cardgate/classes/cardgate.php index ff72617..21b05e3 100755 --- a/cardgate/classes/cardgate.php +++ b/cardgate/classes/cardgate.php @@ -427,13 +427,20 @@ function refreshIssuers(){ 'name' => htmlspecialchars ( $oException_->getMessage () ) ]; } - - $sIssuers = serialize($aIssuers); - $sMode = ($bIsTest ? 'TEST':'LIVE'); - $iRefreshTime = $sMode . (24 * 60 * 60 + time()); - $db->execute("UPDATE ". TABLE_CONFIGURATION_PAYMENT. " SET config_value='" .$sIssuers ."' WHERE config_key = 'CARDGATEIDEAL_ISSUERS'" ); - $db->execute("UPDATE ". TABLE_CONFIGURATION_PAYMENT. " SET config_value='" .$iRefreshTime ."' WHERE config_key = 'CARDGATEIDEAL_ISSUER_REFRESH'" ); + $aBanks = array(); + foreach($aIssuers as $key =>$aIssuer){ + $aBanks[$aIssuer['id']] = $aIssuer['name']; + } + + if (array_key_exists('INGBNL2A',$aBanks)) { + $sIssuers = serialize( $aIssuers ); + $sMode = ( $bIsTest ? 'TEST' : 'LIVE' ); + $iRefreshTime = $sMode . ( 24 * 60 * 60 + time() ); + + $db->execute( "UPDATE " . TABLE_CONFIGURATION_PAYMENT . " SET config_value='" . $sIssuers . "' WHERE config_key = 'CARDGATEIDEAL_ISSUERS'" ); + $db->execute( "UPDATE " . TABLE_CONFIGURATION_PAYMENT . " SET config_value='" . $iRefreshTime . "' WHERE config_key = 'CARDGATEIDEAL_ISSUER_REFRESH'" ); + } } function fetchIssuers(){ From 7fd1b886f33f34b95db73abf5efa28ec646dd699 Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 26 Jul 2019 15:20:52 +0200 Subject: [PATCH 9/9] Edited ReadMe file. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8bc8916..0d8cd09 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Please visit [My CardGate](https://my.cardgate.com/) and retrieve your credentia 1. Download and unzip the most recent [source code](https://github.com/cardgate/xtcommerce/releases) file on your desktop. -2. Upload the contents of the **zip folder** to the **root** of your website. +2. Upload the contents of the **zip file** to the **root** of your website. ## Configuration