• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Payments Plugin for Stripe

Stripe payment plugins for your WordPress site

  • Home
  • Documentation
  • Addons
  • Login
    • Sign In
    • Edit Profile
    • Terms & Conditions
    • My Downloads
    • License Key
  • Support
    • Support Forum
    • Forum Search
    • Forum Login
    • Forum Registration
    • Email Support for Customers
  • Contact Us
  • Show Search
Hide Search
You are here: Home / Topics / using tags on stripe-checkout-result page as shortcode arguments

[Resolved] using tags on stripe-checkout-result page as shortcode arguments

· ·

Home › Forums › Stripe Payments Plugin › using tags on stripe-checkout-result page as shortcode arguments

  • This topic has 2 replies, 2 voices, and was last updated 7 years ago by Admin.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 18, 2018 at 4:26 pm #853
    Admin
    Keymaster

    Hello,

    Thanks for your great plugin.

    I need to add a product license key to the stripe-checkout-result page, which is generated using the customer’s email address. While I can successfully display the email entered using the {payer_email} tag, I haven’t yet succeeded in passing it on to my shortcode function (called [hash]) that generates the license key.

    For example, a stripe-checkout-result page containing

    [accept_stripe_payment_checkout]
    [hash name=”{payer_email}”]
    [/accept_stripe_payment_checkout]

    does NOT replace {payer_email} with the email address entered by the customer, but instead uses the literal string ‘{payer_email}’ (which is obviously not what I want). I also tried other variations, such as not using double quotes, or using {{…}} etc.

    How can I enforce that the {payer_email} is parsed *before* it is passed on to the hash function?

    Thanks!

    May 19, 2018 at 1:24 am #856
    Admin
    Keymaster

    You can’t use the tags that way. Instead use the filter hook of the plugin to get notified when a transaction happens and it is going to show data on the thank you page, then from your custom code handle the license related functionality. Using the hook is the proper way of doing what you are trying to do.

    The plugin triggers the following filter hook that you should be able to use. It will pass the transaction data also:

    asp_stripe_payments_checkout_page_result

    The following documentation has an example of how to use it:

    Stripe Payments Plugin – Filter Hooks Reference

    May 19, 2018 at 4:18 am #857
    Admin
    Keymaster

    Thanks for the pointer, I got it to work now – your help is greatly appreciated!!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Primary Sidebar

Featured Addons and Extensions

  • Subscription Payments Addon
  • Additional Custom Fields
  • Secure Downloads Addon
  • Apple Pay, Google Pay, Afterpay

Addon Bundle

Stripe Payments Addon Bundle

A Simple & Lightweight Plugin

Our Philosophy with the Plugin

Support Links

  • Support Forum
  • Support Contact

Search

Copyright © 2025 | Stripe Plugins | A member of the Tips and Tricks HQ family.