PayPal script need “currency” parameter
-
Hi,
thanks for the plugin.The paypal trow an error without ¤cy param.
Add to the js url code, pls:
$options[‘currency_code’]
function plugin_scripts() { if (!is_admin()) { global $post; if(is_a($post, 'WP_Post') && has_shortcode($post->post_content, 'checkout_for_paypal')){ $options = checkout_for_paypal_get_option(); wp_enqueue_script('jquery'); wp_register_script('checkout-for-paypal', 'https://www.paypal.com/sdk/js?client-id='.$options['app_client_id'], array('jquery'), null); wp_enqueue_script('checkout-for-paypal'); } } }—
temporary solution for users:
in Settings page, in the “Client ID” fields, after the ID code, add the
¤cy=HUF
text and it works 🙂
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘PayPal script need “currency” parameter’ is closed to new replies.