Skip to content

Commit

Permalink
delete currency config
Browse files Browse the repository at this point in the history
  • Loading branch information
yeganehha authored Dec 27, 2018
1 parent 91d22a9 commit d348396
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions gateways/payping.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function process( $purchase_data ) {
$callback = add_query_arg( 'verify_payping', '1', get_permalink( $edd_options['success_page'] ) );

$amount = intval( $purchase_data['price'] ) ;
if ( $edd_options['payping_currency'] == 'IRR' )
if ( edd_get_currency() == 'IRR' or strtoupper(edd_get_currency()) == 'RIAL' or strtoupper(edd_get_currency()) == 'ريال' )
$amount = $amount / 10; // Return back to original one.

$data = array(
Expand Down Expand Up @@ -156,7 +156,7 @@ public function verify() {
if ( $payment->status == 'complete' ) return false;

$amount = intval( edd_get_payment_amount( $payment->ID ) ) ;
if ( edd_get_currency() == 'IRR' )
if ( edd_get_currency() == 'IRR' or strtoupper(edd_get_currency()) == 'RIAL' or strtoupper(edd_get_currency()) == 'ريال' )
$amount = $amount / 10; // Return back to original one.

$tokenCode = ( isset( $edd_options[ 'payping_tokenCode' ] ) ? $edd_options[ 'payping_tokenCode' ] : '' );
Expand Down Expand Up @@ -274,13 +274,6 @@ public function settings( $settings ) {
'type' => 'text',
'size' => 'regular'
),
'payping_currency' => array(
'id' => 'payping_currency',
'name' => 'واحد پولی وبسایت شما',
'type' => 'radio',
'options' => array( 'IRT' => 'تومان', 'IRR' => 'ریال' ),
'std' => edd_get_currency()
),
'payping_label' => array(
'id' => 'payping_label',
'name' => 'نام درگاه در صفحه پرداخت',
Expand Down

0 comments on commit d348396

Please sign in to comment.