Skip to content

Commit

Permalink
pass storepayment flag to cashapp from dropin
Browse files Browse the repository at this point in the history
  • Loading branch information
erenbesel committed Aug 28, 2024
1 parent 19843c5 commit afd06ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ extension ComponentManager: PaymentComponentBuilder {
var cashAppPayConfiguration = CashAppPayConfiguration(redirectURL: cashAppPayDropInConfig.redirectURL,
referenceId: cashAppPayDropInConfig.referenceId)
cashAppPayConfiguration.showsStorePaymentMethodField = cashAppPayDropInConfig.showsStorePaymentMethodField
cashAppPayConfiguration.storePaymentMethod = cashAppPayDropInConfig.storePaymentMethod
cashAppPayConfiguration.localizationParameters = configuration.localizationParameters
cashAppPayConfiguration.style = configuration.style.formComponent

Expand Down
2 changes: 1 addition & 1 deletion Demo/Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ internal struct DemoAppSettings: Codable {

dropInConfig.paymentMethodsList.allowDisablingStoredPaymentMethods = dropInSettings.allowDisablingStoredPaymentMethods
if dropInSettings.cashAppPayEnabled {
dropInConfig.cashAppPay = .init(redirectURL: ConfigurationConstants.returnUrl)
dropInConfig.cashAppPay = .init(redirectURL: ConfigurationConstants.returnUrl, showsStorePaymentMethodField: false, storePaymentMethod: true)
}
dropInConfig.actionComponent.twint = .init(callbackAppScheme: ConfigurationConstants.returnUrl.scheme!)

Expand Down

0 comments on commit afd06ff

Please sign in to comment.