Skip to content

WPML - Using VND in a multi-currency store, OnePay does not work  #36

@htdat

Description

@htdat

Reported from https://wordpress.org/support/topic/uing-vnd-but-cant-get-one-pay-to-work/

This is not a bug. It's the intention to support VND with OnePay only.

Issue:

  • Main currency store - USD, but setup in WPML/WCML with VND also.
  • See the VNese products, VND displays.
  • But in the back end, see this error Your store currency is USD. This gateway is not active on your site. Because OnePay supports VND only.

Code:

you can tweak true/false to enable the OnePay gateway (by changing the ‘VND’ to ‘USD’).

Bigger issue:

The OnePay class I wrote is good, just the issue with sending the correct amount value of the order and its currency.

Solution:

  • Check how WPML sends the amount of money and currency during the checkout process.
  • Check how to enable the settings in the back-end, "code" section above.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions