我使用以下配置创建了BrainTreeGateway对象。
Dim objBtGateway As BraintreeGateway = New BraintreeGateway()
With objBtGateway
.Environment = Braintree.Environment.SANDBOX
.MerchantId = "mymerchantid"
.PublicKey = "mypublickey"
.PrivateKey = "myprivatekey"
End With
之后,我尝试使用以下语句生成客户端令牌。
Dim clientToken As String = objBtGateway.ClientToken.Generate()
这句话说“'生成'是不明确的,因为界面'IClientTokenGateway'中存在多种具有此名称的成员。”