当前位置: 首页>>代码示例>>PHP>>正文


PHP PaymentModule类代码示例

本文整理汇总了PHP中PaymentModule的典型用法代码示例。如果您正苦于以下问题:PHP PaymentModule类的具体用法?PHP PaymentModule怎么用?PHP PaymentModule使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了PaymentModule类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: after_processing_html

 function after_processing_html($orderID)
 {
     $res = '';
     $order = ordGetOrder($orderID);
     $order_amount = roundf(PaymentModule::_convertCurrency($order['order_amount'], 0, $this->_getSettingValue('CONF_YANDEXCPP_TRANSCURRENCY')));
     $post_1 = array('TargetCurrency' => $this->_getSettingValue('CONF_YANDEXCPP_TARGETCURRENCY'), 'currencyID' => $this->_getSettingValue('CONF_YANDEXCPP_TARGETCURRENCY'), 'wbp_InactivityPeriod' => '2', 'wbp_ShopAddress' => 'wn1.paycash.ru:8828', 'wbp_ShopEncryptionKey' => 'hAAAEicBAHV6wr3pySqE3thhKHbjvyf4XCMxKc2nSj2u8K46i0dMIP8Wd2KJHkZuhGMWZGmYAp6wsb3XqZW5HKVpamQt+t9rwGNsSaVfeZb9DM5aodCpIMHhLA8gGPDIiG4+Q15X/7Zm3MJNGavZ8+eWAnlvS1M7c6eeLTNJ0CKIYd1yHXfU', 'wbp_ShopKeyID' => '4060341894', 'wbp_Version' => '1.0', 'wbp_CorrespondentID' => '8994748E663DE6B3C68D2D9931B079C74789D4B4', 'BankID' => $this->_getSettingValue('CONF_YANDEXCPP_BANKID'), 'TargetBankID' => $this->_getSettingValue('CONF_YANDEXCPP_TARGETBANKID'), 'PaymentTypeCD' => 'PC', 'ShopID' => $this->_getSettingValue('CONF_YANDEXCPP_SHOPID'), 'CustomerNumber' => $orderID, 'Sum' => $order_amount, 'CustName' => $order['shipping_firstname'] . ' ' . $order['shipping_lastname'], 'CustAddr' => '', 'CustEMail' => $order['customer_email'], 'OrderDetails' => '');
     $order_content = ordGetOrderContent($orderID);
     foreach ($order_content as $item) {
         $post_1['OrderDetails'] .= $item['name'] . "\r\n";
     }
     $implAddress = array('shipping_country', 'shipping_state', 'shipping_city', 'shipping_address');
     foreach ($implAddress as $k) {
         if ($order[$k]) {
             $post_1['CustAddr'] .= ', ' . $order[$k];
         }
     }
     $post_1['CustAddr'] = substr($post_1['CustAddr'], 1);
     $hidden_fields_html = '';
     reset($post_1);
     while (list($k, $v) = each($post_1)) {
         $hidden_fields_html .= '<input type="hidden" name="' . $k . '" value="' . $v . '" />' . "\n";
     }
     $processing_url = $this->_getSettingValue('CONF_YANDEXCPP_MODE') == 'test' ? 'http://demomoney.yandex.ru/select-wallet.xml' : 'http://money.yandex.ru/select-wallet.xml';
     $res = '
                             <form method="post" action="' . xHtmlSpecialChars($processing_url) . '" style="text-align:center;" id="payform">
                                     ' . $hidden_fields_html . '
                             </form><table cellspacing="0" cellpadding="0" class="fsttab"><tr><td><table cellspacing="0" cellpadding="0" class="sectb"><tr><td><a href="#" onclick="document.getElementById(\'payform\').submit(); return false">' . STRING_PAY_NOW . '</a></td></tr></table></td></tr></table>';
     return $res;
 }
开发者ID:gblok,项目名称:rsc,代码行数:29,代码来源:class.yandexcpp.php

示例2: uninstall

 /**
  * Uninstall module
  *
  * @see PaymentModule::uninstall()
  */
 public function uninstall()
 {
     if (!Configuration::deleteByName('SOFORTBANKING_USER_ID') || !Configuration::deleteByName('SOFORTBANKING_PROJECT_ID') || !Configuration::deleteByName('SOFORTBANKING_PROJECT_PW') || !Configuration::deleteByName('SOFORTBANKING_NOTIFY_PW') || !Configuration::deleteByName('SOFORTBANKING_BLOCK_LOGO') || !Configuration::deleteByName('SOFORTBANKING_OS_ERROR') || !Configuration::deleteByName('SOFORTBANKING_OS_ACCEPTED') || !Configuration::deleteByName('SOFORTBANKING_CPROTECT') || !Configuration::deleteByName('SOFORTBANKING_OS_ERROR_IGNORE') || !Configuration::deleteByName('SOFORTBANKING_OS_ACCEPTED_IGNORE') || !Configuration::deleteByName('SOFORTBANKING_REDIRECT') || !parent::uninstall()) {
         return false;
     }
     return true;
 }
开发者ID:pomdev,项目名称:modules-1.6.0.9,代码行数:12,代码来源:sofortbanking.php

示例3: after_processing_html

 function after_processing_html($orderID)
 {
     $res = '';
     $order = ordGetOrder($orderID);
     $order_amount = roundf(PaymentModule::_convertCurrency($order['order_amount'], 0, $this->_getSettingValue('CONF_CHRONOPAY_CURCODE')));
     $currency = currGetCurrencyByID($this->_getSettingValue('CONF_CHRONOPAY_CURCODE'));
     $zone_iso2 = $order['billing_state'];
     $countries = cnGetCountries(array('offset' => 0, 'CountRowOnPage' => 1000000), $count_row);
     foreach ($countries as $country) {
         if ($country['country_name'] == $order['billing_country']) {
             $country_iso3 = $country['country_iso_3'];
             $zones = znGetZones($country['countryID']);
             foreach ($zones as $zone) {
                 if ($zone['zone_name'] == $zone_iso2) {
                     $zone_iso2 = $zone['zone_code'];
                     break;
                 }
             }
             break;
         }
     }
     $post_1 = array('product_id' => $this->_getSettingValue('CONF_CHRONOPAY_PRODUCT_ID'), 'product_name' => CONF_SHOP_NAME, 'product_price' => $order_amount, 'product_price_currency' => $currency['currency_iso_3'], 'f_name' => $order['billing_firstname'], 's_name' => $order['billing_lastname'], 'street' => $order['billing_address'], 'city' => $order['billing_city'], 'state' => $zone_iso2, 'country' => $country_iso3, 'email' => $order['customer_email'], 'cb_url' => getTransactionResultURL('success'), 'cb_type' => 'P', 'decline_url' => getTransactionResultURL('failure'));
     $hidden_fields_html = '';
     reset($post_1);
     while (list($k, $v) = each($post_1)) {
         $hidden_fields_html .= '<input type="hidden" name="' . $k . '" value="' . $v . '" />' . "\n";
     }
     $res = '
                             <form method="post" action="' . xHtmlSpecialChars($this->processing_url) . '" style="text-align:center;">
                                     ' . $hidden_fields_html . '
                                     <input type="submit" value="' . CHRONOPAY_TXT_SUBMIT . '" />
                             </form>
                             ';
     return $res;
 }
开发者ID:gblok,项目名称:rsc,代码行数:35,代码来源:class.chronopay.php

示例4: uninstall

 public function uninstall()
 {
     if (!Configuration::deleteByName('WEIXIN_APPID') || !Configuration::deleteByName('WEIXIN_MCH_ID') || !Configuration::deleteByName('WEIXIN_KEY') || !Configuration::deleteByName('WEIXIN_NOTIFY_URL') || !parent::uninstall()) {
         return false;
     }
     return true;
 }
开发者ID:yiuked,项目名称:tmcart,代码行数:7,代码来源:weixinpay.php

示例5: uninstall

 public function uninstall()
 {
     if (!Configuration::deleteByName('CHEQUE_NAME') || !Configuration::deleteByName('CHEQUE_ADDRESS') || !parent::uninstall()) {
         return false;
     }
     return true;
 }
开发者ID:jicheng17,项目名称:vipinsg,代码行数:7,代码来源:cheque.php

示例6: uninstall

 public function uninstall()
 {
     if (!Configuration::deleteByName('NIMBLEPAYMENT_CLIENT_ID') || !Configuration::deleteByName('NIMBLEPAYMENT_CLIENT_SECRET') || !Configuration::deleteByName('NIMBLEPAYMENT_URLTPV') || !Configuration::deleteByName('NIMBLEPAYMENT_NAME') || !Configuration::deleteByName('NIMBLEPAYMENT_DESCRIPTION') || !parent::uninstall()) {
         return false;
     }
     return true;
 }
开发者ID:joseic,项目名称:nimblepayment,代码行数:7,代码来源:nimblepayment.php

示例7: uninstall

 /**
  * Runs the BluePay uninstallation process
  */
 public function uninstall()
 {
     include_once _PS_MODULE_DIR_ . '/bluepay/bluepay_uninstall.php';
     $bluepay_uninstall = new BluePayUninstall();
     $bluepay_uninstall->deleteConfiguration();
     return parent::uninstall();
 }
开发者ID:juniorhq88,项目名称:PrestaShop-modules,代码行数:10,代码来源:bluepay.php

示例8: uninstall

 /**
  * Perform uninstalation of PagSeguro module
  * 
  * @return boolean
  */
 public function uninstall()
 {
     if (!Configuration::deleteByName('PAGSEGURO_EMAIL') || !Configuration::deleteByName('PAGSEGURO_TOKEN') || !Configuration::deleteByName('PAGSEGURO_URL_REDIRECT') || !Configuration::deleteByName('PAGSEGURO_NOTIFICATION_URL') || !Configuration::deleteByName('PAGSEGURO_CHARSET') || !Configuration::deleteByName('PAGSEGURO_LOG_ACTIVE') || !Configuration::deleteByName('PAGSEGURO_LOG_FILELOCATION') || !Configuration::deleteByName('PS_OS_PAGSEGURO') || !parent::uninstall()) {
         return false;
     }
     return true;
 }
开发者ID:juniorhq88,项目名称:PrestaShop-modules,代码行数:12,代码来源:pagseguro.php

示例9: uninstall

 public function uninstall()
 {
     if (!Configuration::deleteByName('PF_API_USER') || !Configuration::deleteByName('PF_API_BRANCH') || !Configuration::deleteByName('PF_ENVIRONMENT') || !Configuration::deleteByName('PF_NO_MAIL') || !Configuration::deleteByName('PF_EXCHANGE') || !Configuration::deleteByName('PF_INSTALLMENTS') || !parent::uninstall()) {
         return false;
     }
     return true;
 }
开发者ID:javolero,项目名称:PrestaShopPlugin,代码行数:7,代码来源:pagofacil.php

示例10: uninstall

 public function uninstall()
 {
     if (!parent::uninstall() || !Configuration::deleteByName('PAYU_LATAM_MERCHANT_ID') || !Configuration::deleteByName('PAYU_LATAM_ACCOUNT_ID') || !Configuration::deleteByName('PAYU_LATAM_API_KEY') || !Configuration::deleteByName('PAYU_LATAM_TEST') || !Configuration::deleteByName('PAYU_OS_PENDING') || !Configuration::deleteByName('PAYU_OS_FAILED') || !Configuration::deleteByName('PAYU_OS_REJECTED') || !Configuration::deleteByName('PAYU_LATAM_PUBLIC_KEY') || !Configuration::deleteByName('PAYU_LATAM_API_LOGIN')) {
         return false;
     }
     return true;
 }
开发者ID:IngenioContenidoDigital,项目名称:serta,代码行数:7,代码来源:payulatam.php

示例11: uninstall

 public function uninstall()
 {
     if (!Configuration::deleteByName('ipay88_merchantCode') or !Configuration::deleteByName('ipay88_merchantKey') or !parent::uninstall()) {
         return false;
     }
     return true;
 }
开发者ID:shinichi2510,项目名称:prestashop-ipay88-plugin,代码行数:7,代码来源:ipay88.php

示例12: uninstall

 public function uninstall()
 {
     if (!Configuration::deleteByName('BEGATEWAY_SHOP_ID') or !Configuration::deleteByName('BEGATEWAY_SHOP_PASS') or !Configuration::deleteByName('BEGATEWAY_SHOP_PAYTYPE') or !Configuration::deleteByName('BEGATEWAY_DOMAIN_GATEWAY') or !Configuration::deleteByName('BEGATEWAY_DOMAIN_CHECKOUT') or !Db::getInstance()->Execute('DROP TABLE `' . _DB_PREFIX_ . 'begateway_transaction`') or !$this->unregisterHook('payment') or !$this->unregisterHook('backOfficeHeader') or !$this->unregisterHook('displayHeader') or !$this->unregisterHook('paymentReturn') or !parent::uninstall()) {
         return false;
     }
     return true;
 }
开发者ID:beGateway,项目名称:prestashop-payment-module,代码行数:7,代码来源:beGateway.php

示例13: uninstall

 public function uninstall()
 {
     return Configuration::deleteByName('PAYMENTSENSE_GATEWAYID') && Configuration::deleteByName('PAYMENTSENSE_GATEWAYPASS') && Configuration::deleteByName('PAYMENTSENSE_PSK') && Configuration::deleteByName('PAYMENTSENSE_DEBUG') && Configuration::deleteByName('PAYMENTSENSE_TRANSACTION_TYPE') && parent::uninstall();
     /* Blank line to retain line numbers in changelog*/
     /* Blank line to retain line numbers in changelog*/
     /* Blank line to retain line numbers in changelog*/
 }
开发者ID:juniorhq88,项目名称:PrestaShop-modules,代码行数:7,代码来源:paymentsense.php

示例14: uninstall

 public function uninstall()
 {
     if (!parent::uninstall() or !Configuration::deleteByName('PAYPAL_HEADER') or !Configuration::deleteByName('PAYPAL_SANDBOX') or !Configuration::deleteByName('PAYPAL_API_USER') or !Configuration::deleteByName('PAYPAL_API_PASSWORD') or !Configuration::deleteByName('PAYPAL_API_SIGNATURE') or !Configuration::deleteByName('PAYPAL_EXPRESS_CHECKOUT') or !Configuration::deleteByName('PAYPAL_INTEGRAL')) {
         return false;
     }
     return true;
 }
开发者ID:vincent,项目名称:theinvertebrates,代码行数:7,代码来源:paypalapi.php

示例15: uninstall

 public function uninstall()
 {
     if (!Configuration::deleteByName('mercadopago_CLIENT_ID') or !Configuration::deleteByName('mercadopago_CLIENT_SECRET') or !Configuration::deleteByName('mercadopago_CATEGORY') or !Configuration::deleteByName('mercadopago_TYPECHECKOUT') or !Configuration::deleteByName('mercadopago_SANDBOX') or !Configuration::deleteByName('mercadopago_URLPROCESS') or !Configuration::deleteByName('mercadopago_URLSUCCESFULL') or !Configuration::deleteByName('mercadopago_BTN') or !Configuration::deleteByName('mercadopago_METHODS') or !Configuration::deleteByName('mercadopago_INSTALLMENTS') or !Configuration::deleteByName('mercadopago_COUNTRY') or !parent::uninstall()) {
         return false;
     }
     return true;
 }
开发者ID:mercadeoweb,项目名称:cart-prestashop,代码行数:7,代码来源:mercadopago.php


注:本文中的PaymentModule类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。