Title: Custom Gateway Plugin
Last modified: February 2, 2017

---

# Custom Gateway Plugin

 *  [koubeissyibrahim](https://wordpress.org/support/users/koubeissyibrahim/)
 * (@koubeissyibrahim)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/custom-gateway-plugin/)
 * Hello,
 * I’m trying to build a Form-based gateway plugin such as paypal for example,
    
   I read the documentation on the woocommerce website and i’m able to create the
   basic plugin and activate it from the checkout settings
 * What i’m finding hard it to understand the whole process, and what are the steps
   i should follow for example
    1- where do i set the URL of my gateway 2- how to
   handle the response of the gateway 3- if i’m redirected to a thank you page after
   getting back from the gateway how do i create the order and empty the cart
 * is there any detailed tutorials about “FORM BASED GATEWAY” all i can find is 
   tutorials for other kind of gateways like cheque
 * it’s really urgent
 * Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Riaan K.](https://wordpress.org/support/users/riaanknoetze/)
 * (@riaanknoetze)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/custom-gateway-plugin/#post-8728520)
 * Perhaps the following resources will help:
    - [https://docs.woocommerce.com/document/payment-gateway-api/](https://docs.woocommerce.com/document/payment-gateway-api/)
    - [https://www.skyverge.com/blog/how-to-create-a-simple-woocommerce-payment-gateway/](https://www.skyverge.com/blog/how-to-create-a-simple-woocommerce-payment-gateway/)
    - [http://www.ibenic.com/how-to-create-a-custom-woocommerce-payment-gateway/](http://www.ibenic.com/how-to-create-a-custom-woocommerce-payment-gateway/)
    - [https://www.sitepoint.com/building-a-woocommerce-payment-extension/](https://www.sitepoint.com/building-a-woocommerce-payment-extension/)
 * 1) Depends on the gateway you’re trying to build it for; This will be supplied
   by the gateway.
    2) Depends on the response sent (if any); 3) See resources above.
 *  Thread Starter [koubeissyibrahim](https://wordpress.org/support/users/koubeissyibrahim/)
 * (@koubeissyibrahim)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/custom-gateway-plugin/#post-8732494)
 * Thanks Riaan for the answer,
 * very helpful links, but i still need to understand one thing, the gateway i’m
   using is Form-based so i need to call a URL where i send some required data (
   merchant ID, security hashs, …) along with the total amount to be paid this would
   open a new tab in the browser than it should get me back to woo where i should
   verify the payment so it’s pretty like Paypal
 * but with paypal there’s an SDK to use
    if i don’t have an SDK how do i invoke
   the URL call and when i get back using the callback url i’m being redirected 
   to a thank you page how i should verify the payment
 * thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom Gateway Plugin’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [koubeissyibrahim](https://wordpress.org/support/users/koubeissyibrahim/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/custom-gateway-plugin/#post-8732494)
 * Status: not resolved