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 请问有人会紧聚焦相关的matlab知识嘛?
  • ¥50 yalmip+Gurobi
  • ¥20 win10修改放大文本以及缩放与布局后蓝屏无法正常进入桌面
  • ¥15 itunes恢复数据最后一步发生错误
  • ¥15 关于#windows#的问题:2024年5月15日的win11更新后资源管理器没有地址栏了顶部的地址栏和文件搜索都消失了
  • ¥100 H5网页如何调用微信扫一扫功能?
  • ¥15 讲解电路图,付费求解
  • ¥15 有偿请教计算电磁学的问题涉及到空间中时域UTD和FDTD算法结合的
  • ¥15 three.js添加后处理以后模型锯齿化严重
  • ¥15 vite打包后,页面出现h.createElement is not a function,但本地运行正常