SilverCart Forum

We moderate this Forum and we're here to help. Have you already run a forum search to check if your problem has already been solved?

You can help us helping you by providing detailed error messages, screenshots and logfile entries.

SebastianRamon

Page: 1 , 2 , 3
Topic getAmount 9221 Views

Re: getAmount

24 April 2012 at 10:38am

Hi Roxane,

just fixed this bug in a new version 1.1.4 of the PayPal module.
Download the SilverCart PayPal module here (select only the PayPal module).

The getAmount() call was deprecated and is completely removed now.

Cheers,
Sebastian

Re: getAmount

24 April 2012 at 12:24pm

Great ! I don't have the error anymore, thank you very much guys ! :D

I get to a "Page not found" error page instead, though. Any idea why ? Could it be the Paypal Sandbox credentials ?

(I'm really impressed by SiverCart, by the way ! I'll use it again for sure !)

Re: getAmount

24 April 2012 at 12:30pm Last edited: 24 April 2012 12:30pm

Nice to hear :)

I think the "page not found" error results in a misconfiguration of the Paypal Sandbox credentials, so you should be right (got the same error this morning, forgot to configure the PayPal URLs for dev mode ;-P).

Have a look at the Tabs "PayPal API" and "PayPal URLs" at the payment configuration of PayPal.

Perhaps some URLs are missing?

Cheers,
Sebastian

Re: getAmount

24 April 2012 at 1:02pm Last edited: 24 April 2012 1:26pm

Maybe you could give me (and others) a hint - in the doc, for instance ;) - :
Where do I find the Paypal URLs ? (Sandbox & Live Mode)

Edit - Found those :
- https://www.sandbox.paypal.com/cgi-bin/webscr
- https://api.sandbox.paypal.com/nvp
- https://api.sandbox.paypal.com/2.0 /

Here :
https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_Sandbox_UserGuide.pdf

--

And I get stuck on Paypal Website with an error : The transaction is not valid. Please go back to the store...

Re: getAmount

24 April 2012 at 1:12pm Last edited: 24 April 2012 1:15pm

Have a look at the general payment documentation section and the PayPal section of the SilverCart documentation.

You can find the PayPal URLs tab beside the PayPal API tab.

Edit: Sorry - misunderstood your post. Your posted URLs are the right ones.

Cheers,
Sebastian

Re: getAmount

24 April 2012 at 1:19pm

There is a log file in /silvercart/log/SilvercartPaymentPaypal.log.

Can you find some errors there?

Re: getAmount

24 April 2012 at 1:30pm Last edited: 24 April 2012 1:30pm

'L_SHORTMESSAGE0' => 'Transaction refused because of an invalid argument. See additional error messages for details.',
'L_LONGMESSAGE0' => 'The totals of the cart item amounts do not match order amounts.',

...

'PAYMENTREQUEST_0_AMT' => 456.56,
'PAYMENTREQUEST_0_ITEMAMT' => 360,
'PAYMENTREQUEST_0_CURRENCYCODE' => 'EUR',
'PAYMENTREQUEST_0_SHIPPINGAMT' => 26,
'PAYMENTREQUEST_0_HANDLINGAMT' => 0,

I think I got confused with the taxes everywhere...

Re: getAmount

24 April 2012 at 1:52pm

Perhaps an misconfiguration in tax handling?

could you please check your configuration like mentioned in the tax handling documentation?

Dependant on the configured price type for the customer type, there must be net AND gross prices for a product.

The configured taxes have to be related with the products.

Cheers,
Sebastian