Changeset 2760840
- Timestamp:
- 07/24/2022 04:55:43 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bank-saman-edd-gateway/trunk/bank-saman-edd-gateway.php
r2760631 r2760840 2 2 /* 3 3 * Plugin Name: Bank Saman EDD gateway 4 * Version: 3. 04 * Version: 3.1 5 5 * Description: Add Bank Saman gateway to easy digital downloads 6 * Plugin URI: https:// pamjad.me/saman-getway-edd6 * Plugin URI: https://arvandec.com/wordpress-plugin/ 7 7 * Author: Pouriya Amjadzadeh 8 8 * Author URI: https://pamjad.me 9 9 * Donate link: https://pamjad.me/donate 10 10 * Tags: easy digital downloads,EDD gateways,persian banks,getaway 11 * Requires PHP: 7. 011 * Requires PHP: 7.4 12 12 * Requires at least: 5.1 13 13 * Tested up to: 6.0.1 … … 18 18 19 19 if ( ! defined( 'ABSPATH' ) ) exit; 20 21 add_action('init', function(){ 22 load_plugin_textdomain( 'sb24_edd', false, dirname( plugin_basename( __FILE__ ) ) . '/langs' ); 23 }); 24 20 25 if ( !class_exists( 'EDD_BankSaman_Gateway' ) ) : 21 26 … … 24 29 25 30 public function __construct() { 26 add_action('init', function(){27 load_plugin_textdomain( 'sb24_edd', false, dirname( plugin_basename( __FILE__ ) ) . '/langs' );28 });29 31 //Persian Currencies 30 32 add_filter( 'edd_currencies', array($this, 'add_tomain_currency'), 10 ); … … 131 133 132 134 if ( $payment ) { 133 if( edd_is_test_mode() ) {134 edd_update_payment_status( $payment->ID, ' publish' );135 if( edd_is_test_mode() ) { 136 edd_update_payment_status( $payment->ID, 'complated' ); 135 137 edd_send_to_success_page(); 136 138 } else { … … 139 141 $Amount = intval( $purchase_data['price'] ) ; 140 142 if ( edd_get_currency() == 'IRT' ) $Amount *= 10; 141 142 143 echo "<form id='samanpeyment' action='https://sep.shaparak.ir/payment.aspx' method='post'> 143 144 <input type='hidden' name='Amount' value='{$Amount}' /> … … 200 201 endif; 201 202 202 new EDD_ sb24_Gateway;203 new EDD_BankSaman_Gateway; 203 204 204 205 ?>
Note: See TracChangeset
for help on using the changeset viewer.