首页 > 解决方案 > BigCommerce 中未返回的所有付款方式 Get Accepted Payment method rest api

问题描述

我在我的 React Native 应用程序中使用BigCommerce Rest API为 BigCommerce 网站创建电子商务应用程序。我正在使用 BigCommerce REST API 完成所有功能,例如获取产品、创建购物车、创建结帐等。

现在,有一个 API 可以获取所有接受的结帐付款方式。api:https ://developer.bigcommerce.com/api-reference/store-management/payment-processing/accepted-methods/paymentsmethodsget

因此,当我使用所有必需的参数和标头调用此 API 时,我在响应中只获得一种付款方式。但是,我已经从管理员那里设置了许多其他付款方式选项。

还有另一个 API Get All Payment method,它返回我设置的所有支付方式。但返回的付款方式数据不包含payment method id. 我需要一个付款方式 ID 才能在下一步传递它。

请问有谁知道如何在 BigCommerce REST API 中使用其 ID 获取所有接受的付款方式?

标签: bigcommercebigcommerce-checkout-sdk

解决方案


It's to my belief that this is working as expected. The v3/payments/methods returns only a list of providers that are supported by our public payments api. This list does not include COD, so that's why that one is missing. You likely don’t see Paypal because it is Paypal Commerce Platform, which is also not expected to be returned.

As a note, this endpoint is tied to an order so if certain providers have restrictions on order total or products or things like that, they might appear/or not appear depending on those values.


推荐阅读