Hi there,
I have been trying to get the ExampleGateway C# Gateway Provider (with Notify) working on DotNetNuke 7.1.2 with NB Store version 2.3.8 Rel3. I got the files to do so from this download, https://nbstore.codeplex.com/downloads/get/604552, which was on this list:
https://nbstore.codeplex.com/releases/view/34143
Currently, my configuration is as follows:
Visual Studio
namespace: NEvoWeb.Modules.NB_Store.Gateway.BaseGateway
class: ExampleGateway : GatewayInterface
solution: ExampleGateway
project: Nevoweb.NBrightStore.Gateway.ExampleGateway
assembly: Nevoweb.DNN.ExampleGateway
defaultns: NEvoWeb.Modules.NB_Store.Gateway
references: the current DotNetNuke & NEvoweb.DNN.Modules.NB_Store libraries
framework: 4.0 (to account for current libraries)
NB Store Utility Settings:
Payment\Gateways\gateway.provider:
NEvoweb.DNN.Modules.NB_Store.GatewayPayPal, NEvoWeb.Modules.NB_Store.Gateway.GatewayPayPal; Nevoweb.DNN.ExampleGateway, NEvoWeb.Modules.NB_Store.Gateway.BaseGateway.ExampleGateway
Payment\Gateways\gateway.providers.xml:
The error I am getting comes after clicking the Pay Link, but before my custom code is reached. It is shown below:
The checkout settings are:
Payment Gateway: PayU
Encapsulated Gateway: Checked
Gateway Display Method: Standard Only
Any insights?
Help much appreciated!
I have been trying to get the ExampleGateway C# Gateway Provider (with Notify) working on DotNetNuke 7.1.2 with NB Store version 2.3.8 Rel3. I got the files to do so from this download, https://nbstore.codeplex.com/downloads/get/604552, which was on this list:
https://nbstore.codeplex.com/releases/view/34143
Currently, my configuration is as follows:
Visual Studio
namespace: NEvoWeb.Modules.NB_Store.Gateway.BaseGateway
class: ExampleGateway : GatewayInterface
solution: ExampleGateway
project: Nevoweb.NBrightStore.Gateway.ExampleGateway
assembly: Nevoweb.DNN.ExampleGateway
defaultns: NEvoWeb.Modules.NB_Store.Gateway
references: the current DotNetNuke & NEvoweb.DNN.Modules.NB_Store libraries
framework: 4.0 (to account for current libraries)
NB Store Utility Settings:
Payment\Gateways\gateway.provider:
NEvoweb.DNN.Modules.NB_Store.GatewayPayPal, NEvoWeb.Modules.NB_Store.Gateway.GatewayPayPal; Nevoweb.DNN.ExampleGateway, NEvoWeb.Modules.NB_Store.Gateway.BaseGateway.ExampleGateway
Payment\Gateways\gateway.providers.xml:
<?xml version="1.0" encoding="utf-8" ?>
<root>
<gateways>
<gateway ref="Paypal">
<name>Paypal</name>
<assembly>NEvoweb.DNN.Modules.NB_Store.GatewayPayPal</assembly>
<class>NEvoWeb.Modules.NB_Store.Gateway.GatewayPayPal</class>
</gateway>
<gateway ref="PayU">
<name>PayU</name>
<assembly>Nevoweb.DNN.ExampleGateway</assembly>
<class>NEvoWeb.Modules.NB_Store.Gateway.BaseGateway.ExampleGateway</class>
</gateway>
</gateways>
</root>
PayU.gateway:<root>
<paymentURL>https://secure.payu.co.za/rpp.do?PayUReference=[REF]</paymentURL>
<Username>xyz</Username>
<Password>xyz</Password>
<SafeKey>{xyz}</SafeKey>
<ButtonImageURL>/DesktopModules/NB_Store/img/BANKCHEQUE.gif</ButtonImageURL>
<ReturnURL>http://localhost/tabid/89/stg/5/PayUExit/RETURN/Default.aspx</ReturnURL>
<ReturnCancelURL>http:/localhost/tabid/89/stg/5/PayUExit/CANCEL/Default.aspx</ReturnCancelURL>
<MerchantLanguage>en</MerchantLanguage>
<Currency>ZAR</Currency>
<CartName>[CARTID]</CartName>
<MerchantReference>(xyz-Purchase)</MerchantReference>
<first_name>[BAddress:AddressName]</first_name>
<last_name>[BAddress:AddressName2]</last_name>
<address1>[BAddress:Address1]</address1>
<address2>[BAddress:Address2]</address2>
<city>[BAddress:City]</city>
<country>[BAddress:CountryCode]</country>
<phone>[BAddress:Phone1]</phone>
<email>[OrderUser:Email][Order:Email]</email>
</root>
I also have the compiled Release files in the DNN website's bin directory. They are named as per their assemblies. This was after first compiling the debug version.The error I am getting comes after clicking the Pay Link, but before my custom code is reached. It is shown below:
A critical error has occurred. The parameter 'address' cannot be an empty string. Parameter name: address
The template from the billing address has been changed to only include First, Last Name, Address 1 and Cellphone. Not sure if that is related.The checkout settings are:
Payment Gateway: PayU
Encapsulated Gateway: Checked
Gateway Display Method: Standard Only
Any insights?
Help much appreciated!