这是我的问题。
<form name="_xclick" action="https://www.sandbox.paypal.com/in/cgi-bin/webscr" method="post" style="opacity:0;height:42px;background:red;left:0;top:0; width:100%;margin:0px;position:absolute;">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="walapaybusiness@gmail.com">
<input type="hidden" id="paypal_text" name="return" value="${request.serverUrl}/marketProducts/productBuySuccess?productId=1&flag=10"/>
<input type="hidden" name="cancel_return" value="${request.serverUrl}/dudewala/paymentSuccess" />
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="Dude dollar">
<input type="hidden" name="amount" value="10">
<input class="paypalBtn" type="image" style="height:42px;width:100%; " src="http://www.paypal.com/en_GB/i/btn/x-click-but01.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
这是我的Paypal沙箱模式表格,这是我从Paypal获得的成功网址
${request.serverUrl}/marketProducts/productBuySuccess
这里可以附上来自 Paypal 的交易ID吗?
可能是预期的网址看起来像
${request.serverUrl}/marketProducts/productBuySuccess?transactionId=123456789000
所以我可以将事务
id
提取为params.transactionId
我正在grails中这样做,所以如果您能在grails中给出我的答案将会很棒
提前致谢 :)
最佳答案
PayPal将使用Transaction ID
名称发送给txn_id
。您还可以使用其他字符,例如payer_id
等。
关于http - 如何从沙盒 Paypal 获取交易ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26841140/