Add CashU payment gateway to Wordpress Woocommerce - php

I'm having trouble adding CashU payment in WooCommerce (version 2.3.6) Wordpress (version 4.1.1)
I've already googled my query, but no luck. I found this guide but I don't know where to put it or where should I start.
I tried hardcoding the payment option but the backend does not allow me to continue because the option does not exist. I'm stuck in add_action and do_action functions, I think if I can find that function I can add an exception for my CashU payment.
My expertise is on cakephp and other php framework. I don't have any experience in using Wordpress or any other platform similar to it, but my boss insisted I should do this work and add the cashu payment.. I don't have other choices but to follow.
Any idea would be much appreciated or any other payment that might be similar to this. Thanks in advance

I just finished making a Woocommerce Payment gateway too.. it took me about 15 hours from scratch.
I started with this guide.
http://www.sitepoint.com/building-a-woocommerce-payment-extension/
and this guide:
http://www.mrova.com/lets-create-a-payment-gateway-plugin-payu-for-woocommerce/
I actually learnt the most from looking through the code from these two professional ones:
https://github.com/Paymium/WooCommerce/blob/master/checkout.php
https://github.com/tubiz/voguepay-woocommerce-payment-gateway/blob/master/voguepay-woocommerce-payment-gateway.php
my entire code for the whole thing ended up being just one file. and just press "activate" in the plugins window of wordpress for your gateway.
/wp-content/plugins/woocommerce-payment-gateway-kiwipay/woocommerce-payment-gateway-kiwipay.php

Try this sdk for cashu https://github.com/AlaaKanaan/payment-getaway-soap-sdk
The SDK include this features:
Standard
Premier
Basic security token
Enhanced security token
Standard StandingOrder
Refund
Merchant Services
install:
composer require alaakanaan/cashu-soap-php-sdk:dev-master
use Cashu\CashuClient;
$client = new CashuClient();
$payment = new \Cashu\lib\model\Payment();
$payment->setAmount(200);
$payment->setCurrency('USD');
$payment->setDisplayText('test payment');
$payment->setLanguage('en');
$payment->setSessionId('11');
$payment->setTxt1('test text 1');
$html=$client->getPremierMethod($payment->getTransactionCode());
return $html;

Related

Wordpress QNS Booking and PayU Payment gateway integration

I have a wordpress plugin called QNS booking system in which there is only 2 payment methods 1) Paypal 2) Direct Bank Transaction but I like to add another transaction namely PayU which is very popular in India. I am not much into php but my client needs it. So I have added some coding which you can help me through to get an idea and what are the ways which this requirement can be achieved.
Note: payu is available for woo commerce but not for booking systems
PayU Woocommerce Integration
QNS Booking Plugin
I just need only the PayU Payment Gateway others can be optional
Please review the codings and give me a solution guys
Thanks in Advance
To
integrate Payumoney in woocommerce "PayU" provides a simple plugin to
integrate. Install it, enter your credential and that’s all.. Done..
If you want to integrate it in wordpress non e-commerce site, it needs customization. Install PHP kit provided by payumoney.
The
most important you have to pass the values of all required parameter as
mentioned in their documentation. Pass these values with $_POST. That’s
it.
I have done the same thing in Hotel Booking system. Its working fine.If you need any further help, contact me on aryamaae.com

Integrating paypal standatd payment gateway issue using twig template engine php

Please can anyone tell me how to integrate standard paypal payment gateway in twig template engine(framework) using PHP.
Please help me. Right now i am in big trouble and even i am beginner.
The quickest and easiest thing to get basic payments working on your site would be to use PayPal Standard buttons. You can create them from within your PayPal account profile, and then it just gives you a snippet of HTML to copy/paste into your site where you'd like the button to show up.
Since you're using PHP, if you want to get a little more advanced with the payment integration you could go with PayPal Express Checkout API's instead of Standard. The documentation can be a little bit daunting, however, with the use of my PHP class library for PayPal you can handle everything very easily with nothing more than the knowledge of working with PHP array data.

Adding A New Payment Gateway (Structure)

I need to integrate PayU payment gateway (via Omnipay) into one of my ExpressionEngine2 (2.8.1) websites thus I need to write this gateway for the shopping cart (Expresso-Store) I am using in my project.
To achieve this, I am looking at the other payment gateways that is already included in the store addon and trying to make sense of what is going on there and trying to follow those examples. Unfortunately there is almost no comments in the existing gateways and I would really like to know what happens in each class rather than 'just following examples'. I see that most of these have pretty much the same structure, although in some gateways there is a class or function missing, or the one gateway handles things different to another gateway.
I also know that I need to write an extension to install this new gateway as the copy/paste method is a no no when you need to update your gateway.
My main concern is what happens in the getData() and sendData() functions of the PurchaseRequest class and how do I know which classes/functions to include?
Any help will do. Thanks in advance
This question is probably better suited to the ExpressionEngine stack exchange site, but anyways...
The Omnipay readme has some basic instructions to create a new gateway. A complete example is probably a little beyond a SO answer, but basically the getData() method formats the request to send to the gateway, and the sendData() sends it.
As for integrating with Store/EE, you can look at this Beanstream gateway to see how to create a new extension containing the extra gateway.

Sagepay payment gateway integration for Eshop (Wordpress)

I have a site which is using the Eshop plugin for Wordpress.
My client requires to take payments using Sagepay, this options is not available to set within the plugin.
I cannot seem to find any extension plugins to enable this feature, I would write my own but do not know much PHP.
I have found a 'template' for custom payment gateways which Eshop have provided. Is it possible to use this to extend Eshop to use Sagepay? Alternatively do you know of a plugin for this?
Note: I understand this may be off topic, but I would not ask if I was not in real need. Thanks in advance.
Which integration is your customer willing to use? The easier to integrate is FORM but you have DIRECT and SERVER as well.
Regards,
Pablo

how to integrate "giropay" and "sofort-banking" payment in WordPress - woo-commerce?

I am working for German E commerce website, i need to integrate 2 famous payment methods "giro-pay" and "sofortbanking" in WordPress- woo-commerce plugin.
I already asked this to support team of woo commerce but didn't get any reply. So my last hope SO. I know if I get API then may be I can integrate.
If anyone is aware with this problem then please let me know.
Woothemes run in their own layer on top of wordpress, and all eCommerce themes run on top of that layer.
It is not hard to follow up a tutorial and implement it in wordpress, but you should really get an answer from WooThemes.
Those guys are great and I had no problems is any issue in the pass. Send them a direct email (use the panic button), or send them a tweet, they see them all.
And, as a paid customer you do get a better support as well.
or, if you really do not want that way, you can always search for existing wordpress plugins that have your providers, for example, MultiSafepay has one for Giro Pay.

Categories