• If there anyway to set Conditional logic depending on payment gateway?

    My client takes Stripe but also takes pay by PO number which they invoice their account directly.

    They only want to attach the invoice if it has been paid by Stripe.

    Thank you kindly.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Darren Peyou

    (@dpeyou)

    Hey @peter-kallkwik,

    Does the Stripe payment gateway contain unique payment methods in your shop? I ask because our Professional extension has the option to disable the document creation of any document type based on conditions, including the payment method, BUT not the payment gateway itself.

    This means that if payment methods are shared between gateways, it would not work. A code snippet would therefore need to be used.

    This is how the “Disable for:” setting looks:

    With some payment methods selected:

    If you have questions regarding our Professional extension directly, please email us at support@wpovernight.com, as this forum is for free software.

    If you choose to go the code snippet route, the filter to use in order to make PDF generation conditional is the wpo_wcpdf_document_is_allowed filter (see all filter hooks).

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.