• I have pro installed and setup Stripe.

    I have unique sponsorship positions on a direct mail piece going out.

    I want to have businesses sign up automatically, so I programmed a custom database. It shows the sponsorship positions still available.

    Is there a way that after someone pays for one, that I will know to update it and make it unavailable for someone else?

    I just need to know where to put that code and how to verify they did pay.
    Because what if it does it like paypal, where they leave, payment successful, but then they don’t come back to the website for some error like their internet dies or something?

    I will create the code to mark a position as sold already to the sponsor, I just have no idea where to add that code.

    Can you tell me where to put that code?

    Thank you.
    -Richard

    https://www.ads-software.com/plugins/s2member/

Viewing 7 replies - 1 through 7 (of 7 total)
  • You can use “Dashboard -> s2Members -> API/ Notifications” to run your code.

    Thread Starter ukndoit

    (@ukndoit)

    I set that up, but for some reason, it executes on every page load… I followed the example, but I don’t know how to make it ONLY execute if it needs to.

    I tried everything, but for some reason, it messed up the CSS so nothing looked right, even though I did not have it execute unless the certain variables existed that I was looking for, which included a private key I passed in the notification, so because that private key is not sent, it should just skip running. But that did not happen.

    So is there a way to have it run only when called, but not every time someone loads any page?

    thanks,
    -Richard

    Looks like you hook it to wp-cron, instead to the need notification. So do more RTFM.

    But I would do it different way: will save a ccap with same payment, and then just will count the need ccaps in wp_usermeta table.

    Thread Starter ukndoit

    (@ukndoit)

    what is RTFM?

    Thread Starter ukndoit

    (@ukndoit)

    LOL, I read every page S2Member put out. MF ;o)

    So how you manage to run it by cron? ?? Read descriptions at “Dashboard -> s2Members -> API/ Notifications” pages, thy lead to a KB articles with examples and more explanations. Just read, think, and you will do.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Custom stripe charges and after payment updates’ is closed to new replies.