Changeset 2615295
- Timestamp:
- 10/17/2021 08:42:19 AM (4 years ago)
- Location:
- gateway-payping-easy-digital-downloads/trunk
- Files:
-
- 3 edited
-
edd-payping.php (modified) (1 diff)
-
gateways/payping.php (modified) (2 diffs)
-
includes/toman-currency.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gateway-payping-easy-digital-downloads/trunk/edd-payping.php
r2611842 r2615295 2 2 /* 3 3 Plugin Name: Gateway PayPing Easy Digital Downloads 4 Version: 1. 0.04 Version: 1.1.0 5 5 Description: افزونه درگاه پرداخت پیپینگ برای Easy Digital Downloads 6 6 Plugin URI: https://www.payping.ir/ -
gateway-payping-easy-digital-downloads/trunk/gateways/payping.php
r2074486 r2615295 13 13 $message = json_encode( $object, JSON_UNESCAPED_UNICODE ); 14 14 $label = "Debug".($label ? " ($label): " : ': '); 15 echo "<script>console.log(\"$label\", $message);</script>";16 15 $console_log = esc_html("<script>console.log(\"$label\", $message);</script>"); 16 echo $console_log; 17 17 file_put_contents(EDD_GPPDIR.'/log_payping.txt', $label."\n".$message."\n\n", FILE_APPEND); 18 18 } … … 216 216 $refid = edd_get_payment_meta( $payment->ID, 'payping_refid' ); 217 217 if ( $refid ) { 218 echo '<tr class="payping-ref-id-row ezp-field ehsaan-me"><td><strong>شماره تراکنش بانکی:</strong></td><td>'.$refid.'</td></tr>'; 218 $res_refid = esc_html('<tr class="payping-ref-id-row ezp-field ehsaan-me"><td><strong>شماره تراکنش بانکی:</strong></td><td>'.$refid.'</td></tr>'); 219 echo $res_refid; 219 220 } 220 221 } -
gateway-payping-easy-digital-downloads/trunk/includes/toman-currency.php
r2074486 r2615295 8 8 */ 9 9 if ( ! function_exists('irg_add_toman_currencyP')): 10 function ir g_add_tomain_currencyP( $currencies ) {10 function irpayping_add_toman_currency( $currencies ) { 11 11 $currencies['IRT'] = 'تومان'; 12 12 return $currencies; 13 13 } 14 14 endif; 15 add_filter( 'edd_currencies', 'ir g_add_tomain_currencyP' );15 add_filter( 'edd_currencies', 'irpayping_add_toman_currency' ); 16 16 17 17 /** … … 48 48 } 49 49 50 add_filter( 'edd_irt_currency_filter_after', ' toman_postfixP', 10, 2 );51 function toman_postfixP( $price, $did ) {50 add_filter( 'edd_irt_currency_filter_after', 'irpayping_toman_postfix', 10, 2 ); 51 function irpayping_toman_postfix( $price, $did ) { 52 52 return str_replace( 'IRT', 'تومان', $price ); 53 53 } 54 54 55 add_filter( 'edd_rial_currency_filter_after', 'rial _postfixP', 10, 2 );56 function rial _postfixP( $price, $did ) {55 add_filter( 'edd_rial_currency_filter_after', 'rialpayping_postfix', 10, 2 ); 56 function rialpayping_postfix( $price, $did ) { 57 57 return str_replace( 'RIAL', 'ریال', $price ); 58 58 }
Note: See TracChangeset
for help on using the changeset viewer.