Jump to content

CI save data in table via pp checkout


sasori

Recommended Posts

Hi, am using Codeigniter

My app goes like this,

1) user selects a topic from a dropdown

2) user is able to type some text/questions inside a text area under that dropdown

3) user clicks paypal checkout button and pay for asking a question

 

question is, how will i save the id of the selected topic and the typed question

if my submit button is calling paypal's processing stuff and not my own ci controller action thing ?

 

here's the code of the submit/checkout button of paypal

<form action=https://sandbox.paypal.com/cgi-bin/webscr method=post>
<input type=hidden name=cmd value=_cart>
<input type=hidden name=business value="[email protected]">
<input type=hidden name=item_name value="test">
<input type=hidden name=item_number value="1">
<input type=hidden name=amount value="<?php foreach($query3->result() as $row){echo $row->price; } ?>">
<input type=hidden name=quantity value="1" disabled="disabled">
<input type=hidden name=currency_code value="USD">
<input type="hidden" name="return" value="http://your-website.com/after-payment-page.html" / >
<input type=image id="checkout" src="https://www.paypal.com/images/x-click-but6.gif" Border="0" name=submit><br>
<input type=hidden name=add value=1></form>

Link to comment
https://forums.phpfreaks.com/topic/238436-ci-save-data-in-table-via-pp-checkout/
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.