Challenge

The extension had several issues that disrupted the purchasing process. Customers could not log in to their store accounts, while guest orders were not created because customer information was missing during checkout. Even after successful payment, these missing details prevented the system from processing the order correctly.

Payment notifications were also handled incorrectly, causing the gateway to send them repeatedly. The card payment form rejected test data in the sandbox and displayed errors that prevented the team from completing checkout. Some aspects of this payment flow were not covered in the available documentation.

Alongside resolving these problems, the client needed to introduce additional payment methods and prepare the extension for marketplace review.

Solution

Our team began by addressing the issues affecting customer access and order placement. We restored customer login and updated guest checkout so buyer information was saved correctly. The same improvement was applied to the separate card payment flow.

We also corrected payment notification handling and moved order status updates into this process. This addressed repeated notifications and aligned status updates with information received from the gateway.

For card payments, we documented the sandbox problems and asked the client to clarify whether the existing payment flow was outdated or the test environment was malfunctioning. We then updated the payment requests and revised card validation.

The team expanded payment functionality with preauthorization, PayPal, Apple Pay, and recurring charges. This work included PayPal error handling and repeat orders, Apple Pay authorization improvements, and updates to Google Pay. We also corrected payment redirects and improved interactions with the gateway’s refund functionality.

Alongside these changes, we removed unused code and checked the extension against the platform’s coding standards. We also configured an environment for testing. Manual testing covered payments, invoices, repeat orders, wishlists, product comparisons, multiple addresses, caching compatibility, and installation across PHP versions.

For recurring payments through Apple Pay and Google Pay, the gateway had limitations. After reviewing the documentation, we proposed three alternatives: extending the existing gateway, using another gateway, or emailing customers a link for their next payment.

Result

Customer login, guest order creation, and payment notification handling were corrected. Automated code checks and manual testing identified no critical issues.

The updated extension included PayPal, Apple Pay, and recurring charges, together with improvements to Google Pay and refunds.