脑树仪表板中的十进制错误

时间:2017-08-19 13:16:36

标签: braintree braintree-sandbox

当我通过 braintree 支付网关进行交易时,我得到的回复是我在下面返回的金额是1200,但在braintree仪表板中我得到1.200(十进制)。

"PAYMENT": {
        "transaction": {
            "id": "dhsaj2vy",
            "status": "submitted_for_settlement",
            "type": "sale",
            "currencyIsoCode": "EUR",
            "amount": "1200.00",
            "merchantAccountId": "5646466767909",
            "subMerchantAccountId": null,
            "masterMerchantAccountId": null,
            "orderId": null,
            "createdAt": "2017-08-19T13:05:47Z",
            "updatedAt": "2017-08-19T13:05:47Z",
            "customer": {
                "id": "8239041739880",
                "firstName": "a@g.com",
                "lastName": "",
                "company": null,
                "email": null,
                "website": null,
                "phone": null,
                "fax": null
            },
            "billing": {
                "id": "ff",
                "firstName": null,
                "lastName": null,
                "company": null,
                "streetAddress": null,
                "extendedAddress": null,
                "locality": null,
                "region": null,
                "postalCode": "5328",
                "countryName": null,
                "countryCodeAlpha2": null,
                "countryCodeAlpha3": null,
                "countryCodeNumeric": null
            },
            "refundId": null,
            "refundIds": [],
            "refundedTransactionId": null,
            "partialSettlementTransactionIds": [],
            "authorizedTransactionId": null,
            "settlementBatchId": null,
            "shipping": {
                "id": null,
                "firstName": null,
                "lastName": null,
                "company": null,
                "streetAddress": null,
                "extendedAddress": null,
                "locality": null,
                "region": null,
                "postalCode": null,
                "countryName": null,
                "countryCodeAlpha2": null,
                "countryCodeAlpha3": null,
                "countryCodeNumeric": null
            },
            "customFields": "",
            "avsErrorResponseCode": null,
            "avsPostalCodeResponseCode": "M",
            "avsStreetAddressResponseCode": "I",
            "cvvResponseCode": "I",
            "gatewayRejectionReason": null,
            "processorAuthorizationCode": "F6D7CV",
            "processorResponseCode": "1000",
            "processorResponseText": "Approved",
            "additionalProcessorResponse": null,
            "voiceReferralNumber": null,
            "purchaseOrderNumber": null,
            "taxAmount": null,
            "taxExempt": false,
            "creditCard": {
                "token": "6wh2v4",
                "bin": "555555",
                "last4": "4444",
                "cardType": "MasterCard",
                "expirationMonth": "12",
                "expirationYear": "2025",
                "customerLocation": "US",
                "cardholderName": null,
                "imageUrl": "https://assets.braintreegateway.com/payment_method_logo/mastercard.png?environment=sandbox",
                "prepaid": "Unknown",
                "healthcare": "Unknown",
                "debit": "Unknown",
                "durbinRegulated": "Unknown",
                "commercial": "Unknown",
                "payroll": "Unknown",
                "issuingBank": "Unknown",
                "countryOfIssuance": "Unknown",
                "productId": "Unknown",
                "uniqueNumberIdentifier": "4522ba536b44dec3d9d7a7cc3b059d1e",
                "venmoSdk": false,
                "maskedNumber": "555555******4444",
                "expirationDate": "12/2025"
            },
            "statusHistory": [{
                "timestamp": "2017-08-19T13:05:47Z",
                "status": "authorized",
                "amount": "12011.00",
                "user": "g5bareja@gmail.com",
                "transactionSource": "api"
            }, {
                "timestamp": "2017-08-19T13:05:47Z",
                "status": "submitted_for_settlement",
                "amount": "1200.00",
                "user": "g5bareja@gmail.com",
                "transactionSource": "api"
            }],
            "planId": null,
            "subscriptionId": null,
            "subscription": {
                "billingPeriodEndDate": null,
                "billingPeriodStartDate": null
            },
            "addOns": [],
            "discounts": [],
            "descriptor": {
                "name": null,
                "phone": null,
                "url": null
            },
            "recurring": false,
            "channel": null,
            "serviceFeeAmount": null,
            "escrowStatus": null,
            "disbursementDetails": {
                "disbursementDate": null,
                "settlementAmount": null,
                "settlementCurrencyIsoCode": null,
                "settlementCurrencyExchangeRate": null,
                "fundsHeld": null,
                "success": null
            },
            "disputes": [],
            "authorizationAdjustments": [],
            "paymentInstrumentType": "credit_card",
            "processorSettlementResponseCode": "",
            "processorSettlementResponseText": "",
            "threeDSecureInfo": null,
            "paypalAccount": {},
            "coinbaseAccount": {},
            "applePayCard": {}
        },

但是在仪表板中我看到1.200当braintree给我正确的金额时,为什么小数点会出现错误? enter image description here

1 个答案:

答案 0 :(得分:0)

完全披露:我在Braintree工作。如果您有任何其他问题,请随时联系support

您在信息中心看到的是欧元货币的正确格式,表示价值一千二百。

快速搜索欧元货币的正确格式显示小数点分隔符为“,”,千位分隔符为“。”。这是一个与欧元和美元形成鲜明对比的例子:

EUR 1.200,00
USD 1,200.00

Braintree遵循the currencies it supports的标准格式。