The idea was to build a simple payment gateway that for an efficient user experience. The problem was that the way the MF Group payment works is that there are multiple requests to be made to their API based on the customer input.
Our issue was the multiple requests made to the Minirate API based on customer input. This complicated things but we were able to find a quick solution.
It was a simple case of breaking the problem down and assessing our options. We built a short-code so the customer can choose the rate amount before adding products to cart.
In the cart view, we created a display for the price based on the rate selected. So if the customer chooses the rate amount of 12 and the product price is $120, they see the price of $10 per month.
The initial request is made once the customer decides to proceed with the payment. Since this is a rate-based payment method, we had to make good use of the API. Once we get a valid response from the API, we refresh the checkout screen so that the customer can choose the rate amount for the specific product. Based on this fact, the customer has an option to choose the rate amounts for each product separately.
This was a real showstopper. There were plenty of unknowable hurdles to leap along the way but the size of the challenge was easily matched by our team’s determination and ingenuity. No sweat!