• Hi Team

    I am a long-time customer of PDF Stamper plugin and have now started using your Stripe payments plugin.

    I am using Stripe payments to sell paperback (physical book) as well as PDF (eBook). While paperback products are easier to configure, there is no clear way to make PDF Stamper work with your Stripe plugin. I don’t want to provide a simple file download, but a secure PDF Stamper download link so my eBooks are securely sold – stamped with customer checkout metadata.

    So, I noticed that PDF stamper can be used using the PHP code snippet that’s included in the PDF Stamper page, and it is working fine on its own, but I don’t know how to integrate (wire) it with your Stripe checkout-result page so I can use the checkout variables (email, payment info, names, etc.) and pass them to PDF stamper PHP snippet for generating a download link. I don’t know which part of PHP source code is responsible for generating the checkout results and pulling up the checkout-result wordpress page.

    I am selling 3 paperback and 3 corresponding PDFs, so need a way to generate the correct PDF download links depending on the item purchased via the Stripe plugin.

    Please help…this is urgent.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter outlook9394

    (@outlook9394)

    I can also use a separate product and a corresponding thank-you page for each of the products to make the download link generation easier. I own 3 PDF stamper licenses and use your plugin on 3 sites.

    Still need to figure out a way to catch those Accept Stripe Payment (ASP) checkout variables after a successful form submission, feed them into PDF stamper PHP snippet to generate a Link, and then echo that link with back to thank-you page along with other checkout confirmation information.

    Thanks a bunch!

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Hi.

    PDF Stamper integration has been added to current testing version (2.0.26t2). You can get it by going to Stripe Payments -> Settings and looking into right-side column.

    A new meta-box has been added to product edit page, “PDF Stamper Integration” with new option called “Stamp PDF File”. Enable it for your product and this should satisfy your requirements.

    Let me know how it goes.

    Thread Starter outlook9394

    (@outlook9394)

    Hi there

    thank you so much for providing a solution for this, great support!

    On process side, I have the plugin installed and checked the box. How do I tell the Stripe product which PDF file to stamp and provide the link on the thank you page? Just want to make sure I understand how this integration work for stamping corresponding PDF file.

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    You need to put URL of the file you want to stamp into “Download URL” section of the product.

    Stamped file URL will be displayed on default thank you page. If you have customized it, you can use {item_url} tag to insert it on your custom thank you page (and to send it to your customer via email as well).

    Thread Starter outlook9394

    (@outlook9394)

    Thanks Alex, Got it. Awesome support. What checkout or user metadata will the PDF file be stamped with?

    BTW I didn’t see any stripe webhook (callback) URLs setting within the Stripe plugin. Is there any way to configure it?

    I use MailerLite for emails, so unfortunately, I won’t be able to send it out to buyer ??

    Thread Starter outlook9394

    (@outlook9394)

    Ok. I did a test checkout and found out that stamping metadata is as per the PDF stamper settings. I had {transaction_id} in PDF stamper, but it did’nt get printed on the stamped PDF for some reason. Appreciate if you can ensure that all thank-yo u page tags Or PDF stamper tags can be used for maximum security.

    I think I will need to setup one thank-you page for each eBook, since I sell paperback as well and use email as password within PDF settings.

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    I had {transaction_id} in PDF stamper, but it did’nt get printed on the stamped PDF for some reason.

    It wasn’t added to the integration yet. Will add it in upcoming testing version.

    BTW I didn’t see any stripe webhook (callback) URLs setting within the Stripe plugin. Is there any way to configure it?

    Not sure I got this question right. Can you elaborate?

    I think I will need to setup one thank-you page for each eBook, since I sell paperback as well and use email as password within PDF settings.

    Yep, this is the best way to handle it. The integration will use all the settings from PDF Stamper (e.g. Text Format, Security Settings etc).

    Thread Starter outlook9394

    (@outlook9394)

    Thanks again. Understood.

    By webhooks, I meant Stripe webhooks, like what generally payment plugins have. I understand there may not be a reason with your plugin.

    One more question. There is one situation where I want to charge a 9% sales tax for some products, when customers are in my state. Is there a way to hack into the plugin code to add 9% to total (i.e. 1.09) when buyer’s billing address matches my state, say California (CA)? Like where you have tax rate in the settings, if there was a drop down that allowed users to select the state to apply that tax, it would do it for me.

    • This reply was modified 4 years, 7 months ago by outlook9394.
    • This reply was modified 4 years, 7 months ago by outlook9394.
    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    I had {transaction_id} in PDF stamper, but it did’nt get printed on the stamped PDF for some reason.

    This has been added into current testing version (2.0.26t3). Please install it and check if {transaction_id} is working.

    By webhooks, I meant Stripe webhooks, like what generally payment plugins have. I understand there may not be a reason with your plugin.

    Yep, core plugin is not using webhooks for payment confirmation. To confirm payment, it requires information directly from Stripe instead by making API request.

    One more question. There is one situation where I want to charge a 9% sales tax for some products, when customers are in my state. Is there a way to hack into the plugin code to add 9% to total (i.e. 1.09) when buyer’s billing address matches my state, say California (CA)? Like where you have tax rate in the settings, if there was a drop down that allowed users to select the state to apply that tax, it would do it for me.

    Currently this is not possible. We will most likely implement taxes functionality the same way it is done in WooCommerce – e.g. you can configure taxes yourself per state, country, zip code etc. and then plugin should handle it automatically.

    As a workaround, you can have TWO payment buttons – one with tax and one without it. You can use the same product for this. Configure it to have the tax included. Then use following shortcodes:

    [asp_product id="123" tax="0" button_text="Buy without tax"]

    [asp_product id="123" button_text="Buy with tax"]

    Just replace 123 with your actual product ID.

    Thread Starter outlook9394

    (@outlook9394)

    Thanks Alex. It is all good, thank you for providing an awesome support!

    On tax side, you have my thumbs up on the Woo like handling, that’s indeed a neat solution. I am not using the shortcode, instead using the “Link URL” method – does the tax=”0″ work with Link URL?

    However, with button approach, I will be relying on customers in CA to add 9% extra, many may ignore it altogether ?? .. I think I will need to enforce it somehow – any hack into PHP to add 9% extra when state is California ??

    Thread Starter outlook9394

    (@outlook9394)

    One more item that’s worthy of look for everyone’s sake, and that is caching. When I have “prefetch payment popup scripts” ON, I noticed that any global/per-product setting doesn’t reflect in the popup – unless I uncheck-save-check again in that sequence.

    IMO, it would be a good idea to clear prefect assets after any global or product changes that are relevant for payment popup, e.g. if I toggle state display, etc.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘thank you page and providing PDF Stamper download link’ is closed to new replies.