Skip to content

[Due for payment 2025-03-03] [Standardize the Pay Button] Add support for new NVP shape private_lastPaymentMethod in App #55873

@grgia

Description

@grgia

Design Doc

Goal

Users with the old NVP shape will not run into issues when code references the new NVP shape.

Update all existing references in the app to check if private_lastPaymentMethod. is a string or an object to maintain backward compatibility for users with the old structure.

App should work regardless of which NVP shape the user has.

Context:

The previous private_lastPaymentMethod structure was:

private_lastPaymentMethod: {
   <policyID>: <preference>,
}

The updated structure in private_lastPaymentMethod will look like:

private_lastPaymentMethod: {
   <policyID>: {
		lastUsed: <preference>,
		Iou: <preference>,
		Expense: <preference>,
		Invoice: <preference>,
    }
}

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions