Platforma nopCommerce: Diferență între versiuni
Linia 10: | Linia 10: | ||
1) Configuration: All Configurations | 1) Configuration: All Configurations | ||
2) Output path: ...\nopCommerce_2.65_Source\Presentation\Nop.Web\Plugins\Payments.PlatiOnline\ | 2) Output path: ...\nopCommerce_2.65_Source\Presentation\Nop.Web\Plugins\Payments.PlatiOnline\ | ||
− | |||
− | |||
− | + | 3. In nopCommerce_2.65_Source\Libraries\Nop.Core\Domain\Orders\OrderStatus.cs: | |
1) in OrderStatus enum se adauga : Authorized = 50, | 1) in OrderStatus enum se adauga : Authorized = 50, | ||
OnHold = 60, | OnHold = 60, | ||
PaymentDeclined = 70 | PaymentDeclined = 70 | ||
− | + | 4. In nopCommerce_2.65_Source\Libraries\Nop.Core\Domain\Payments\PaymentStatus.cs: | |
2) in PaymentStatus enum se adauga: OnHold= 60, | 2) in PaymentStatus enum se adauga: OnHold= 60, | ||
Declined = 70 | Declined = 70 |
Versiunea de la data 18 decembrie 2012 16:26
I. SETARI IN PROIECTUL NOP:
1. Se copiaza "Nop.Plugin.Payments.PlatiOnline" in "nopCommerce_2.65_Source\Plugins"
2. Se deschide in Microsoft Visual Studio "NopCommerce.sln":
- in Plugins - Add Existing Project: "Nop.Plugin.Payments.PlatiOnline.csproj"
(...\nopCommerce_2.65_Source\Plugins\Nop.Plugin.Payments.PlatiOnline)
- in proiectul "Nop.Plugin.Payments.PlatiOnline" - Properties - Build :
1) Configuration: All Configurations
2) Output path: ...\nopCommerce_2.65_Source\Presentation\Nop.Web\Plugins\Payments.PlatiOnline\
3. In nopCommerce_2.65_Source\Libraries\Nop.Core\Domain\Orders\OrderStatus.cs:
1) in OrderStatus enum se adauga : Authorized = 50,
OnHold = 60,
PaymentDeclined = 70
4. In nopCommerce_2.65_Source\Libraries\Nop.Core\Domain\Payments\PaymentStatus.cs:
2) in PaymentStatus enum se adauga: OnHold= 60,
Declined = 70
II. SETARI ADMINISTRATOR:
In Administration - Configuration:
1. Plugins - se cauta dupa System name: "Payments.PlatiOnline" => Instal
2. PaymentMethod - se cauta dupa System name: "Payments.PlatiOnline"
1) Edit: a) Se selecteaza checkbox-ul "Is active"
b) Display order=1
c) Update
2) Configure: a) Merchant Id/ Key Encription /Key Mod (se primesc de la PlatiOnline
dupa creearea contului de comerciant)
b) Se selecteaza monedele in care se poate efectua tranzactia
c) Daca utilizatorul are alta moneda decat cele selectate mai sus,se selecteaza moneda
in care se va converti moneda utilizatorului pentru a se putea efectua tranzactia
d) Save
III. SETARI CONT COMERCIANT PLATIONLINE:
In Setari:
1. Raspunsul tranzactiei:
1)Introduceti noul url: .../Plugins/PaymentPlatiOnline/CheckoutCompleted
2)Selectati noua metoda: POST(JavaScript PlatiOnline...)
3)Salveaza modificarile
2. Notificările instant la schimbarea starii tranzacţiei:
1) Introduceti noul url: .../Plugins/PaymentPlatiOnline/ITSN
2) Selectati noua metoda : POST
3) Salveaza modificarile