我遇到了paypal为定期付款打开的弹出窗口的问题。太小了。 Paypal页面显示了一个"您的订单摘要"这填补了整个弹出窗口。用户会感到困惑并且没有意识到要登录,您必须向右滚动才能看到表单。我一直在寻找一种方法来禁用/隐藏该订单摘要,以便表单可以显示,或者甚至让页面显示为常规的一次性付款,只是登录表单。
我不想要这个:http://imgur.com/xf1aFhn
我想要这个:http://imgur.com/qzHHEL9
使用集成向导代码:
<script>
var dg = new PAYPAL.apps.DGFlow(
{
trigger: 'paypal_submit',
expType: 'instant'
//PayPal will decide the experience type for the buyer based on his/her 'Remember me on your computer' option.
});
</script>
和代码:
function CallShortcutExpressCheckout( $paymentAmount, $currencyCodeType, $paymentType, $returnURL, $cancelURL, $paymentStartdate)
{
$nvpstr="&AMT=". $paymentAmount;
$nvpstr .= "&PAYMENTACTION=" . $paymentType;
$nvpstr .= "&BILLINGAGREEMENTDESCRIPTION=".urlencode("Denise Austin 360 Weekly Payments");
$nvpstr .= "&BILLINGTYPE=RecurringPayments";
$nvpstr .= "&RETURNURL=" . $returnURL;
$nvpstr .= "&CANCELURL=" . $cancelURL;
$nvpstr .= "&CURRENCYCODE=" . $currencyCodeType;
$nvpstr .= "&PROFILESTARTDATE=" . urlencode($paymentStartdate);
$nvpstr .= "&NOSHIPPING=1";
$nvpstr .= "&SOLUTIONTYPE=Sole";
$resArray=hash_call("SetExpressCheckout", $nvpstr);
$ack = strtoupper($resArray["ACK"]);
if($ack=="SUCCESS" || $ack=="SUCCESSWITHWARNING")
{
$token = urldecode($resArray["TOKEN"]);
$_SESSION['TOKEN']=$token;
}
return $resArray;
}