朋友们,我在电子商务网站上使用paypal REST API。一切都很好。我需要的是,我必须发送用户电子邮件与购物车和付款人信息存储在贝宝。我怎么能这样做?
$items[] = array(
'name' => $product_name,
'quantity' => 1,
'price' => $cart_item['amount'],
'sku' => $current['uid'],
'currency' => 'USD'
);
$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
);
$result = pay_direct_with_credit_card($credit_card, PP_CURRENCY , $total_amount, $items, $payment_desc) ;
答案 0 :(得分:0)