PagSeguro Module

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 年 前
Hi all!

This is for nopcommerce stores that are using PagSeguro as payment module (PagSeguro is like Paypal here in Brazil).

http://www.4shared.com/file/KXGIk_PR/PagseguroNopCommerce.html

There are some parts of the code that I don´t use anymore, but you can check it. Instructions are in portuguese, but looking at other payment modules all developers can understand it.

Regards!!
13 年 前
thanks jpmusico.

can you help me with this error in PagSeguroReturn.aspx.cs:


Error:  An object reference is required for the non-static field, method, or property 'NopSolutions.NopCommerce.BusinessLogic.Configuration.Settings.SettingManager.GetSettingValue(string)'
C:\...\NopCommerceStore\PagSeguroReturn.aspx.cs


string Token = SettingManager.GetSettingValue("PaymentMethod.PagSeguro.Token");
string Pagina = SettingManager.GetSettingValue("PaymentMethod.PagSeguro.UrlNPI");


I followed all the instructions but I have no ideia, I'm trying everything...

thanks.
13 年 前
hi... it´s good to know that someone is using this code hehehe

did you create the database keys and inserted a value for them? Looks like this is the issue.

Check and let me know

regards
13 年 前
hehehe this extension is great and very useful here in brazil!

well... I just inserted values in the database according your queries in the 'nop_setting' and 'nop_localestringresource' tables.

I even tried with and without the token number but no success.

any idea?

**sorry, I forgot that on same file have more 2 errors:

Error    The name 'OrderManager' does not exist in the current context  C:\..\PagSeguroReturn.aspx.cs
Error    The name 'LogManager' does not exist in the current context  C:\..\PagSeguroReturn.aspx.cs
13 年 前
hey...

did you copy all files to a folder? or used copy paste for a new one? (I'm trying to find out here what's going on)

If you copy the content do a new file, maybe a reference is missing... it's weird.... I'll check the code again later.


regards and let's talking
13 年 前
acho melhor eu explicar em portugues rsrs

eu inseri todas as pastas e arquivos pelo visual studio.

A pasta "Nop.Payment.PagSeguro" eu inserir pelo visual studio clicando com botao direito em Payment - Add - Existing Project, daí ele já criou toda a estrutura. Os outros arquivos foram da mesma forma.

Parece que esta dando erro em alguma referencia pois quando vou na pasta que criei "Nop.Payment.PagSeguro", no visual, e abro a pasta References aparece tres referencias com um ponto de exclamacao do lado, como se nao reconhecesse: Nop.Common, Nop.DataAccess, Nop.DataAccess.SqlServer...

muito estranho...

e vamos nos falando...
13 年 前
humm... cara.. uma coisa que veio na minha cabeça agora, que versão do nopcommerce vc tá usando?

Eu fiz isso na 1.6... talvez alguma referencia se perca em versao mais nova.
13 年 前
putz... é mesmo, eu uso a 1.9...

por acaso vc nao está pensando em atualizar a sua versão nao? rs

de qualquer forma vou continuar tentando descobrir o erro...

Valeu!
13 年 前
a idéia é eu atualizar mesmo hehehe na verdade vou precisar, to começando um trampo com a 1.9
13 年 前
hehehe, estou iniciando agora no nopcommerce e ainda estou quebrando um pouco a cabeça... se descobrir antes posta aí...

abraço
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.