我最近一直在为一个托管经销商的网站。我制作了一个表单,将用户变量传递到一个创建用户帐户的页面。
<form id="form_14" action="https://1hosting1.co.uk/order/purchase.php" method="get" target="_self" class="OBJ-1" >
<input id="user" name="user" class="OBJ-2" maxlength="32" placeholder="Username" >
<input id="pwd" name="pwd" class="OBJ-2" maxlength="32" type="password" placeholder="Password" >
<input id="submit" disabled="" class="OBJ-3" type="submit" value="Submit">
<div class="OBJ-4" id="txt_9">
<p class="Body3 P-2">
<span class="C-4">Hosting Signup</span>
</p>
</div>
<div id="txt_118">
<h4 class="Heading-4 P-3">
<span class="C-5">PASSWORD</span>
</h4>
</div>
<input id="edit_6" name="email" class="OBJ-2" maxlength="32" placeholder="Email Address">
</form>这会将变量传递给一个文件,该文件使用GET方法从变量创建帐户。然而,我想要做的是,当用户购买产品时,它也发送给paypal一个变量列表,然后将其发送到文件中。有没有办法可以做到这一点?-更新-好的,所以我决定PayPal不能满足我的需求。有没有其他可以传递PHP变量的支付网关?
发布于 2016-04-25 23:41:17
你可以像贝宝的variables docu中描述的那样设置一个callback_url。如果你想传递变量,可以把你的参数作为get参数放在url中。
或者将它们保存在会话中,如果回调是从paypal返回的,则将它们签出。
https://stackoverflow.com/questions/36844830
复制相似问题