How to block the invoice creating in virtuemart 2.0 in paypal payment plugin

327 Views Asked by At

I need to block the invoice creating code in Virtuemart 2.0 Paypal payment method plugin. How it possible ? please help me to do this.

1

There are 1 best solutions below

4
On

In your Payment plugin section on backend.

Go to Paypal Payment option you will have three options.

PayPal Waiting ->  Pending
PayPal Confirmed -> Confirmed
PayPal Cancelled -> Cancelled

here the waiting status you can consider while creating order time,

when the order creates it trigger the Paypal payment plugin with Pending status you can trace that event on,

plugins\vmpayment\paypal\paypal.php

In this plgVmConfirmedOrder() function get control with Pending you can check whether status and avoid DB Query their.

Also triggering this function from cart.php helper file inside confirmedOrder()

Hope its helps.