繁体   English   中英

使用flutterwave-react-native成功付款后,出现此错误

[英]After making successful payment with flutterwave-react-native, i get this error

使用 flutterwave-react-native 成功付款后,出现此错误。 无法打开 url:file:///private/var/containers/Bundle/Application/B7772AE9-4650-4076-8389-8E2A243D5DFE/Expo%20Go.app/

const handleRedirect = (data) => {
    if (data.status === "successful") {
      handlePaymentOnTheServer(data.transaction_id);
    }
  };
<PayWithFlutterwave
                    onRedirect={handleRedirect}
                    options={{
                      tx_ref: new Date().toString(),
                      authorization:
                        "FLWPUBK_TEST-9337393620292-92622827-X",
                      customer: {
                        email: user.email,
                      },
                      amount: Number(amount),
                      currency: "NGN",
                      payment_options: "card",
                      customizations: {
                        title: "Recharge your Account",
                        description:
                          "While recharging your account, note 1.7% processing fee.",
                      },
                    }}
                    customButton={(props) => (
                      <AppButton
                        title='Submit'
                        style={{
                          paddingHorizontal: 40,
                        }}
                        onPress={() => {
                          if (amount) {
                            props.onPress();
                          } else {
                            showToast("Enter amount!");
                          }
                        }}
                        disabled={processing}
                      />
                    )}
                  />

尝试安装补丁版本

npm i git+https://github.com/Flutterwave/flutterwave-react-native/#fix-redirect-error

https://github.com/Flutterwave/flutterwave-react-native/issues/15#issuecomment-765316621

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM