Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreCreating an additional Payment gatewayCreating an additional Payment gateway
Previous
 
Next
New Post
3/29/2010 8:35 PM
 

Hello, Bonjour, dear Gilles.

I have the two ends of a rope but cannot make the connection.

On one end I know what my Gateway needs: 2 pages. One to send via POST at least 5 fields, and another one they will call to send the results of the transaction. I can do that in ASP or PHP, even I guess in .Net. But... DNN is another story.

On the other end I have Store Module. I followed your guide to install the module with sources, using DNN 4.4.1 and, with minor issues, it worked perfectly.

Now I know where are the files for the Payment Gateway Providers (I know there are 2 folders, one with the real source and another with the resulting aspx and resx files). And I know those files really are part of a "project" inside the solution.

BUT... Where should I put my "fields to be sent", and where should I put the logic to receive the fileds sent by my Bank, and act according to it, changing the state of the Order. I just cannot figure it out. There are so many files there. ("My God, this is full of... code!", as in 2001- a space Odissey). ;)

I'm kinda good programmer, but certainly not very "fluent" in these .net piping, specially DNN .net piping. I've made some Modules before, even using DAL+ to connect to SQL Database (following Michael Washington's tutorials), but these sets of files and folders, some of them 'automatically generated' definitely puzzled me.

So... my very admired and dear Gilles, what do you think I can do? Would you like to help me creating this payment gateway directly, or do you have any link where I can find how to create that kind of "Project" you have there?

Thanks for your help.

Oh. BTW: The payment gateway I'm planning to use is widely used in latin America, and is extremely less complicated and restrictive than PayPal or Authorize.net. So it would give a great increase in coverage to the Store module.

 
New Post
3/30/2010 11:27 AM
 

Hola Adrian ;-)

It depends on how your gateway works! If card informations are collected on your web site you should start to copy the Authorize provider as a base. If your customer is redirected to the gateway web site to enter his card informations, then you should start with the PayPal provider.

To create a new provider, first create a new folder under ...\DesktopModules\Store\Cart\Providers\GatewayProviders and name it XXXProvider (where XXX is the company gateway name). Second copy the base code from PayPal or Authorize provider depending how your own gateway works. Rename all references to PayPal or Authorize in the code. Create another folder with the same name under ...\DesktopModules\Store\Providers\GatewayProviders. Finaly, create both same folders under ...\DesktopModules\Store\Store_02.00.00_Source. Edit the post build commands to point on those folders. Post build commands are used to copy the required files to the right folders. Add the new project to the solution and build it to verify if everithing is allright.

You can send me your technical documentations from your gateway at glepigocher AT yahoo.fr, I will try to guide you.

Gilles


We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
New Post
3/31/2010 5:17 AM
 

Bonjour... again. :)

Dear Gilles,

I've just sent you an email with the information about the payment process my Gateway uses.

In the email I also made a review of the steps I followed, guided by your precise instructioins, to finally obtain the PaymentGateway Project smoothly inserted in the Store Solution. It worked like a charm. Thanks a lot!

Now I can see it more feasible. Great!

Well, by now, just to say THANKS again.

Best Regards.
Adrián.

 

 
New Post
3/29/2011 3:41 PM
 
Hello dear Gilles

I followed your steps until this point: Rename all references to PayPal or Authorize in the code. Create another folder with the same name under ...\DesktopModules\Store\Providers\GatewayProviders.......

I'm sorry but I do not understand what you mean this part: Finaly, create both same folders under ...\DesktopModules\Store\Store_02.00.00_Source. Edit the post build commands to point on those folders. Post build commands are used to copy the required files to the right folders. Add the new project to the solution and build it to verify if everithing is allright


when I'm in the administrative area of the store to choose the the payment gateway that I added I got this error message:

Unable to cast object of type 'ASP.desktopmodules_store_providers_gatewayproviders_aprovafacilprovider_aprovafaciladmin_ascx' to type 'DotNetNuke.Modules.Store.Components.StoreControlBase'

AprovaFacilProvider is the name of the payment gateway I wish add in my store

Thanks for your help.

 
New Post
3/30/2011 5:55 AM
 
Hi,

The folder 'Store_02.00.00_Source' is used to store the files needed to create your packages. It's not a requirement, just a facility. Each project have several post build command used to copy some files to the right folders. Open the Store solution, select a project and do a right click on it then select 'Properties'. Select the third tab to the left probably named 'Build Events' or something like that (sorry  but I don't know the right name because my VS is in French). In the second text box, you will found the post build commands. Please read your VS documentation about this subject for details.

Your error message is cristal clear for me! :-) Your control AprovalFacilAdmin.ascx DO NOT inherit from the StoreControlBase class, this is a requirement!

Gilles

We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreCreating an additional Payment gatewayCreating an additional Payment gateway


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out