• Hello,
    I would love your recommendations on the below issue.
    I need to find a way to connect my PayPal subscription (annual) to my ACF Extended registration form ( can’t procced until payment is taken), or I need to find a way to connect a 3rd party plugin to ACF Extended.
    Thanks,

Viewing 1 replies (of 1 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    Unfortunately I don’t really have any with PayPal Subscription tutorial to recommend. You will have to find a PHP wrapper/class that will do the job, or code it by yourself using the PayPal documentation. There might be a recommended solution in the PayPal subscription documentation, I would recommend to check it.

    Once you found a working solution/wrapper, you can then hook in the ACFE Form submission hooks in order to add your own logic. Note that the only way to completely stop a form submission is use the Validation Hooks, which is processed in Ajax (before the submission). However, this method doesn’t let you pass data (subscription information in your case) from the Ajax Validation to the actual Form Submission that comes later.

    You could however use the Actions Prepare Hooks which are triggered during the form submission, and let you stop a specific action from being processed when using return false. However, you won’t get any “Validation Message” on-screen, since that hook is triggered during the submission (after the validation).

    An another solution could be to setup 2 different forms that are displayed one after the other. Once the first form is submitted (and the subscription is setup and saved), you could display a second a form that will do more stuff, using the acfe_is_form_success() helper (See documentation).

    If you want more advanced control, you might want to check the ACFE Payment Field, which is included in the Pro version. This field will process a payment (PayPal Express or Stripe) and it has additional hooks that will let you do additional stuff once the payment is correctly processed (in your case, it could be to setup a PayPal Subscription with your own logic). Note that with this field, a payment can be required (if it is set as required) before the actual form submission.

    If you already own the Pro version, I would recommend to use the Ticket System from your Account, as this forum is dedicated to the Free version of ACF Extended. However, note that I can’t really give more insights about the PayPal Subscription logic on its own, since this feature is not included in the Payment Field.

    Hope it helps!

    Have a nice day!

    Regards.

Viewing 1 replies (of 1 total)

The topic ‘PayPal Subscription’ is closed to new replies.