Implements Cpay payment gateway for your WooCommerce shop
Implements cPay Payment Gateway CaSys, for your WooCommerce shop to make payments.
You can check the payment documentation here.
If the transaction is successful, the order status will be changed to processing. If the transaction failed, the order status will be changed to canceled. If something is wrong with the connection between your server and the cPay server the order status will be changed to on-hold. After successful transaction the customer is redirected to the default WP success page.
This section describes how to install the plugin and get it working.
e.g.
/wp-content/plugins/plugin-name
directory, or install the plugin through the WordPress plugins screen directly.casys_order_currency
casys_order_total
add_filter('casys_order_total', function( $total ) { return $total * 61.5; } );
add_filter('casys_order_currency', function( $currency ) { return 'MKD'; } );
cpay_payment_endpoint