Guest Gennady Posted October 30, 2005 Share Posted October 30, 2005 I found that PayPal Express Checkout do not work with 3.05 version. Checked log in pear/tmp and found that currency sign surrounded by additional brackets: <OrderTotal xsi:type="xsd:string" currencyID="'USD'">36.26</OrderTotal> <ItemTotal xsi:type="xsd:string" currencyID="'USD'">30.00</ItemTotal> <ShippingTotal xsi:type="xsd:string" currencyID="'USD'">6.26</ShippingTotal> the reply was <ShortMessage xsi:type="xs:string">Transaction refused because of an invalid argument. See additional error messages for details.</ShortMessage><LongMessage xsi:type="xs:string">Currency is not supported</LongMessage><ErrorCode xsi:type="xs:token">10429</ErrorCode> The quick solution is to trim string you have to insert // we need to remove surrounding "'" if( strlen($currencyID) == 5 ) { $currencyID = substr($currencyID,1,3); } modules/gateway/ExpressCheckout/trancfer.inc.php line 140 modules/gateway/ExpressCheckout/return.php line 88 Quote Link to comment Share on other sites More sharing options...
Guest Gennady Posted October 31, 2005 Share Posted October 31, 2005 It seems that it does not change an ammount for different currencies. You might want to override currencyID. Quote Link to comment Share on other sites More sharing options...
Guest Gennady Posted October 31, 2005 Share Posted October 31, 2005 For PayPal Direct Payment it is more interresting <OrderTotal xsi:type="xsd:string" currencyID="\'USD\'">62.96</OrderTotal> <ItemTotal xsi:type="xsd:string" currencyID="\'USD\'">60.00</ItemTotal> <ShippingTotal xsi:type="xsd:string" currencyID="\'USD\'">2.96</ShippingTotal> solution to add modules/gateway/DirectPayment/form.inc.php line 27 // we need to remove surrounding "'" if( strlen($currencyID) == 7 ) { $currencyID = substr($currencyID,2,3); } or if you want to suppress currency change $currencyID = "USD"; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.