Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8418027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:12:17+00:00 2026-06-10T02:12:17+00:00

I want to display a message in php ( $mymessage ) after a successful

  • 0

I want to display a message in php ($mymessage) after a successful paypal payement.

For example:

  1. A client want buy my product on http://www.mysite.com/product where there is a “pay with paypal” button.
  2. The client pay on paypal’s website.
  3. The client is redirected on http://www.mysite.com/product where a new message appear ($mymessage).

I know it’s possible to check with javascript if the payment is done and refresh automatically the page displaying the message.

Someone can show me the way? (link, ideas or script)

Any help is welcome!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:12:19+00:00Added an answer on June 10, 2026 at 2:12 am

    You can do this by return url in paypal. In return url page you have to check the status of payment. if it succeed means you can store message in session and show it to user. after showing the message unset the session variable used for message. This is simple way to show the message.

    I dont know what you are trying? i mention the shortest way for your question

    Sample code to check the status in return url

    $address_url= (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
    $req = 'cmd=_notify-synch';
    $tx_token = $_REQUEST['tx'];
    if(isset($_REQUEST['st']))
    $st = $_REQUEST['st'];
    

    in $st , check the status.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to display error message or alert message after checking the condition. here
I want to display "hello" message for 3 minutes and after that it should
I would want to display a certain message on a php page at a
I want to show a message after Successful insert next to input field ,
I want to display message box contain label and textbox and ok button and
I want to display the message Hi how are you? for 1 minute using
I am doing a project in which i want to display a particular message
Hi I have created a zend_form_element_submit. Now i want to display a confirmation message
I want to make an application that would display a message when a user
I want to use XmCreate{Error|Warning|Info}Dialog to display some message in screen in my SDL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.