Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    Thanks for the video! I didn’t understand your spoken explanation, but I picked out the following:

    * WooCommerce and an API plugin are the only plugins currently activated (Rede shows up at check-out, so this may be a payment plugin)
    * Using the Twenty Twenty theme
    * After creating a test order through the front end, the order shows up in the Woo backed with the status “pagamento pendente” – that translates to “payment pending”

    From the original question, it sounds like this is a problem because they’re being seen as real orders.

    In Woo, “payment pending” means that we’re waiting to hear back from the payment gateway on whether or not the payment is successful. The order isn’t considered paid until the order status changes to “processing”. I’d recommend ignoring the orders that are marked as “pending”.

    In regards to being able to submit orders without adding the credit card details: it sounds like the Rede payment gateway on the checkout page isn’t adding validation. A payment gateway that doesn’t check for credit card details before submitting is tricky because then anyone can indeed create a spam order. I recommend talking to the developer of the Rede payment gateway to see if they can add this validation to the checkout.

    Alternatively, you could look at a different payment gateway that would work for Brazil – we offer these payment gateways at WooCommerce.com. Stripe or PayPal would both be good options, and they both offer robust anti-fraud options.

    I hope that helps you in the right direction!

    Thread Starter jose3905

    (@jose3905)

    Hi Hanna, thanks for the reply.
    In fact, this is an error and not something normal that must be respected because the system must wait for payment.
    The system cannot generate an order without having the payment data. I have already done other tests, and when I fail to include my address or any other mandatory fields, it does not complete the order. This should happen when not all the credit card fields are inserted. It is a basic thing, if I let the person make a transfer of the amount or a deposit, then yes, the order can be generated. But the only means of payment is the credit card and the person is obliged to put all the data there.

    I thought about the option of placing all fields as mandatory, but they are already. So I don’t know what the way out of this problem is … I need help to prevent this type of error from happening.

    Thanks.

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    In fact, this is an error and not something normal that must be respected because the system must wait for payment.

    I tested this with the Stripe plugin. If the payment fields aren’t filled in, the checkout page doesn’t proceed and no order is created. The order is only created if the process can proceed past the checkout. On your site, the payment gateway is allowing the transaction to proceed even though the correct information hasn’t been filled in.

    This isn’t strictly a WooCommerce core function – the payment gateway determines which fields it needs to show at checkout and which need to be required. As you mentioned, some payment gateways don’t require this validation (like a bank transfer), but credit card payments do require it. And that comes back to the gateway plugin.

    But the only means of payment is the credit card and the person is obliged to put all the data there.

    Exactly, this is up to the payment gateway plugin to validate. If your payment gateway isn’t doing that, I’d recommend trying another to see if that works properly, or reaching out to the developer of the current gateway.

    I thought about the option of placing all fields as mandatory, but they are already.

    You’d be able to do that for the standard checkout fields, like name and address. That won’t affect the payment gateway itself, though, as it usually has additional fields like credit card number – the validation (which fields are required) is handled by the payment gateway and not core WooCommerce.

    To reiterate, I recommend that you try a different payment gateway, as it sounds like this one doesn’t have the validation that you need. Or reach out to the payment gateway’s developer to see if this option can be added.

    Thread Starter jose3905

    (@jose3905)

    Hannah, you were super helpful. Now I understand where the error is…
    Thank you!

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Happy to help! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Prevent order generation without payment’ is closed to new replies.