Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am working on testing the commerce functionality (checkout and payment), and found a problem in the procedure of Checkout and Payment.
– The Payment is NOT charged if the Checkout is processed smoothly and correctly.
– If I make a mistake on checkout page, such as forgetting the ZIP code, or CITY, the checkout page is refreshed with a Warning message. Then I input the zip code or city name, and finish the process of checkout. The payment is charged correctly in this case.
This weird bug totally frustrated me.
Modules I installed:
- Commerce 7.x-1.11
- Cart (commerce_cart)
- Checkout (commerce_checkout)
- Card on File (commerce_cardonfile)
- Commerce Express Checkout (commerce_express_checkout) // Using this for Express Checkout
- Order (commerce_order)
- Customer (commerce_customer)
- Payment (commerce_payment)
- Payment Method Example (commerce_payment_example) // Using this as payment method
- Product (commerce_product)
- Price (commerce_price)
- Product Reference (commerce_product_reference)
- Commerce License (commerce_license)
Comment | File | Size | Author |
---|---|---|---|
orders-list.JPG | 59.67 KB | Gung Wang |
Comments
Comment #2
Gung Wang CreditAttribution: Gung Wang commentedTried to place many orders to test the checkout:
– The order 1471 and order 1466 are good, and the payments are charged correctly, because of wrong inputs on the submission form.
– All other order payments are NOT charged as the orders are processed smoothly and correctly.
Comment #3
rszrama CreditAttribution: rszrama at Centarro commentedI've never heard of anything like this; are you sure there isn't a conflict in some module you're using? Maybe Commerce Express Checkout?
Comment #4
Gung Wang CreditAttribution: Gung Wang commentedI finally figured out the problem:
– There is a bug in the module "Payment Method Example (commerce_payment_example)"
– I disabled the Payment Method, added a new Authorize.net payment method, then the problem is gone.
Don't use the module: Payment Method Example (commerce_payment_example).
Don't use the "Example payment" payment method to test.