How to add payment gateway to Crowdfunding Script

  Technical

To add a new payment gateway to Crowdfunding script following steps can be taken.

Step 1.

Use paypal skeleton located at /system/payment/Paypal_class.php

Step 2.

Create payment class

example

class Mygateway_payment implements payment

 

Step 3.

Add functions like

  • get_payment_code($payment_notice_id)  [Creates payment form]
  • response($request) [requests response from gateway server ]

In response you can compare response with order information and once payment is made and true following function can be used

payment_paid($payment_notice_sn$outer_notice_sn)

 

Here payment_notice_sn is system generated order_id and where as outer_notice_sn is gateway generated order_id or invoice details

  • notify($request) [optional function used to notify]
  • get_display_code [to show payment button]

 

 

 

LEAVE A COMMENT