I’m using Stripe Add-on for WP Download Manager Pro. After successfully paying for an item, I am returned to the cart where it says the “Order Status: Processing” and “If you still want to complete the order, Pay Now (with green button).”
Endpoint URL seems connected. And webhooks are listening for payment_intent.payment_failed and payment_intent.succeeded
How can I get WPDM to recognize successful payment?
Thank you so much! I checked the REST API and it seems like this would be the way to go.
However I have 2 concerns that maybe you could help me with:
1- In the documentation I cannot see how to add the file itself in the package. Do you have an example of how this is done? Do you need to provide a url for the file to be uploaded or is it encoded somehow?
2- There is a bug reported in Github related to WordPress 6.3.2 and above. Has this been fixed? https://github.com/imsas/wpdm-rest-api-docs/issues
Thanks in advance for your help!
Hello enric gustems,
For now, to get the requested mail in the message too in the email you can add this code portion from this directory wp-content\plugins\download-manager\src\Package\PackageLocks.php file in line number 291 changing
$message = __MailUI::panel("Your have a new pending download request for:", ["<a href='".get_permalink($packageID)."'>".get_the_title($packageID)."</a>"])."<a href='".admin_url('edit.php?post_type=wpdmpro&page=wpdm-subscribers')."' class='button full green'>".__('Review the request', WPDM_TEXT_DOMAIN)."</a>";
to
$message = __MailUI::panel("Your have a new pending download request for email: ".$_POST['email']." and Package:", ["<a href='".get_permalink($packageID)."'>".get_the_title($packageID)."</a>"])."<a href='".admin_url('edit.php?post_type=wpdmpro&page=wpdm-subscribers')."' class='button full green'>".__('Review the request', WPDM_TEXT_DOMAIN)."</a>";
by adding this only,
email: ".$_POST['email']." and Package:"
please check and let me know, if it works for you.
Thank you and regards
Hello Susan Colao,
Hope you are well. And thanks for writing to us. For Woocommerce alternatives, you can also use our WordPress Digital Store Solution – Premium Package add-on that helps you to set up prices for your digital products and sell them easily from your WordPress site.
But if you still want to use woocommerce, You can try copying the master download URL of your file from WPDM and then attach the URL to the Woocommerce product as I image attached,
please check and let me know, if you have any queries.
Thank you and regards
Hello Nayeem,
thank you so much for your help. Unfortunately, it seems do not work. If I paste the string onto a web page in the browser it works, but if I put that url as the URL of the woocommerce product, it gives me the ‘File not Found’ error. In addition to not working, this system would still force me to create a product on Download Manager with a URL, which I don’t need and don’t want to do. Isn’t it possible to get a URL ofa PDF file uploaded somewhere that is good for WooCommerce and also stamped?
Thank you so much for your help.
Hi Nayeem
We are using W3 Total Cache. I have set items_per_page = 20. We are still having problems on this page and also on the following pages:
When you look at the source code the image is loaded multiple times. We are using a custom template where the package icon is displayed. The template looks as follows:
<div class=”well c2a3″>
    <div class=”media”>
        <div class=”mr-3″ align=”left”>
           [icon]
        </div>
        <div class=”media-body”>
            <h3 class=”media-heading” style=”padding-top: 0px;border:0px;margin: 0 0 5px 0;font-size:12pt; “>
                [title]
                <span style=”font-size:8pt;font-weight:300″ class=”text-muted ml-4″>
                    <i class=”fas fa-hdd mr-1″></i> [file_size]
                    <i class=”ml-3 far fa-arrow-alt-circle-down mr-1″></i> [download_count] downloads
                    <i class=”ml-3 far fa-clock mr-1″></i> [create_date]
                </span>
            </h3>
            [excerpt_200]</br>
        </div>
        <div class=”ml-3″ align=”right”>
            [download_link]
        </div>
    </div>
</div>
Regards, Eva
Hello Ries Caroline,
Hope you are well. And thanks for writing to us. Can you please elaborate more and let me know which custom fields you are trying to add? please share the related URL. if possible, can you please, give your temporary wp-admin login details in a private reply to check the issue?
Thank you and regards
Hello Mariusz G,
Hope you are well. Thanks for writing to us. For changing the text on the download button you shall find for it from certain packages from Package Settings as I image attached,
For template editing, you can clone the template as I image attached,
And change the [download_link] template tag to  <a href="[download_url]" class="btn btn-info">Download Now!</a>
For changing text on the download button at once for all packages, you can check this add-on,
And for your Polish translation, you can use any translation plugin for example Loco Translate, you can check the beginner doc here,
https://localise.biz/wordpress/plugin/beginners
please check and let me know, if you have any queries more.
Thank you and regards
Hello Justin,
Sorry for your inconvenience. For individual packages, you can try the below code putting in your theme functions.php file,
add_filter("wpdm_audio_play_button", function($play_button, $play_url, $package, $fileID) {
  if(in_array($package->ID, [10, 20, 30])) $play_button = "";
  return $play_button;
}, 10, 4);
Here, 10, 20, 30 is your package ID. And for the option to turn off the audio player, we shall add it to our next updates. I hope you have understood. please check and let me know.
Thank you and regards
Hi Nayeem,
Thanks for this, and just to confirm my thinking. Currently there isn’t an option to apply if/then logic within the template manager/editor itself, correct? I will need to copy files from src into my child theme and edit those and then address any changes as new updates role out with the WPDM plugin?
Also, I’m using ACF so that’s good to know I can add the field and access it with the template tool.
Again, I basically want to combine a video and corresponding PDF document that compliments that video. I don’t think there is an option natively within WPDM to do that (correct me if I’m wrong), so I’m hoping to make something work with the templates. However, at times there might not be a video, only the PDF, thus my interest in some if/then capabilities in the template layout to only display the video button if the link is defined (in an ACF field) on the package.
Another option, separate from the ACF field, it seems I can add a youtube URL to the package. In the same package I’d have PDf file and the Youtube link. Is there a function in the link templates tool that will let me select files within the package? I see I can pull the [file_list], I’m not seeing if there is an option that lets me pull file_1, file_2, etc.
Be well!
-Scott
Yes, possible. You are also able to add the image to the download button as the code here from your page/link template,
<a href="[download_url]" class="btn btn-info"><img src="Image_URL" /></a>
please check and let me know
Thank you again and regards
Hi there,
I have added the ‘wpdmdl’ in the ‘Drop Query String’ as said in the article.
But I still have the problem with the [#donwload_url#] tag.
Thank you
Hello MAXIM MIRONOV,
I have checked your issue. When you attach Box.com files, it attaches with a URL so while downloading it redirects to the URL. However, you can also use the WPDM - Google Drive add-on, it is downloading as you are expecting https://game-tales.ru/download/wpdm-test. please check and let me know
Thank you and regards
WPDM Block Hotlink add-on will help you to be redirected to the item/package details page or any other page specified by you. The external sites can only place the link to your item/package details page, not the direct download URL. Thus, there is no redirect to the box.com. Please also check the add-ons details page, https://www.wpdownloadmanager.com/download/wpdm-block-hotlink/. Please check and let me know
Thank you and regards
Hello Sini,
Hope you are well. Can you please share with me where or you can also share the URL where you have added the translations? Please check and let me know
Thank you and regards
Hello,
Thanks for contacting us.
You can do it by adding custom css.
Please provide related url to check the issue further.
Thanks
Tanvir
Hello,
When adding a file to a new package, through the WPDM Downloads > All Packages > New Package screen, it seems to add the file to the WP MEdia Library, where the direct File URL can be accessed by anyone if entered into a browser.
Is there a setting where files that are part of a WPDM package are not publically accessible, and only accessible based on the WPDM settings?
I appreciate your time.
In the standard WP search, i type “toelichting”. A page with search results appears.
The first result is “Toelichting op kaart 3.3” that has the link “https://oudbennekom.nl/download/toelichting-op-kaart-3-3/”
When you click the link the page with URL “https://oudbennekom.nl/download/toelichting-op-kaart-3-3/” opens but it is the front page of the Woo shop.
Now the funny thing: when i use the standard theme twentytwentythree the same search gives me the same result “https://oudbennekom.nl/download/toelichting-op-kaart-3-3/” However, when i click on it now, it does open the right page, the page with the download button.
Remark: when i look at my server for “https://oudbennekom.nl/download/”, there is no such folder.
I am using
-the latest WordPress, Divi theme
-The permalink setting in WP : https://oudbennekom.nl/voorbeeld-bericht/ (Message Name)
-For Woo, i use “Custom base”. In my case: /winkel/
-latest Download Manager, version 3.2.81 by W3 Eden, Inc
-latest “Divi Easy Digital Downloads” Version 1.0.1 by DiviPlugins that adds Easy Digital Downloads modules to the Divi theme and builder.
Any ideas what is happening here?
Hello,
Thanks for contacting us.
It can be made responsive by adding custom css.
Please share related url to check the issue further.
Thanks
Hi,
Thanks so much for taking your time to reply ๐ What I do is that I replace this part of Dropbox URL “www.dropbox.com” with this one “dl.dropboxusercontent.com”, it allows browser to fetch file directly without opening the Dropbox website.
I have been using this method in Download Manger for the last 8 months and the URL was always added without any issue. But now in the updated version, when I paste the modified URL with “dl.dropboxusercontent.com”, Download Manager says invalid URL. This is the issue. Thank you again for your time.