diff --git a/woo-razorpay.php b/woo-razorpay.php index 658f70f6..f085b195 100644 --- a/woo-razorpay.php +++ b/woo-razorpay.php @@ -1127,7 +1127,7 @@ public function getDefaultCheckoutArguments($order) return array( 'key' => $this->getSetting('key_id'), 'name' => html_entity_decode(get_bloginfo('name'), ENT_QUOTES), - 'currency' => $this->getOrderCurrency($order), + 'currency' => self::INR, 'description' => $productinfo, 'notes' => array( self::WC_ORDER_ID => $orderId, @@ -1160,6 +1160,13 @@ private function getCheckoutArguments($order, $params) { $args = $this->getDefaultCheckoutArguments($order); + $currency = $this->getOrderCurrency($order); + + if (empty($currency) === false) + { + $args['currency'] = $currency; + } + // The list of valid currencies is at https://razorpay.freshdesk.com/support/solutions/articles/11000065530-what-currencies-does-razorpay-support- $args = array_merge($args, $params);