• Resolved rod

    (@nomadarod)


    Hi,

    In one of the products I would like to give them the option to pay only the registration and pay the rest later. But if I create this alternative calculation “à payer maintenant” that can be selected with a checkbox (checkbox-1), I don’t see how I can tell Paypal that that’s the new Total. (Paypal has a “variable amount” that corresponds to a pre-set calculation; there is no conditioning in the Paypal settings)

    https://monosnap.com/file/ypKM1OP1aB5nqJjrJEEVwN9HDwkzyy

    Can you give me a clue on how to do this?

    Thanks,
    Rod

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    HI @nomadarod

    I hope you’re well today!

    In Stripe you can use conditions to select payment plan but with PayPal there’s currently no such option so you need a little “trick”.

    Let’s say you have “calculation-1” (to be used if “checkbox-1” is not checked) and “calculation-2” (to be used if “checkbox-1” is checked):

    – set visibility for “calculation-1” to show if “checkbox-1 is not checked”
    – set visibility for “calculation-2” to show if “checkbox-1 is checked”

    – add third calculation field to form (may be set to be “hidden” – no need for conditions too), let’s say it’s “calculation-3”

    – for it’s calculation formula set

    {calculation-1}+{calculation-2}

    – and set that new “calculation-3” field as payment amount source for PayPal variable payment.

    What happens is that depending checkbox state either “calculation-1” or “calculation-2” would be used, meaning that calculation in “calculation-3” field becomes either

    {calculation-1}+0

    or

    0+{calculation-2}

    which, essentially, means that result of calculation-3 would always be equal to value of one of those two other calculation fields, depending on which one is visible according to their visibility logic.

    Best regards,
    Adam

    Thread Starter rod

    (@nomadarod)

    Hi Adam. I thought I had replied to this already.

    It worked great. Thank you for putting it so simple.

    Best
    Rod

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Create conditioning for Paypal’ is closed to new replies.