gpt4 book ai didi

Paypal 与布伦特里说 "Merchant account not found"

转载 作者:太空宇宙 更新时间:2023-11-03 15:41:11 33 4
gpt4 key购买 nike

我尝试使用 braintree 并遵循 this tutorial 来集成 PayPal .我最终得到一个错误:Merchant account not found - screenshot .

我正在使用 Swift 3 和 Xcode 8.1。

here is my viewDidLoad

这些是我的应用程序中所有必需的更新:

ScreenShot 1

ScreenShot 2

ScreenShot 3

ScreenShot 4

ScreenShot 5

任何帮助将不胜感激!

最佳答案

此错误也可能是由容易遗漏但很容易修复的问题引起的。

要初始化您的客户端,您需要在您的服务器上生成一个客户端 token 。生成此文件时,您可以选择传入一个商家帐户 ID - 例如在 Java 中:

ClientTokenRequest clientTokenRequest = new ClientTokenRequest()
.customerId(aCustomerId)
.merchantAccountId(anAccountId);
String clientToken = gateway.clientToken().generate(clientTokenRequest);

您的商家 ID商家帐户 ID 之间存在细微但重要的区别:

来自Braintree Control Panel reference :

Your merchant ID is a unique identifier for your entire gateway account and one of the four API credentials. This value is required for certain actions, such as connecting your API calls to the Braintree gateway or setting up third-party shopping carts.

Your merchant account ID is a unique identifier for a specific merchant account in your gateway. It is used to specify which merchant account to use when creating a transaction, creating a subscription, verifying a payment method, or generating a client token.

在创建客户端 token 时提供错误的商家帐户 ID 不会产生错误,直到您尝试执行某些操作,例如,使用 paypal 金库流程发出付款方式请求,在在这种情况下,您的客户将收到“422 Unprocessable entity”响应“找不到商家帐户”错误消息。

关于 Paypal 与布伦特里说 "Merchant account not found",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41757631/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com