Use the payment provider API to check when a credit card number expires. The date will be stored in the payment metadata (the data field) of the donation.
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T113249 [WMDE-Fundraising] Epic: Rewrite of frontend | |||
Resolved | Tobi_WMDE_SW | T123048 [WMDE-Fundraising] Update credit card payment status | |||
Resolved | None | T130186 [WMDE-Fundraising] Add service to determine credit card expiration date |
Event Timeline
There is not enough information here to start working on something. Which information would be provided to this interface? Where would the service be used? And for implementation, what is this payment provider API? I'm not sure where to look in the old code for this, so can't even begin to answer these questions.
The original code is at https://github.com/wmde/fundraising/blob/master/spenden/mcp-handler.php#L87-L99
The service should get a credit card number and will either throw an error (IMHO, current code logs instead) or return an expiration date.
The service should be initialized with our customer id from the configuration and probably with a TNvpServiceDispatcher instance so it can be tested properly.
In the old application the service is only used while processing the credit card payment.
Not entirely correct: The customer ID was assigned by the payment provider and passed to us during the payment notification handling to be able to identify the donor's account without storing the credit card data (i. e. number). Our access key is stored in const MCP__ACCESSKEY.