Payment Gateways

Top  Previous  Next

delphinet2For Delphi and .NET platforms

Define Payment Gateways

 

Then define two payment gateways. One for PayPal and other "OFFLINE" to manage payments through other methods such as cash, bank transfer, money order, etc.. that normally are not instantly and requires some time to be completed. Below we can see as PayPal is defined.

 

devpanel35

 

Below we can see how is defined  the OFFLINE gateway.

 

devpanel36

 

To test PayPal there are a service called PayPal Sandbox. To use it you must modify the configuration section in the libs.php file.

 

To test with the "sandbox" use the following line:

     $paypal_url    = "https://www.sandbox.paypal.com/cgi-bin/webscr"; //Paypal Sandbox URL

 

To use the real PayPal site (live) use the following line:

      $paypal_url    = "https://www.paypal.com/cgi-bin/webscr"; //Paypal Live Site URL

 

To use the Sandbox also have to create two PayPal fictitious users,  for the vendor and the buyer.

For the Sandbox set the $paypal_email variable into libs.php with the vendor fictitious email. Then for the user payments use the fictitious email for the buyer.

 

Once defined the payment gateways we need to link it with the product.

 

 

devpanel37

 

 

Below we see already linked both payment gateways:

 

 

devpanel38