craigchristenson / woocommerce-2checkout-api

2Checkout Payment API WooCommerce Payment Module
MIT License
57 stars 43 forks source link

"Bad request - parameter error" after adding a new currency #52

Open mcy260 opened 5 years ago

mcy260 commented 5 years ago

I use woocommerce + Pricing zones , so i show the prices in PYG currency

when i use your plugin, and the price is in PYG, on the checkout... the 2checkout option doesn show up

so i went to the config files wc-twochekout.php . and in the array, i added the currency PYG

function is_valid_for_use() { $supported_currencies = array( 'AFN', 'ALL', 'DZD', 'ARS', 'AUD', 'AZN', 'BSD', 'BDT', 'BBD', 'BZD', 'BMD', 'BOB', 'BWP', 'BRL', 'GBP', 'BND', 'BGN', 'CAD', 'CLP', 'CNY', 'COP', 'CRC', 'HRK', 'CZK', 'DKK', 'DOP', 'XCD', 'EGP', 'EUR', 'FJD', 'GTQ', 'HKD', 'HNL', 'HUF', 'INR', 'IDR', 'ILS', 'JMD', 'JPY', 'KZT', 'KES', 'LAK', 'MMK', 'LBP', 'LRD', 'MOP', 'MYR', 'MVR', 'MRO', 'MUR', 'MXN', 'MAD', 'NPR', 'TWD', 'NZD', 'NIO', 'NOK', 'PKR', 'PGK', 'PEN', 'PHP', 'PLN', 'QAR', 'RON', 'RUB', 'WST', 'SAR', 'SCR', 'SGF', 'SBD', 'ZAR', 'KRW', 'LKR', 'SEK', 'CHF', 'SYP', 'THB', 'TOP', 'TTD', 'TRY', 'UAH', 'AED', 'USD', 'VUV', 'VND', 'XOF', 'PYG', 'YER');

and i have no idea how to fix,

mcy260 commented 5 years ago

https://knowledgecenter.2checkout.com/Documentation/07Commerce/02Checkout_links_and_options/Order_interface_currencies

technically 2checkout does works with PYG

mcy260 commented 5 years ago

any update on this? is there any other plugin for 2chekout?