• Resolved rom22

    (@rom22)


    Hi there,

    Can I get the id of the post where the short code is, from the thank you page ?

    I need to process the post, where the pay button is, from the thank you page. Is it possible ?

    Thanks,

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Noor Alam

    (@naa986)

    @rom22, If you added the shortcode to a post, you should be able to find the ID of the post from your admin dashboard (Posts > All Posts).

    Thread Starter rom22

    (@rom22)

    I think I didn’t explain correctly. I have a custom post with the short code.

    The client click on pay, he goes to the checkout page, then he’s back to the site on the thanks page.

    When the client has payed, and arrived on the thanks page, I need to use set_post_type($post_id, ‘payed’) to change to type of post.

    If I could get the post id where the client is coming from when he gets to the thank you page, I could then use my set_post_type function.

    I could also used this id to show infos from the post on the thanks page.

    For exemple the thanks page could say something like : “Thanks for paying this : (post_title($post_id))”

    Plugin Author Noor Alam

    (@naa986)

    Thanks for the explanation. This information is not stored in the plugin. The plugin has no way to know where the button was initially clicked after the payment.

    Thread Starter rom22

    (@rom22)

    Ok, I’ll find an other way then. Last short question, I’m in test mode for now, and I have the email notification Enabled. But the buyer and the seller don’t receive the confirmation email, and also I don’t see the transaction in “all order” in Stripe checkout in my wp admin. I can see the test transaction success in my stripe account though. Is this normal ? Does it only notify when it’s not in test mode ? Thanks,

    Plugin Author Noor Alam

    (@naa986)

    Please check the “Webhook Endpoint” section of the documentation.

    Thread Starter rom22

    (@rom22)

    Ah, ok so after checking, I was missing the web hook in stripe test mode. Now it’s working. Thanks !

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Get id of the post with the short code from the thank you page ?’ is closed to new replies.