Hi,
so i've spent the last few days exploring the latest version of eCommerce that Jedateach and co. are working on. (with a little help from Bambii7's forum posts!)
i downloaded the latest version of SS 2.4.1
Checked out the latest burnbright branch of eCommerce
svn checkout http://silverstripe-ecommerce.googlecode.com/svn/branches/burnbright ecommerce
and the latest payment module.
svn checkout http://svn.silverstripe.com/open/modules/payment/branches/0.3 payment
i then had to update my mysite/_config.php with the attached file.
im fairly sure some of that code isn't actually doing anything though! e.g - currently there is no shipping costs added to the order, i haven't got to that stage yet.
i also updated my PayPalPayment.php file with the attached.
main change was line 170:
From
$inputs['currency_code'] = $this->Currency;
To
$inputs['currency_code'] = self::site_currency();
as my currency was set in my config.php file for it to pick up.
now my orders go through fine! (it still says failure in dev mode, but live mode works)
i get an email from paypal confirming payment from customer, an email from paypal confirming receipt of payment to merchant and an email from mysite confirming the order and payment. (although this email still says payment status is "incomplete" but purchase is "complete" maybe thats because the funds havent cleared or something?? i'll look at this issue now.)
also, in the admin page the order status is blank. but when you open it to view, it shows payment as successful and the amount etc. i guess i need to do a little bit of investigating into this bit now.
anyway, thats it! i think ive included everything i had to do, obviously the config file will have to be amended to your site details and your country/currency code.
any more advancements i make, i'll post up in this thread. (so subscribe!)
i really hope this helps some of you as it would have helped me!!!!!