flutterwave 定期付款不起作用

问题描述 投票:0回答:1

我有这个代码来捕获 flutterwave 的订阅付款,但它发送到他们服务器上的空白页面,有人有修复或解决方案吗?我的代码在下面,结账代码来自他们的一端 https://developer.flutterwave.com/reference/端点/订阅

<form method="POST" action="https://checkout.flutterwave.com/v3/hosted/pay">   <input type="hidden" name="payment_plan" value="106150" />   <button type="submit">Pay Now</button> </form> <form method="POST" action="https://checkout.flutterwave.com/v3/hosted/pay">   <input type="hidden" name="payment_plan" value="106150" />   <button type="submit">Pay Now</button> </form>

我尝试实现 flutterwave 现有的结帐代码

checkout subscription recurring flutterwave
1个回答
0
投票

您没有发送所有必填字段。您仅发送 payment_plan,但这不是有效字段。您必须发送有效的 public_key 和其余必填字段。例如。这值工作:

<form method="POST" action="https://checkout.flutterwave.com/v3/hosted/pay">
  <input type="hidden" name="public_key" value="FLWPUBK-58cc63c00e129204fb4e94ef95bb781f-X" />
  <input type="hidden" name="customer[email]" value="[email protected]" />
  <input type="hidden" name="customer[name]" value="Jesse Pinkman" />
  <input type="hidden" name="tx_ref" value="bitethtx-019203" />
  <input type="hidden" name="amount" value="3400" />
  <input type="hidden" name="currency" value="NGN" />
  <input type="hidden" name="meta[token]" value="54" />
  <input type="hidden" name="redirect_url" value="https://google.com" />
  <button type="submit" id="start-payment-button">Pay Now</button>
</form>

© www.soinside.com 2019 - 2024. All rights reserved.