gpt4 book ai didi

Paypal 说先看下一页,再付款 - 但之后就直接付款了

转载 作者:太空宇宙 更新时间:2023-11-03 16:10:29 25 4
gpt4 key购买 nike

我们已将 ExpressCheckout 集成到我们的网站中。现在我们有一个问题,在登录 paypal 后的页面上说(翻译):请查看此信息。在下一页上,您可以发送付款。但是如果你点击下一步按钮,就没有下一页了。付款直接发送。这里出了什么问题?

lg马努

最佳答案

可能您无法将真实字段发送到 paypal,跟随变量为 ;

$item_name      = $product->model;
$item_number = $order['id'];
$item_amount = str_replace(',','.', format_number($calculate['total_price']));

# than account information of paypal

$paypal_inf = $paypal_->row(); $paypal_email = $paypal_inf->paypal_key;
$paypal_value = $paypal_inf->paypal_value;

# Url information
$return_url = base_url().'tr/odeme/adim_5/paypalsuccess';
$cancel_url = base_url().'tr/odeme/adim_5/paypalfailed';
$notify_url = base_url().'tr/odeme/adim_5/paypal';

# Firstly Append paypal account to querystring
$querystring = "?business=".urlencode($paypal_email)."&";

# adding information of following variables at top as you can see
$querystring .= "item_number=".urlencode($item_number)."&";
$querystring .= "item_name=".urlencode($item_name)."&";
$querystring .= "amount=".urlencode($item_amount)."&";

# loop for posted values and append to querystring (as address,phone or more detailed informaation)

foreach($_POST as $key => $value){
$value = urlencode(stripslashes($value));
$querystring .= "$key=$value&";
}

// Append paypal return addresses
$querystring .= "return=".urlencode(stripslashes($return_url))."&";
$querystring .= "cancel_return=".urlencode(stripslashes($cancel_url))."&";
$querystring .= "notify_url=".urlencode($notify_url);

# And

redirect('https://www.paypal.com/cgi-bin/webscr'. $querystring, 'location', 301);

在表单端添加一些字段,下一行将接收到

echo form_hidden('cmd','_xclick');
echo form_hidden('no_note','1');
echo form_hidden('lc','TR');
echo form_hidden('currency_code',$exchange);
echo form_hidden('bn','PP-BuyNowBF:btn_buynow_LG.gif:NonHostedGuest');

如果您使用自动重定向,这将有所帮助(添加您在 paypal 上创建的按钮 ID)

echo form_hidden('cmd','_s-xclick');
echo form_hidden('hosted_button_id',$paypal_button_id); // for ex. FK5RYJS6WRJVL

希望对你有帮助

关于Paypal 说先看下一页,再付款 - 但之后就直接付款了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17534222/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com