Select or detect currency

Created on 2 November 2023, 8 months ago
Updated 5 November 2023, 8 months ago

Reporting this here in case it helps. Granted, this issue could have been avoided if I'd been using Stripe's dev test feature, or possibly I'd gotten someone with a Japanese account to test instead of using my US credit card.

I originally had the Give settings set for Japanese Yen, minimum 500.

In attempting to troubleshoot after upgrading to Drupal 10, I sent myself the minimum 500, listed as Yen. But the transaction was recorded as 50,000 Yen, and then converted to about $310 after Stripe's fees.

Even if this is caused by using a US card, anyone looking to donate from the US would face the same issue if they thought they were donating in Yen. The site seems to add two zeroes "00" to whatever amount is input. But 500 and 50,000 Yen are very different.

Thoughts?

For the time being, I've simply changed the currency shown to Dollars $ as I feel that's overall safer, but it's very strange to have a mostly Japanese-based site with a donate button not in Yen.

πŸ’¬ Support request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States W01F

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @W01F
  • πŸ‡ΊπŸ‡ΈUnited States W01F
  • This is a bug arising from a moment when I moved the decimal places in the database.
    I fixed it in give.install function give_update_9001() which replaces the amount field.
    Is it possible you forgot to run the updates?

  • πŸ‡ΊπŸ‡ΈUnited States W01F

    Hi matslats, I'm currently using version beta3. Is this fix in the dev version (even though it's older)?

  • function give_update_9001 is present in file give.install in beta3
    I don't know under exactly what conditions that function would run when you run update.php - maybe if you upgraded from beta2 to drupal10 the system would miss it. Maybe it is good practice to update to the latest version of all modules before doing the core upgrade.
    Anyway if you have devel_php module you can copy the code from that function and run it in the devel box.
    Hope that helps.

  • πŸ‡ΊπŸ‡ΈUnited States W01F

    I don't have the devel_php module. If I uninstall and reinstall the module - would that ensure capturing that decimal places change in the database?

Production build 0.69.0 2024