Quote from David on August 12, 2019, 16:53
Hello,
We have many recurring subscription renewals in our store that are in a currency different than our store's base currency. However, upon renewal, using PayPal Reference Transactions, they are being charged the converted price, but in the store's base currency.
For a concrete example of a problematic order, I can confirm that the order object has the order's currency set to USD. But, the WooCommerce debug log for PayPal Checkout, shows "[CURRENCYCODE] => CAD" for the renewal.
It appears that the issue is acutally with the PayPal Checkout plugin by WooCommerce using the store default currency instead of the order’s currency when creating Reference Transactions.
Which seems to be set here: https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/blob/master/includes/class-wc-gateway-ppec-client.php#L1005
I asked them about it, and they’ve opened up a question here: https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/issues/607
It seems like more of a limitation/bug with the way the official WooCommerce PayPal Checkout plugin is coded.
However, this basically makes WOOCS unusable with PayPal Checkout Reference Transactions.
Is it possible to make a WOOCS adaption script to force PayPal Checkout to use the order's currency instead of the base currency?
Thank you!
Hello,
We have many recurring subscription renewals in our store that are in a currency different than our store's base currency. However, upon renewal, using PayPal Reference Transactions, they are being charged the converted price, but in the store's base currency.
For a concrete example of a problematic order, I can confirm that the order object has the order's currency set to USD. But, the WooCommerce debug log for PayPal Checkout, shows"[CURRENCYCODE] => CAD" for the renewal.
It appears that the issue is acutally with the PayPal Checkout plugin by WooCommerce using the store default currency instead of the order’s currency when creating Reference Transactions.
Which seems to be set here: https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/blob/master/includes/class-wc-gateway-ppec-client.php#L1005
I asked them about it, and they’ve opened up a question here: https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/issues/607
It seems like more of a limitation/bug with the way the official WooCommerce PayPal Checkout plugin is coded.
However, this basically makes WOOCS unusable with PayPal Checkout Reference Transactions.
Is it possible to make a WOOCS adaption script to force PayPal Checkout to use the order's currency instead of the base currency?
Thank you!