• Resolved udaykr

    (@udaykr)


    Hi,
    We are evaluating GiveWP plugin for our site donation page.
    We have our custom web page which allows users/donros to search the charities in US. Upon selecting the charity from the search result, GiveWP plugin should display the charity (charity name and EIN number) user has selected under the stripe checkout page (https://checkout.stripe.com/pay/…..) under the dollar amount.

    We are going for “Stripe-Checkout option” under payment gateways in the plugin

    This is helpful for the donor to see “charity name” he/she donating to on the same page providing the credit card details also.

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Support Matheus Martins

    (@matheusfd)

    Hi @udaykr,

    Happy to help you!

    The Stripe Checkout payment method was designed to pass the form title to the Stripe payment page. It means that each donation will have the form title as its title.

    On this image https://imgur.com/a/Xn455Vt you’ll be able to see that my form name is Support Cancer Research and this is what is passed to Stripe.

    If you have multiple charities, each of them would become a donation form. So you’d have a donation form for charity A, another one for B, another one for C. And on Stripe when the donor would make the donation, it would appear that the donation is for that specific charity.

    Regarding adding more parameters, it could be possible, but it would require some custom code for which we do not have a snippet now. It would be necessary to check the filters available for Stripe checkout and create customization.

    Please let us know if you have further questions on this or need any additional assistance!

    Thread Starter udaykr

    (@udaykr)

    Hi @matheusfd,

    Thanks for your response.
    We pass only name of one charity and NOT multiple charity name to the stripe payment page.

    The reason i asked multiple fields is, there is a possibility that 2 charities having the same name. Hence we want to pass “Charity Name” and EIN number. EIN number is unique to one charity in United States. Hope you have understood our use case.

    The form title is a static field and it works in your case. But in our case, the form title which is dynamic and has to be substituted with the charity name. Is my understanding correct ?

    Thread Starter udaykr

    (@udaykr)

    @matheusfd
    You mentioned

    “Regarding adding more parameters, it could be possible, but it would require some custom code for which we do not have a snippet now. It would be necessary to check the filters available for Stripe checkout and create customization.”

    What do you need from our side for making the plugin to work the way i described above (passing only one charity name) ? We eagerly needed this answer asap before we buy GiveWP plugin. Without having the option to pass charity name/EIN number, it won’t help us buying this plugin.

    Please confirm asap.

    Thread Starter udaykr

    (@udaykr)

    @matheusfd

    Woud it be possible for you to come on a call (either zoom or google meet ?) so that we can discuss regarding the issue we have been talking over few days ?

    I am staying in Bangalore, India (IST)

    By looking at the plugin and the custom fields it allows for our usecase, i felt it is better if we talk over a call. Please confirm.

    Plugin Support Matheus Martins

    (@matheusfd)

    Hello @udaykr,

    If you use GiveWP, each charity would have to be a different donation form. It means that form would have a title that could be “Charity A – EIN: 123123”. This is the data that would be passed to Stripe Checkout. Editing the form title and/or adding new fields to the Stripe Checkout could be possible, but it would require changing the code/create your custom code.

    I’ll let the development team know about this feature request, but since we do not receive this request frequently, I’m unsure of when they are going to analyze it.

    Regarding the call, it’s better to keep this conversation public, so other users can benefit from this thread.

    Please let us know if you have further questions on this or need any additional assistance!

    Thread Starter udaykr

    (@udaykr)

    @matheusfd

    Yes, you are absolutely correct. That is what we need. From the plugin, what i understood is value from “Form title” being sent to Stripe. The same value is being sent in a emal to both Donor and Administrator.

    This is the exact requirement we have.

    Please let me know how to proeed by having our custom code or changing the code from your side.
    Please confirm.

    Plugin Support Matheus Martins

    (@matheusfd)

    Hello @udaykr,

    If you use the Donation Form Title, you do not need custom code. I suggest you check our documentation here and you’ll be able to see how you can create a form for each cause (charity in your case): https://givewp.com/documentation/core/give-forms/creating-givewp-forms/

    However, if it is not what you are looking for, you’ll need to hire a developer than can extend GiveWP to solve your requisite, since we do not work with custom code.

    Please let us know if you have further questions on this or need any additional assistance!

    Thread Starter udaykr

    (@udaykr)

    Hi @matheusfd

    How can we send charity name and EIN dynamically (ex: Charity A – EIN: 123123) in the Donation Form Title ? We are using Legacy template in the plugin.

    Currently, this is what is being sent (captured from browser inspect element)
    <h2 class=”give-form-title”>Donation – Demo</h2>. Hope this is the form-title you are talking in your message.
    Please confirm ?

    Also, in the email templates, i could see below tags along with the description. Here, which is the “Donation Form Title”

    {donation} – The donation form name, and the donation level (if applicable).
    {form_title} – The donation form name.
    Please confirm ?

    • This reply was modified 4 years, 3 months ago by udaykr.
    Plugin Support Matheus Martins

    (@matheusfd)

    @udaykr,

    What you’ll send to Stripe is what you define as your donation form title, as you can see in this image https://imgur.com/a/KMYw0HD. The form title that you add there will be the same that you’ll see on Stripe Checkout. This is the reason I said you’ll need to create one form for each charity.

    {form_title} is the email tag for your email. Please read more about it here https://givewp.com/documentation/core/settings/emails/email-tags/.

    Please let us know if you have further questions on this or need any additional assistance!

    Thread Starter udaykr

    (@udaykr)

    @matheusfd

    I think you have actually got wrong with my requirement. As i mentioned in my earlier messages, we have a search engine to search the charities.
    User selects a charity from the charity results page and click on a button called “Give”. This is (button click and charity search) completely our code.

    Upon click on “Give” Button we need to pass user selected charity name and EIN to the GiveWP plugin. So that charity name and EIN will be added in the email to Donor and administrator by the plugin.

    {donation} – The donation form name, and the donation level (if applicable).
    {form_title} – The donation form name.

    These are the two template tags i saw common in Donor and administrator email templates.
    Help me how to pass these values to plugin form at the run time from our page ?

    OR is there anyone (development/technical support) who can help me here ?

    We have almost decided to go with this plugin. Except this feature, everything is working as expected.

    • This reply was modified 4 years, 3 months ago by udaykr.
    Plugin Support Matheus Martins

    (@matheusfd)

    Hi @udaykr,

    To change the donation form title to pass to Stripe, it would require changing the form title with a custom template for the single donation form. We’ve created this documentation that shows you how you can create your own template for the donation form https://givewp.com/documentation/developers/theming-with-give/theming-the-single-give-page/. When passing the form title, you can add a span element, for example, and add the charity name with the EIN. It would look something like:
    <span><?php echo $charity-ein; ?></span>

    And if you didn’t want to display the name of the charity on your site, you can hide it via CSS, so your users would be able to see it only on Stripe Checkout.

    However, if you’d like to send the metadata for Stripe, we have a code snippet that can help you https://github.com/impress-org/givewp-snippet-library/blob/master/gateway-customizations/stripe-pass-custom-meta-for-payments.php. You’d need to have a custom field, possibly create using the Form Field Manager (a paid add-on) and then pass this data to Stripe (although it would not be visible to the user).

    One important thing to differentiate is that what you see as email tags {donation}, {form_title}, they are not used when you make a donation. They are template tags used by GiveWP to send the emails for donors/site owners.

    If you need custom development, a third-party developer will be needed to analyze your project and create the customization you need.

    Please let us know if you have further questions on this or need any additional assistance!

    Thread Starter udaykr

    (@udaykr)

    Hi @matheusfd

    Thanks for your response.

    We know that below fields are template tags.
    {donation} – The donation form name, and the donation level (if applicable).
    {form_title} – The donation form name.

    Our question is how to change the form_title dynamically with “charity name” and “EIN” combination. If we do this, plugin will replace form_title filed in the email template with actual values (charity A -1234) when sending an email to donor and administrator.

    Without sending the donor selected charity and EIN number in the email, it would be of no use displaying the same in stripe checkout page.

    • This reply was modified 4 years, 3 months ago by udaykr.
    Thread Starter udaykr

    (@udaykr)

    Hi @matheusfd

    We followed the instructions given in the link (https://givewp.com/documentation/developers/theming-with-give/theming-the-single-give-page/)
    We copied give.php and placed under /wp-content/themes/our-theme/ folder as mentioned. And also we copied content-single-give-form.php file under our theme themes/our-theme/give/single-give-form/ folder.

    We edited the below line in content-single-give-form.php and added a text data to title.
    Before adding: <h1 itemprop=”name” class=”give-form-title entry-title” style=”background: <?php echo $headerbkgrnd; ?>”><?php the_title(); ?></h1>

    After adding:
    <h1 itemprop=”name” class=”give-form-title entry-title” style=”background: <?php echo $headerbkgrnd; ?>”><?php the_title(); ?>Test Title</h1>

    But we do not see anychange when we navigated to the form slug/Permalink.

    The link referred in your previous response doesn’t exist.
    themes/give-2015/give/single-give-form/content-single-give-form.php

    Plugin Contributor Ben Meredith

    (@benmeredithgmailcom)

    Hi @udaykr

    We are not able to help on this forum with customized setups like you are working with.

    As a general rule, when theming with GiveWP, if you are not seeing changes reflected, it either means that the file is named incorrectly, or that it’s in the wrong place.

    Thanks so much for using GiveWP. Your success with online donations is our number one priority.

    Have a great day!

    Thread Starter udaykr

    (@udaykr)

    Hi @benmeredithgmailcom
    Thanks for your response.

    Would you help us in resolving above mentioned issues if we purchase GiveWP plugin ?

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Passing parameters between pages’ is closed to new replies.