|
123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- if (!defined('DEDEMEMBER')) exit('dedebiz');
-
- require_once(DEDEMEMBER."/paycenter/alipay/alipay_config.php");
- require_once(DEDEMEMBER."/paycenter/alipay/alipay_service.php");
- if ($payment_exp[2] < 0) $payment_exp[2] = 0;
- $piice_ex = $price * $payment_exp[2];
- $parameter = array(
- "service" => "trade_create_by_buyer",
- "partner" => $partner,
- "return_url" => $return_url,
- "notify_url" => $notify_url,
- "_input_charset" => $_input_charset,
- "subject" => $ptype,
- "body" => $pname,
- "out_trade_no" => $buyid,
- "logistics_fee" => '0.00',
- "logistics_payment" => 'BUYER_PAY',
- "logistics_type" => 'EXPRESS',
- "price" => sprintf("%01.2f", $price),
- "payment_type" => "1",
- "quantity" => "1",
- "show_url" => $show_url,
- "seller_email" => $seller_email
- );
- $alipay = new alipay_service($parameter, $security_code, $sign_type);
- $link = $alipay->create_url();
- echo '<html>
- <head>
- <title>转到支付宝支付页面</title>
- </head>
- <body onload="document.alipay.submit();">
- <form name="alipay" action="'.$link.'" method="post">
- </form>
- </body>
- </html>';
- exit;
|