dsjzmrz78089 2014-07-29 10:45
浏览 18
已采纳

免费和付费注册访客用户在我的网站使用paypal使用PHP请帮助我[关闭]

In my site i want to free and paid membership.

I am new in paypal integration. How to use paypal payment system please help me.

After insert this detail in database and how to redirect on paypal.

Duration : 1year, 2year and lifetime membership Prize :$10 ,$20, $100

Here is my PHP code

function payment_info()
{
global $obj;
    $jobseeker_id = $_SESSION['jobseeker_logged_in_id'];

        $s=$obj->FetchObject("SELECT * FROM candidate_registration WHERE jobseeker_id='".$jobseeker_id."'");
        $fname =$s->candidate_fname;
        $candidate_lname =$s->candidate_lname;
        $candidate_name =$fname.' '.$candidate_lname; 
        $candidate_current_location =$s->candidate_current_location;
        $candidate_mob =$s->candidate_mob;
        $candidate_dob =$s->candidate_dob;
        $candidate_gender =$s->candidate_gender;
        $email_id =$s->email_id;

        $duration = $_REQUEST['item_name'];
        $pid = $_REQUEST['item_number'];
        $prize = $_REQUEST['amount'];
        $sql_data_array=array('pid'=>$pid,
                              'jobseeker_id'=>$jobseeker_id,
                              'duration'=>$duration,
                              'prize'=>$prize,
                              'email_id'=>$email_id,
                              'jobseeker_name'=>$candidate_name,
                              'candidate_current_location'=>$candidate_current_location,
                              'candidate_mob'=>$candidate_mob,
                              'candidate_gender'=>$candidate_gender,
                              'candidate_dob'=>$candidate_dob,
                              'membership_status'=>'1',
                              'membership_date'=>'now()');
    $obj->Insert('jobseeker_member',$sql_data_array);
    $_SESSION['success']="user detail added successfully";  
    header("location:");
}
  • 写回答

1条回答 默认 最新

  • dongzhen7108 2014-07-29 10:51
    关注

    on the above code after this line $obj->Insert('jobseeker_member',$sql_data_array); you want to set your paypal integration which are redirect to paypal with all the elements in paypal.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 怎样才能让鼠标沿着线条的中心线轨迹移动
  • ¥60 用visual studio编写程序,利用间接平差求解水准网
  • ¥15 Llama如何调用shell或者Python
  • ¥20 谁能帮我挨个解读这个php语言编的代码什么意思?
  • ¥15 win10权限管理,限制普通用户使用删除功能
  • ¥15 minnio内存占用过大,内存没被回收(Windows环境)
  • ¥65 抖音咸鱼付款链接转码支付宝
  • ¥15 ubuntu22.04上安装ursim-3.15.8.106339遇到的问题
  • ¥15 blast算法(相关搜索:数据库)
  • ¥15 请问有人会紧聚焦相关的matlab知识嘛?