Zaakpay Extension in Yii Framework

Back to Blog
zaakpay payment gateway extension in yii framework - ezeelive technologies

Zaakpay Extension in Yii Framework

1. Click here to Download Zaakpay extension, extract and Copy and paste zaakpay folder with all the files in Protected -> Extension folder
2. Register on www.zaakpay.com and verify your account
3. Go to in Dashboard -> Integration and Click on URLs & Keys Tab

zaakpay setup basic integration key and url - ezeelive technologies

4. Create Controller and View folder, here controller name is Zaakpay for example.
5. Create below mention action and define access permission (In my case it is “allow all users”).

public function actionPosttozaakpay()
{
echo $this->renderPartial('postzaakpay');
Yii::app()->end();
}
public function actionResponse()
{
echo $this->renderPartial('response');
Yii::app()->end();
}
public function actionReturn_url()
{
//return response url defined in zaakpay account
}

public function actionCheckout()
{
//checkout page with zaakpay form
$this->render('checkout');
Yii::app()->end();
}

6. Create checkout.php in zaakpay view folder, add below code in the page HTML body section.

function zaakpay_frm()
var frm = '';
frm += '<form id="zkpayform" style="display:none;" method="post">';
frm += '<input type="text" id="zkpaymerchantIdentifier" name="merchantIdentifier" value="merchant indentifier key" />';
frm += '<input type="text" id="zkpayorderId" name="orderId" />';
frm += '<input type="text" id="zkpaybuyerEmail" name="buyerEmail" value="" /> ';
frm += '<input type="text" id="zkpaybuyerFirstName" name="buyerFirstName" value="" /> ';
frm += '<input type="text" id="zkpaybuyerLastName" name="buyerLastName" value="" /> ';
frm += '<input type="text" id="zkpaybuyerAddress" name="buyerAddress" value="" /> ';
frm += '<input type="text" id="zkpaybuyerCity" name="buyerCity" value="" />';
frm += '<input type="text" id="zkpaybuyerState" name="buyerState" value="" />';
frm += '<input type="text" id="zkpaybuyerCountry" name="buyerCountry" value="" /> ';
frm += '<input type="text" id="zkpayPincode" name="buyerPincode" value="" /> ';
frm += '<input type="text" id="zkpaybuyerPhoneNumber" name="buyerPhoneNumber" value="" />';
frm += '<input type="text" id="zkpaytxnType" name="txnType" value="1" />';
frm += '<input type="text" id="zkpayzpPayOption" name="zpPayOption" value="1" />';
frm += '<input type="text" id="zkpaymode" name="mode" value="0" /> ';
frm += '<input type="text" id="zkpaycurrency" name="currency" value="INR" />';
frm += '<input type="text" id="zkpayamount" name="amount" value="" /> ';
frm += '<input type="text" id="zkpaymerchantIpAddress" name="merchantIpAddress" value="<?php echo $_SERVER['REMOTE_ADDR']; ?>" />';
frm += '<input type="text" id="zkpaypurpose" name="purpose" value="1" />';
frm += '<input type="text" id="zkpayproductDescription" name="productDescription" value="" />';
frm += '<input type="text" id="zkpayproduct1Description" name="product1Description" value="" />';
frm += '<input type="text" id="zkpayproduct2Description" name="product2Description" value="" />';
frm += '<input type="text" id="zkpayreturnUrl" name="returnUrl" value="" />';
frm += '<input type="text" id="zkpaytxnDate" name="txnDate" value="<?php echo date('Y-m-d'); ?>" />';
frm += '</form>';
$('body').append(frm);

$('#zkpayreturnUrl').val('<?php echo Yii::app()->createAbsoluteUrl('/zaakpay/return_url'); ?>?additional_parameters=' + additional_values);
$('#zkpayform')[0].action = '<?php echo Yii::app()->createUrl('/zaakpay/posttozaakpay'); ?>';
$('#zkpayform')[0].submit();
}

Add all require input value and call zaakpay_frm() for document.ready (using jquery) or body onLoad.

If you face any problem in, setup or execution, Please fill free to contact us on +91 9822117730

Summary
Zaakpay Extension in Yii Framework - Ezeelive Technologies
Article Name
Zaakpay Extension in Yii Framework - Ezeelive Technologies
Description
Zaakpay extension in yii framework, zaakpay payment gateway integration, yii developer in india, ccavenue, payu, ebs payment system
Author
Publisher Name
Ezeelive Technologies
Publisher Logo

Share this post

Comments (5)

  • bfaeex Reply

    Hi there, I found your web site via Google at the same time as looking for a similar matter, your web site came up, it appears good. I have bookmarked it in my google bookmarks.

    March 16, 2014 at 6:42 pm
  • wz Reply

    Wow, wonderful blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your website is fantastic, let alone the content!

    March 17, 2014 at 1:02 am
  • iamufq Reply

    Hi to every single one, it’s really a good for me to pay a quick visit this site, it includes valuable Information.

    March 17, 2014 at 8:37 am
  • vgcrud Reply

    Pretty section of content. I just stumbled upon your site and in accession capital to assert that I acquire in fact enjoyed account your blog posts. Anyway I’ll be subscribing to your feeds and even I achievement you access consistently rapidly.

    March 17, 2014 at 5:22 pm
  • lnavs Reply

    Everything is very open with a really clear clarification of the challenges. It was definitely informative. Your site is very helpful. Many thanks for sharing!

    March 17, 2014 at 7:46 pm

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to Blog