[WMDE-Fundraising] Add service to determine credit card expiration date
Closed, ResolvedPublic25 Story Points


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.

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.

gabriel-wmde updated the task description. (Show Details)Apr 12 2016, 1:07 PM

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.

Is this task just about adding the service or also about using it somewhere? :)

Lea_WMDE moved this task from Incoming to WMDE Fundraising on the TCB-Team board.May 11 2016, 12:18 PM
kai.nissen closed this task as Resolved.Jun 2 2016, 12:57 PM