【问题标题】:Beanstream Credit card payment integration in PHPPHP 中的 Beanstream 信用卡支付集成
【发布时间】:2013-10-03 23:34:19
【问题描述】:
【问题讨论】:
标签:
payment-gateway
beanstream
【解决方案1】:
如果您尝试提交信用卡购买交易,这里有一个示例
<form action="https://www.beanstream.com/scripts/process_transaction.asp" method="post">
<input type="text" name="merchant_id" value="YOUR-MERCHANT-ID" />
<input type="text" name="trnAmount" value="5.00" />
<input type="text" name="paymentMethod" value="CC" />
<input type="text" name="trnCardOwner" value="John Doe" />
<input type="text" name="trnCardType" value="VI" />
<input type="text" name="trnCardNumber" value="4030000010001234" />
<input type="text" name="trnExpMonth" value="01" />
<input type="text" name="trnExpYear" value="17" />
<input type="text" name="trnCardCvd" value="123" />
<input type="submit" id="submitButton" value="Submit Payment">
我已经包含了一个测试卡号,所以只需更新 Mercer_id 并尝试一下。或者,您可以将这些字段发布到 Beanstream 的脚本后面的代码中。有关详细信息,请参阅http://developer.beanstream.com/documentation/classic-apis/ 和 http://support.beanstream.com/