如何设置定期付款

时间:2016-04-19 06:47:50

标签: codeigniter paypal recurring-billing

如何使用codeigniter平台在paypal中集成定期付款。任何人都可以分享一些好的教程。

1 个答案:

答案 0 :(得分:1)

 <h3>  <?php echo $this->session->userdata('site');?>&nbsp<i class="fa fa-pencil-square-o" data-toggle="modal" data-target="#activateddevices"></i></h3>

/////////////////////////////////////////////// //////////////////////

 <form id="fPayPal" method="post" name="paypal_form" action="<?= $paypal_url ?>" style="display: none">
<!-- PayPal Configuration --> 
<input type="text" name="business" value="<?= $this->prepareToDisaplay($settings_list['PayPalEmail']->Value) ?>"> <br />
<?php if($recurring) { ?>
    <input type="text" name="cmd" value="_xclick-subscriptions"><br/>
    <input type="text" name="a3" value="<?= $camp_member_info->Total ?>"><br/>
    <input type="text" name="p3" value="1"><br/>
    <input type="text" name="t3" value="M"><br/>
    <input type="text" name="src" value="1"><br/>
    <input type="text" name="srt" value="<?= $month_count ?>"><br/>
<?php } else { ?>
    <input type="text" name="cmd" value="_xclick"> <br />
<?php } ?>

<input type="text" name="custom" value="<?= $camp_member_info->ID ?>" /><br />
<input type="text" name="shopping_url" value="<?= esc_url(get_permalink()) ?>" /><br /><br />
<input type="text" name="return" value="<?= esc_url($this->get_front_url('paypal-thankyou', $location_id, $price_id)) ?>" /><br />
<br />
<input type="text" name="rm" value="2"><br />
<input type="text" name="currency_code" value="USD"><br />
<input type="text" name="lc" value="US"><br />
<input type="text" name="bn" value="toolkit-php"><br />
<input type="text" name="cbt" value="Continue"><br /><br />

<!-- Payment Page Information --> 
<input type="text" name="no_shipping" value=""><br />
<input type="text" name="no_note" value="1"><br />
<input type="text" name="cn" value="Comments"> <br />
<input type="text" name="cs" value=""><br /><br />

<!-- Product Information --> 
<input type="text" name="item_name" value="<?= $this->prepareToDisaplay($price->Name) ?>" /><br />
<input type="text" name="amount" value="<?= $this->prepareToDisaplay($camp_member_info->Price) ?>" /><br />
<input type="text" name="quantity" value="1" /><br />
<?php if($coupon !== null) { ?>
    <input type="text" name="discount_amount" value="<?= $this->prepareToDisaplay($camp_member_info->Discount) ?>" /><br />
<?php } ?>

<br />

<!-- Customer Information --> 
<input type="text" name="email" value="<?= $this->prepareToDisaplay($member->Email) ?>" /><br />
<input type="text" name="first_name" value="<?= $this->prepareToDisaplay($member->FirstName) ?>" /><br />
<input type="text" name="last_name" value="<?= $this->prepareToDisaplay($member->LastName) ?>" /><br />
<input type="text" name="address1" value="<?= $this->prepareToDisaplay($member->Address1) ?>" /><br />
<input type="text" name="address2" value="<?= $this->prepareToDisaplay($member->Address2) ?>" /><br />
<input type="text" name="state" value="<?= $this->prepareToDisaplay($member->State) ?>" /><br />
<input type="text" name="city" value="<?= $this->prepareToDisaplay($member->City) ?>" /><br />
<input type="text" name="zip" value="<?= $this->prepareToDisaplay($member->Zip) ?>" /><br /><br />



<input type="submit" value="PP" /><br />