From 9f768fcd34639805ae534b6bcf95bc3aa44dc1f3 Mon Sep 17 00:00:00 2001 From: Jason Atwood Date: Thu, 14 Nov 2024 15:31:20 -0500 Subject: [PATCH] Fix sample app / documentation bug related to brand ID We should pass brand ID not merchantID to scopeID --- docs/getting-started/v3-with-cash-app-pay.md | 6 +----- sample/src/main/java/com/example/CashAppV3SampleActivity.kt | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/docs/getting-started/v3-with-cash-app-pay.md b/docs/getting-started/v3-with-cash-app-pay.md index ff6c27e8..ea14d8b8 100644 --- a/docs/getting-started/v3-with-cash-app-pay.md +++ b/docs/getting-started/v3-with-cash-app-pay.md @@ -169,11 +169,7 @@ fun createCashAppPayCustomerRequest(checkoutV3CashAppPay: CheckoutV3CashAppPay) val action = CashAppPayPaymentAction.OneTimeAction( currency = USD, amount = // TODO transaction amount, - /** - * This is not the same merchant ID you set in [CheckoutV3Configuration]. - * This is a specific for use with Cash App Pay SDK. - */ - scopeId = checkoutV3CashAppPay.merchantId, + scopeId = checkoutV3CashAppPay.brandId, ) cashAppPay.createCustomerRequest( diff --git a/sample/src/main/java/com/example/CashAppV3SampleActivity.kt b/sample/src/main/java/com/example/CashAppV3SampleActivity.kt index e5f022e0..26b1da28 100644 --- a/sample/src/main/java/com/example/CashAppV3SampleActivity.kt +++ b/sample/src/main/java/com/example/CashAppV3SampleActivity.kt @@ -269,11 +269,7 @@ class CashAppV3SampleActivity : AppCompatActivity() { val action = CashAppPayPaymentAction.OneTimeAction( currency = USD, amount = checkoutV3CashAppPay.amount.toInt(), - /** - * This is not the same merchant ID you set in [CheckoutV3Configuration]. - * This is a specific for use with Cash App Pay SDK. - */ - scopeId = checkoutV3CashAppPay.merchantId, + scopeId = checkoutV3CashAppPay.brandId, ) cashAppPay.createCustomerRequest(