• Hello,

    I need to create a hook that allows me to;
    (1) plug in the information from the form into a 3rd party credit card processing API ->
    (2) receive a “valid” or “invalid” credit card response from the API ->
    (3.1) If invalid, then POST request die;
    (3.2) If valid, send POST data to two other API’s.

    ~~~~~~~~

    Is this possible with Contact Form 7?

    If so what should I hook into?

    ‘wpcf7_before_send’mail’ ?

    Thanks,
    Matthew

    https://www.ads-software.com/plugins/contact-form-7/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter MatthewJMariner

    (@matthewjmariner)

    Anyone?

    I was thinking of:

    // #1 –> Skip Mail
    // #2 –> Parse the submission and turn it into GET API cURL request
    // #3 –> Get response from API
    // #4 –> Send The Info To Other API’S
    // #5 –> API1
    // #6 –> API2
    // #7 –> Alert User Via email

    [ No bumping please. ]

    https://hookr.io/plugins/contact-form-7/4.3.1/hooks

    But for me some reason stopped working hooks.
    I keep track of the addition of hooks, but the call to its function does not occur.

    add_action( "wpcf7_before_send_mail" , "add_mail_order_hook" );
    function add_mail_order_hook($contact_form) {...}

    Help please where to dig

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Hook Help’ is closed to new replies.