Beanstream信用卡支付在PHP中的集成

时间:2013-10-03 23:34:20

标签: payment-gateway beanstream

我无法将Beanstream集成到我的wbe页面。

我正在尝试提交包含金额,Mer ID,卡片详情,操作= https://www.beanstream.com/scripts/process_transaction.asp的表单。 它会进入beanstream页面而不会回来。

浏览器在此处停止的页面:https://www.beanstream.com/scripts/process_transaction.asp?rbCCType=Visa&trnCardNum ............

任何人都可以建议如何进行此操作。我试了几天,但没有成功。

提前致谢。

1 个答案:

答案 0 :(得分: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">

我已经包含了一个测试卡号,所以只需更新merchant_id并尝试一下。或者您可以在脚本后面发布代码,将这些字段发布到Beanstream。有关详细信息,请参阅http://developer.beanstream.com/documentation/classic-apis/http://support.beanstream.com/