View Issue Details

IDProjectCategoryView StatusLast Update
3044Composrecommercepublic2017-02-14 17:47
ReporterChris Graham Assigned ToChris Graham  
PrioritynormalSeverityfeature 
Status resolvedResolutionfixed 
Summary3044: More robust flow through payment gateways
DescriptionCurrently we pass either an item name & product ID through a payment gateway, or a trans expecting ID which then let's us find the item name & product ID from the ecom_trans_expecting table.

We should consistently move to the latter, with sometimes an item name going through as a *label* only.

This has 4 advantages:
1) We can replace the 'search' method for finding products within hooks using item names to a simpler handles_product method. This is more efficient and easier to understand.
2) If the price changes mid-purchase we can rely on the ecom_trans_expecting record to have locked in the original price, avoiding an error.
3) Consistent. All hooks would do it in one way.
4) We don't have to worry about item names being unique, only the product codenames would need to be.

A ecom_trans_expecting record would only be valid for a configured length of time, default to 2 weeks. Beyond that an error message would show.
TagsNo tags attached.
Attach Tags
Time estimation (hours)5
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2017-01-25 13:14 Chris Graham New Issue
2017-02-14 17:47 Chris Graham Status Not Assigned => Resolved
2017-02-14 17:47 Chris Graham Resolution open => fixed
2017-02-14 17:47 Chris Graham Assigned To => Chris Graham