javascript - Simplecart's paypal checkout currency -
why paypal checkout keep showing in usd? have manage change simplecart currency, , showing right currency when item in shelf have added cart. moment click on checkout button, paypal page show in usd currency. e.g rm10 $10 usd.
  simplecart.email = "my@email.com";   simplecart.checkoutto = paypal;   simplecart.currency = myr;   simplecart.taxrate  = 0.02;   i changed this,
case dkk: return "rp "; case myr: return "rm"; case usd: case cad: case aud: case nzd: case hkd: case sgd: return "$"; default: return ""; } }; me.currencystringforpaypalcheckout = function( value ){ if( me.currencysymbol() == "rm" ){ return "rm" + parsefloat( value ).tofixed(2); } else { return "" + parsefloat(value ).tofixed(2); } };
where did went wrong? cart or checkout becomes problem?
i guess, because myr isn't build in currency. have set currency this:
simplecart.currency({     code: "mac" ,     name: "my awesome currency" ,     symbol: " $awe" ,     delimiter: " " ,     decimal: "," ,     after: true });   i don't know method currencysymbol() returns, have @ snippet docs:
simplecart.currency();  // returns { code:"mac", symbol:"$awe", name:"my awesome curency" }       
Comments
Post a Comment