Talk:Fundraising tech/Chat/GatewayFormChooser

About this board

CDentinger (WMF) (talkcontribs)

Can I get a general definition of what this is used for? I feel like it is a lot of mixed concerns that might be better modeled somehow.

Ejegg (talkcontribs)

It's a way to tell RapidHTML to render a specific template regardless of the match / weight settings. Those forms had a fixed list of cards, so you could a/b test different button arrangements by passing in different ffnames.

It's pretty much irrelevant for Mustache-rendered forms, except where we've overloaded it in Worldpay.

Ejegg (talkcontribs)

Hmmm... So maybe the first order of business is to kill RapidHTML, then replace GatewayFormChooser with a simpler GatewayChooser that just asks each gateway if the current preferences are supported, and if so, what options are available.

Heck, it could even ask the adapter about the fees for the specified amount and route the donor to the cheapest processor.

CDentinger (WMF) (talkcontribs)

I love it! My bad about the Worldpay shoehorn.

Reply to "FFNAME"
There are no older topics