vcatalano / py-authorize

A full-featured Python API for the Authorize.net payment gateway.
MIT License
42 stars 35 forks source link

Cannot submit masked card numbers on update #30

Closed clintecker closed 9 years ago

clintecker commented 10 years ago

When submitting a updateCustomerPaymentProfileRequest, in authorize.CreditCard.update the CIM developer guide states the following for the format of the cardNumber:


Value: The customer’s credit card number Format: 13 to 16 digits

Number can also be masked, for example, XXXX1111

Notes: If the value is masked, the last four digits must match the original value in the profile.

If a masked value is submitted, the original value will not be updated


However the CreditCardSchema enforces that the value of the card_number should validate against colander.luhnok and rejects these. It also rejects the request if I omit the card_number completely.

Any suggestions on how to proceed here?

vcatalano commented 9 years ago

I've updated how masking is now handled for updating an existing credit card. Developers can provide either the last 4 digits or the masked card number e.g. XXXX1234.