Title: Payment gateway bug
Last modified: August 21, 2016

---

# Payment gateway bug

 *  Resolved [miso00](https://wordpress.org/support/users/miso00/)
 * (@miso00)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/payment-gateway-bug/)
 * Hi,
    I am testing your plugin and I found a bug. When I chose bank transfer as
   only one payment gateway for DefaultAPGShipping it affects all other shipping
   classes (default woocommerce classes and aditional APG classes too). So, it gives
   only bank transfer choice during checkout, however COD is enabled too. If I set
   ALL ENABLED PAYMENTS for DefaultAPGShipping and bank transfer only for aditional
   APG class it has no effect(all payment gateways are shown during checkout). Please
   help. Thank you. Btw. great plugin.
 * [https://wordpress.org/plugins/woocommerce-apg-weight-and-postcodestatecountry-shipping/](https://wordpress.org/plugins/woocommerce-apg-weight-and-postcodestatecountry-shipping/)

Viewing 12 replies - 1 through 12 (of 12 total)

 *  [Chirag Vora](https://wordpress.org/support/users/chirag740/)
 * (@chirag740)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/payment-gateway-bug/#post-4630479)
 * I see… I also observed some strange behavior with payments. It does not obey 
   the setup rules.
 *  [Chirag Vora](https://wordpress.org/support/users/chirag740/)
 * (@chirag740)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/payment-gateway-bug/#post-4630481)
 * [@miso00](https://wordpress.org/support/users/miso00/) right on! I was trying
   to figure out the problem but gave up. What you described is exactly what is 
   happening. The default APG shipping payment method become the store wide default
   for all shipping methods.
 *  Thread Starter [miso00](https://wordpress.org/support/users/miso00/)
 * (@miso00)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/payment-gateway-bug/#post-4630487)
 * Exactly.
 *  [Chirag Vora](https://wordpress.org/support/users/chirag740/)
 * (@chirag740)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/payment-gateway-bug/#post-4630490)
 * I’ve asked Emilio to look into this. He’s going on holidays this week. Hope he
   sees this before going 😛
 *  Plugin Author [Art Project Group](https://wordpress.org/support/users/artprojectgroup/)
 * (@artprojectgroup)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/payment-gateway-bug/#post-4630503)
 * We’re going to see what happens today, before going on holidays.
 * As soon as possible, we’ll update the plugin.
 *  [Chirag Vora](https://wordpress.org/support/users/chirag740/)
 * (@chirag740)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/payment-gateway-bug/#post-4630504)
 * 😀 Good luck!
 *  Plugin Author [Art Project Group](https://wordpress.org/support/users/artprojectgroup/)
 * (@artprojectgroup)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/payment-gateway-bug/#post-4630505)
 * Fixed, along this morning we’ll publish the update.
 *  [Chirag Vora](https://wordpress.org/support/users/chirag740/)
 * (@chirag740)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/payment-gateway-bug/#post-4630506)
 * Thanks. I even observed checkout process getting slow. I think it is very important
   how we setup the state/postcode groups.
 * For example if your store has more light weight products (below 200g or 200kg)
   then
 *     ```
       200|100|P1
       200|110|P2
       500|200|P1
       500|220|P2
       ```
   
 * maybe more efficient than
 *     ```
       200|100|P1
       500|200|P1
       200|110|P2
       500|220|P2
       ```
   
 * This effect would amplify if you have more groups. I didn’t dig much into the
   code but this is my intuition.
 *  Plugin Author [Art Project Group](https://wordpress.org/support/users/artprojectgroup/)
 * (@artprojectgroup)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/payment-gateway-bug/#post-4630508)
 * The plugin get the rate by group (from postal code – P groups – to country – 
   C groups -), not by weights.
 * When it get an available rate, it’s apply to the shipping cost for calculating
   the order weight.
 * Probably, the slowing probably was generated by new WooCommerce core :-(.
 *  Thread Starter [miso00](https://wordpress.org/support/users/miso00/)
 * (@miso00)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/payment-gateway-bug/#post-4630509)
 * Thank you sooooo much. The default APG shipping payment gateway doesn’t affect
   payment gateways of the other shipping methods already.
    But there is still one
   little problem. If you choose only one payment method for aditional shipping 
   class it shows all enabled payment methods during checkout. So, payment gateways
   doesn’t work for aditional shipping class.
 *  Plugin Author [Art Project Group](https://wordpress.org/support/users/artprojectgroup/)
 * (@artprojectgroup)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/payment-gateway-bug/#post-4630510)
 * You’re right. We’re sorry.
 * Fixed on the version 1.3.6.
 *  Thread Starter [miso00](https://wordpress.org/support/users/miso00/)
 * (@miso00)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/payment-gateway-bug/#post-4630511)
 * You have nothing to be sorry for. Thanks much. You deserve donation from all 
   users.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Payment gateway bug’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-apg-weight-and-postcodestatecountry-shipping/
   assets/icon-256x256.png?rev=2865713)
 * [WC - APG Weight Shipping](https://wordpress.org/plugins/woocommerce-apg-weight-and-postcodestatecountry-shipping/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-apg-weight-and-postcodestatecountry-shipping/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-apg-weight-and-postcodestatecountry-shipping/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-apg-weight-and-postcodestatecountry-shipping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-apg-weight-and-postcodestatecountry-shipping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-apg-weight-and-postcodestatecountry-shipping/reviews/)

## Tags

 * [APG](https://wordpress.org/support/topic-tag/apg/)

 * 12 replies
 * 3 participants
 * Last reply from: [miso00](https://wordpress.org/support/users/miso00/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/payment-gateway-bug/#post-4630511)
 * Status: resolved