[英]CCAvenue PHP Integration with Form
Need help in technical implementation. 在技术实施方面需要帮助。 Currently we have on our website drop down list to select product and then click on pay now using Paypal.
目前,我们在我们的网站下拉列表中选择产品,然后立即使用Paypal单击“付款”。
Want to implement similar in CCAvenue. 想要在CCAvenue中实现类似。 Kindly advise ( created a product on ccAvenue console and got the product ID).
请告知(在ccAvenue控制台上创建产品并获得产品ID)。 Looked at CCAvenue documentation but didn't find any implementation similar to this.
查看了CCAvenue文档,但未找到与此类似的任何实现。
Example of current paypal implementation 当前贝宝实施示例
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="XXXXXX">
<table>
<tr><td><input type="hidden" name="on0" value="test">test</td></tr><tr><td><select name="os0">
<option value="Option1"> $60.00 USD</option>
<option value="Option2">$160.00 USD</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
After Creation of account in ccavenue, you can get shopcart values, currency and valid url through which you can post this. 在ccavenue中创建帐户后,您可以获取shopcart值,货币和有效的URL,您可以通过这些URL进行发布。 Below is sample code for reference
下面是示例代码供参考
<form name="linkForm" method="POST" action="" id="form">
<select name="mydropdown" class="styled" onchange="document.getElementById('form').setAttribute('action', this.value); document.linkForm.submit(); ">
<option value="https://secure.ccavenue.com/transaction/txn/shopcart/XXX,XXX,INR,http://yoururl.com">Select Option</option>
<option value="https://secure.ccavenue.com/transaction/txn/shopcart/
YYY,YYYY,INR,http://yoururl.com">Option 1</option>
<option value="https://secure.ccavenue.com/transaction/txn/shopcart/
YYY,YYYY,INR,http://yoururl.com">Option 2</option>
<option value="https://secure.ccavenue.com/transaction/txn/shopcart/
YYY,YYYY,INR,http://yoururl.com">Option 3</option>
</select>
</form>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.