Commit bb98ed4c authored by mr.amirka's avatar mr.amirka

update

parent 46888e15
......@@ -5,7 +5,7 @@
* Description: Payment system plugin.
* Version: 0.2
* Author: lunu.io
* Author URI: https://lunu.io/plugins
* Author URI: https://lunu.io/plugins/
* Text Domain: lunu-payment
*/
......@@ -184,11 +184,11 @@ if (
$this->api_secret = $this->get_option('api_secret');
$this->success_url = $this->get_option('success_url');
$this->cancel_url = $this->get_option('cancel_url');
$this->description = $this->get_option('description');
// $this->description = $this->get_option('description');
// Re-check
if (!$this->title) $this->title = __('Lunu Payment', LUNUPAYMENTWC);
if (!$this->description) $this->description = __('Secure, anonymous payment with virtual currency', LUNUPAYMENTWC);
// if (!$this->description) $this->description = __('Secure, anonymous payment with virtual currency', LUNUPAYMENTWC);
return true;
}
......@@ -207,15 +207,15 @@ if (
'type' => 'checkbox',
'default' => (LUNUPAYMENT_VERSION == 'beta' ? 'no' : 'yes'),
),
'app_id' => array(
'app_id' => array(
'title' => __('App ID', LUNUPAYMENTWC),
'type' => 'text',
'default' => ''
'default' => '8ce43c7a-2143-467c-b8b5-fa748c598ddd'
),
'api_secret' => array(
'title' => __('API Secret', LUNUPAYMENTWC),
'type' => 'text',
'default' => ''
'default' => 'f1819284-031e-42ad-8832-87c0f1145696'
),
'success_url' => array(
'title' => __('Redirect Url if success', LUNUPAYMENTWC),
......@@ -228,13 +228,15 @@ if (
'type' => 'text',
'default' => '',
'description' => __('Redirect to another page after payment is canceled. For example, http://yoursite.com/we_very_wait_you.php', LUNUPAYMENTWC) . "<br><br><br><br><br>"
),
)
/*
'description' => array(
'title' => __('Description', LUNUPAYMENTWC),
'type' => 'textarea',
'default' => trim(__('Secure, anonymous payment with virtual currency', LUNUPAYMENTWC), " -"),
'description' => __('Payment method description that the customer will see on your checkout', LUNUPAYMENTWC)
)
*/
);
return true;
......@@ -419,7 +421,7 @@ if (
" . (empty($success_url) ? "" : "window.location.href = '" . $success_url . "';") . "
},
payment_cancel() {
// Processing a payment cancellation event
// Handling a payment cancellation event
var handleCancel = window.LUNU_PAYMENT_CANCEL_CALLBACK;
handleCancel && handleCancel();
" . (empty($cancel_url) ? "" : "window.location.href = '" . $cancel_url . "';") . "
......
=== Lunu WooCommerce - Lunu Cryptocurrencies Payment Gateway Addon ===
Contributors: Lunu Payment, lunu.io
Plugin Name: Lunu Payment WooCommerce - Cryptocurrencies Payment Gateway Addon.
Plugin URI: https://lunu.io/plugins
Plugin URI: https://lunu.io/plugins/wordpress
Author URI: https://lunu.io
Tags: woocommerce, cryptocurrency, payments, wordpress plugin, Lunu Payment, cryptocurrency, shop, payment, payment gateway
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment