Support » Plugin: Give - Donation Plugin and Fundraising Platform » Any way to create donations via code? (So affiliatewp gets triggered)

  • Resolved tmf33

    (@tmf33)



    Somewhat in relation to this topic:
    https://wordpress.org/support/topic/how-to-create-dynamic-donation-amount-based-on-calc

    Is there any way to generate donations via code?

    I´ve seen the API is only for retrieving info, not creating.

    We would need a way for batch generation of manual donations with custom amounts, but in a way that affiliatewp form integration gets triggered.

    Would the eg “Manual Donations” (or any other) addon provide most of the functionality to generate batch donations with custom (code) calculated amounts?

Viewing 1 replies (of 1 total)
  • Plugin Support Ben Meredith

    (@benmeredithgmailcom)

    Hi there,

    Sorry for the slow turnaround on this answer!

    There’s not currently a way to do that since as you mentioned our API is read-only.

    The Manual Donations add-on is designed to record donations that happened elsewhere but need to be recorded in Give, it’s not a method for actually processing donations.

    The only way Give can create donations that actually process real money is on the form at this point. There may be a way to get the AffiliateWP stuff to be triggered from a Give donation, though, using a hook that only fires after a successful donation.

    Not knowing exactly what you are trying to do, I’m spitballing a bit here, but the fundamental answer to the question is “no, you can’t create actual donations using our API or in any other way but on the form”

    Hope that helps!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.