Closed NerdvanaNC closed 2 months ago
@NerdvanaNC please let me know the change in wordpress admin for currency. have you changed it in wordpress admin -> woocommerce -> settings-> general -> Currency
Confirmed - it is set to USD. I have made no changes to my website, which has been working for a long while already; the only change is in the checkout experience from Razorpay's end.
@NerdvanaNC can we please have a quick google meet call to understand the issue
@NerdvanaNC please provide replicating steps for the issue
@abdulwahidsharief Yes, we can get on a Google Meet call or I can send you screencasts via email. How can I reach you?
@NerdvanaNC please share the screencasts include wordpress admin product pricing after currency change to USD and place one order in store(until rzp checkout modal opens). we can connect later if it is required.
I have sent these details to you; did you receive my email?
@NerdvanaNC didn't received files can you please send here
Email contains sensitive information I have sent again, please check inbox/spam folder. The subject line mentions "GitHub Issue #560. "
@NerdvanaNC didn't received email. please send here
@NerdvanaNC , Please provide the steps to reproduce it. Also help which version of plugin you are using in your site. Site url etc. Please raise a support ticket with Razorpay as well.
There are no special steps to recreate this issue, I have been using Razorpay checkout plugin version 4.6.7.
My store is correctly configured (as seen in the earlier images). But Razorpay still proceeds to process checkout with INR as the currency. It should be USD.
Fixed it myself.
Line 1130
of the file woo-razorpay.php
in the function getDefaultCheckoutArguments( $order )
.
Changed 'currency' => self::INR
to 'currency' => 'USD'
.
I don't know why the default arguments for checkout from an order are hardcoded to INR
, but in any case, your implementation of the function getOrderCurrency( $order )
is faulty.
It's probably reverting back to the hardcoded value instead of returning an error. I don't really understand why you baked in a silent failure by hardcoding INR into the code.
I will keep trying to check and see if the implementation breaks, but it seemed to work just fine in my testing so far.
Thanks for nothing except for "please provide steps to reproduce bug" LMAO.
On my store with international payments enabled, customers are charged in USD. But now, since Razorpay has updated their checkout flow, people checking out with USD10 worth of items in their cart are charged INR10 instead. How can this even happen?