Skip to content

Commit

Permalink
Fix sample app / documentation bug related to brand ID
Browse files Browse the repository at this point in the history
We should pass brand ID not merchantID to scopeID
  • Loading branch information
tir38 committed Nov 14, 2024
1 parent 9677581 commit 9f768fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions docs/getting-started/v3-with-cash-app-pay.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
6 changes: 1 addition & 5 deletions sample/src/main/java/com/example/CashAppV3SampleActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 9f768fc

Please sign in to comment.