- πΊπΈUnited States rhovland Oregon
Here is a patch that adds fields to store card payment details and adds it to the payment view.
I considered adding an update hook to copy payment method details to payments from existing orders. However the payment methods could have been edited since then and it would be copying over incorrect information.
- πΊπΈUnited States rhovland Oregon
Realized I didn't finish the modifications to the payment view. Now displays the payment method details properly.
- Merge request !250Issue #3118158 Store more transaction specific information on Payment entities β (Open) created by rhovland
- last update
7 months ago 772 pass, 3 fail - last update
7 months ago 793 pass - Status changed to Needs review
7 months ago 6:32pm 25 April 2024 - last update
7 months ago 772 pass, 3 fail - last update
7 months ago 765 pass, 5 fail - πΊπΈUnited States rhovland Oregon
Putting this up for review. Has tests and upgrade hook for the added fields.
Maybe we want to create a new issue for the 3.x branch for having different payment types (credit card, giftcard, check, ACH, crypto, etc).
- πΊπΈUnited States rhovland Oregon
After talking a bit about the implementation in slack I decided to rename the fields and functions so the changes are less credit card specific and can be used for other payment types.
Examples: Paypal payment gateway could set payment_type to be whatever was used to actually pay such as Visa, ACH, PayPal Credit, Pay in 4, etc. Or if it was paid for with crypto, the payment_type would be the coin used. Credit card gateways would fill in the card type such as Visa, Mastercard, etc.
The payment_identifier would be anything that would help identify the payment method used without having to lookup transaction details on the payment provider's systems, if they still exist. This could be last 4 digits of a credit card number for credit card gateways, a wallet id, etc.