Hardcode ‘usd’ as currency
-
Our site uses TerraWallet plugin for users to use ‘points’ to purchase. When the user does not have enough points to complete the order they are allowed to pay remaining balance with credit card. We are using Stripe and your plugin to process these payments. However, the payment object is sent to Stripe with the currency as ‘points’ instead of ‘usd’. Where can I hardcode ‘usd’ for all payments sent to Stripe?
We already have the following code added to our functions.php in our child theme, however it’s not working. Thoughts?
add_filter(‘wc_stripe_payment_intent_args’, function($args){ $args[‘currency’] = ‘USD’; return $args; }, 10);
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Hardcode ‘usd’ as currency’ is closed to new replies.