【问题标题】:paypal payment method for debit and credit card using php使用php的借记卡和信用卡的paypal付款方式
【发布时间】:2016-03-05 01:45:46
【问题描述】:

我在我的网站中集成了 Paypal REST API (rest-api-sdk-php) 支付网关。用借记卡和信用卡付款。我用沙盒测试了它,它工作正常。我的实时凭证正在等待直接卡访问的一些原因。

            //paypal
            $cc_first_name      = (isset($_POST['card_holder_name']))? $_POST['card_holder_name'] : die("First Name Empty");
            $cc_last_name       = (isset($_POST["card_holder_last_name"]))? $_POST["card_holder_last_name"] : die("Last Name Empty");
            $cc_card_type       = (isset($_POST["credit_card_type"]))? $_POST["credit_card_type"] : die("Credit Card type Empty");
            $cc_card_number     = (isset($_POST['card_number']))? $_POST['card_number'] : die("Credit Card Number Empty");
            $cc_card_month      = (isset($_POST['expiry_month']))? $_POST['expiry_month'] : die("Expire Month Empty");
            $cc_card_year       = (isset($_POST['expiry_year']))? $_POST['expiry_year'] : die("Expire Year Empty");
            $cc_card_cvv2       = (isset($_POST['cvvCode']))? $_POST['cvvCode'] : die("CVV month empty");
            //paypal        


if($_POST["payment_method"] == "credit_card"){
    $credit_card = array(
        'type'=> $cc_card_type, 
        'number' => $cc_card_number, 
        'expire_month'=>$cc_card_month, 
        'expire_year'=>$cc_card_year, 
        'cvv2'=>$cc_card_cvv2,
        'first_name'=>$cc_first_name,
        'last_name'=>$cc_last_name
        );
    //pay directly using credit card information.
    $result = pay_direct_with_credit_card($credit_card, PP_CURRENCY , $total_amount, $items, '') ;
}

在该 API 代码中,它仅使用信用卡进行检查。他们不使用任何功能来接受借记卡。我需要的是。这个code sn-p可以接受借记卡支付吗?

【问题讨论】:

    标签: php paypal


    【解决方案1】:

    只要在 Live 环境中有效,它对借记卡的使用应该是一样的。

    【讨论】:

      猜你喜欢
      • 2014-09-05
      • 2012-09-29
      • 2021-04-26
      • 2012-12-31
      • 2015-01-26
      • 2017-02-05
      • 1970-01-01
      • 2013-05-14
      • 2016-01-28
      相关资源
      最近更新 更多