问题描述
希望你做得好。我想在 PHP/Codeigniter 中集成 moyasar 支付网关,但我一次又一次地面临同样的问题(500 内部错误。我们很抱歉。发生意外的服务错误)。 有没有人可以找出这个错误。帮助将不胜感激。 图像错误在这里! Error Image 简单代码如下..
<form accept-charset="UTF-8" action="https://api.moyasar.com/v1/payments.html" method="POST">
<input type="text" name="source[name]" />
<input type="text" name="source[number]" />
<input type="text" name="source[month]" />
<input type="text" name="source[year]" />
<input type="text" name="source[cvc]" />
<input type="hidden" name="callback_url" value="http://localhost/test/madas.PHP" />
<input type="hidden" name="publishable_api_key" value="my_publish_api_key" />
<input type="hidden" name="amount" value="10000" />
<input type="hidden" name="source[type]" value="mada" />
<button type="submit" id="">Purchase</button>
</form>
解决方法
source[type]
值应为 creditcard
并且它接受 Mada、Visa 和 MasterCard。