Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
39 Posts 6620 Views
yeah i spotted your site earlier today when reading the thread ;)
You've implemented it really well, it looks good!
how is your email confirmations?
mine kept sending emails to the customer saying "payment failure" but the site said it was fine.
if you refreshed the page it emailed again saying payment success, have you come across this?
Thanks. It worked well in the end.
To be honest I've didn't spend long testing the email notifications. I've not heard anything back from the client on this yet. Maybe I'll do some more testing before the client finds it first!
good idea ;-)
here was the one i built in case you were interested, this is pretty old now...and the client has still never actually added any content! (what a waste)
(all one word)
Nice one. I've got a couple like that. Must have a full CMS and then never updated. Ho-hum!
Im looking to add amend the code in the EcommerceRole.php to get the default GB country.
Is this additional code or is it to overwrite something else? I can't quite seem to see where it should go.
Yes. The changes I posted replaced existing code. It was around line 75 in my version.
I had to change line 348 in http://code.google.com/p/silverstripe-ecommerce/source/browse/modules/payment_paypal/trunk/code/PayPalExpressCheckoutPayment.php from
$response = $paystation->request('','POST',http_build_query($postfields));
$response = $paystation->request('','POST',http_build_query($postfields, null, "&"));
for it to work on my test site.
I received the error
API url: https://api-3t.paypal.com/nvp
Redirect url: https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=TOKENGOESHERE&useraction=commit
[TIMESTAMP] => 2012-01-11T16:58:47Z
[CORRELATIONID] => 5d610f6c4a96e
[ACK] => Failure
[VERSION] => 0.000000
[BUILD] => 2271164
[L_ERRORCODE0] => 10002
[L_SHORTMESSAGE0] => Authentication/Authorization Failed
[L_LONGMESSAGE0] => You do not have permissions to make this API call
[L_SEVERITYCODE0] => Error
this was caused by sending encoded & instead of & in between the POST request elements.