Kyle B. Johnson
Forum Replies Created
-
There isn’t a specific way to create an endpoint for GiveWP, rather it is custom WordPress code, so you’ll have to hook into the request with an action, like init, and check for a custom query string. There is currently no enforced convention.
Also, I should mention that at this point I am unable to support custom code. We do have documentation where we can and are continuing to improve the developer experience. Also, I would suggest looking at the Stripe and PayPal gateways included in GiveWP as example of gateways.
The endpoint/url is public, yes, but does not itself complete the payment. Rather, the donation confirmation / receipt will use the last donation in the session and display the status of that donation, which is most likely processing. The public URL does not itself update the payment.
Instead, your gateway will need to redirect to a custom URL, complete the donation, and then redirect to the public confirmation. Alternatively, your gatweway can redirect directly to the confirmation and use a webhook to later complete the donation (this is how Stripe works).
Hello @michwii,
It seems that you have already found the How to Build a Gateway Add-on for GiveWP article – so you are off to a good start!
For an Offsite Gateway, meaning a payment gateway that redirects offsite to complete the donation, you will want to redirect back to the Donation Receipt / Success Page. Below is a code sample for determining that URL:
function getSuccessPageURL() { $url = get_permalink(absint(give_get_option('success_page'))); return str_replace( ['http:', 'https:'], '', $url ); }
This will display the donation as
pending
. From there, the offsite gateway, in this case the POS system, would most likely send a webhook to the WordPress site notifying the Give plugin that the donation/payment has beencompleted
.Currently, this webhook needs to be created for each offsite gateway. This could simply be a wp_ajax_nopriv_{$action} call that updates the status of the donation.
If you are interested, we are working on a new Gateway API that provides more of this functionality out-of-the-box. You can contact me at [email protected] for additional details.
- This reply was modified 3 years, 2 months ago by Kyle B. Johnson.
- This reply was modified 3 years, 2 months ago by Kyle B. Johnson.
Hello @radialyr, thanks for reaching out so that we can get this resolved. I have created a bug report based on your post, see https://github.com/impress-org/givewp/issues/5717.
So that we can correctly reproduce the issue, could you provide a copy of your System Report? This can be found in your admin dashboard under Donations, Settings, System Info. If you could please send that to [email protected] I will take a look.
Hello @sush1890,
It sounds like there is an error on the page that is being hidden by the iframe that we use to encapsulate the donation form.
My suggestion would be to view the donation form iframe source so that the error message is visible.
You can find the URL by inspecting the page (with the browser developer console), or you can guess the URL using the form’s slug or permalink appended with `giveDonationFormInIframe=1.
Here is an example:
https://wordpress.test/give/{form-slug}?giveDonationFormInIframe=1Forum: Plugins
In reply to: [User Shortcodes Plus] How to generate a shortcode custom field?For custom usermeta, you can use the [ user_meta id=”” key=””] shortcode, where
id
is the user ID (defualts to the current user) andkey
is the meta key that you want to access.- This reply was modified 5 years, 5 months ago by Kyle B. Johnson.
Forum: Plugins
In reply to: [User Shortcodes Plus] I’m using User Extra fields plugin…I would have to inspect the codebase of the plugin to determine the format of the meta, but being that it is a premium plugin I do not have access to a copy.
Forum: Reviews
In reply to: [User Shortcodes Plus] Great!@abiox I just released an update adding autocomplete support for the Block Editor (Gutenberg) – also updated the supported WordPress version to 5.2.2!
Thank you for the review ??
Forum: Reviews
In reply to: [Ninja Forms - The Contact Form Builder That Grows With You] Doesn’t WorkNinja Forms offers a block for the new editor.
Can you provide more detail and explain the issue that you are having? What expectation do you have and how is that not being met by the current version?
If there is an issue with the block editor integration then we’d like to get that resolved.
If you would, please contact our team at ninjaforms.com/contact
The wrapped code allows for “dry runs” of the conversion, which is an optional troubleshooting feature.
Forum: Plugins
In reply to: [Ninja Mail] Mail not sending!@ocularity, you’ll need to contact Ninja Mail support directly, especially if this is an account question.
Forum: Plugins
In reply to: [Ninja Shop - The Quickest Way to Start Selling] Fatal errorPeter,
I see where your ticket came in yesterday, I’m sorry that we did not respond earlier than we did.
We have come across different database configurations that are conflicting with our codebase – which we have been patching at we come across them.
Please check for v1.1.6 which is the latest release (2018.11.08) with the latest known fix.
Forum: Plugins
In reply to: [Ninja Shop - The Quickest Way to Start Selling] Fatal error@dorothy1508 This issue has been resolved (to the best of my knowledge) for a few releases.
If this is still an issue for some installations then I’d really like to get this resolved as soon as possible.
Can you confirm which version you installed?
Also, can you provide additional details about your website environment- host, PHP version, etc?
You can provide this information securely using our support system: https://getninjashop.com/contact/.
Forum: Plugins
In reply to: [User Shortcodes Plus] Company – Address – City – State – ZipThe plugin supports any registered user meta using the
[user_meta key='{meta_key}']
shortcode.That said, the user meta (in this case, the billing address) would need to have already been set for that user.
—
Reference: https://www.ads-software.com/support/topic/company-address-city-state-zip/Forum: Plugins
In reply to: [User Shortcodes Plus] Elementor compatibilityI did a local setup with Elementor and User Shortcodes Plus – the shortcodes are working.
T0 further troubleshoot your issue:
- Are the shortcodes working with the default WordPress editor?
- Have you tried disabling all other plugins to check for a conflict?