title: verify payment in mastercard payment gateway
body: <p>I have implemented MPGS in my webiste. I followed this link for the integration.<a href="https://network.gateway.mastercard.com/api/documentation/integrationGuidelines/hostedCheckout/integrationModelHostedCheckout.html" rel="nofollow noreferrer">https://network.gateway.mastercard.com/api/documentation/integrationGuidelines/hostedCheckout/integrationModelHostedCheckout.html</a>. Everything seems to be working. After successful transaction, I am redirected to receipt.php file. I would like to verify whether the payment was successful.If possible,how can I achieve?Should I need to create a cron job or something in PHP to check if it was successful or not</p>
  
  <pre><code>&lt;script src="https://network.gateway.mastercard.com/checkout/version/51/checkout.js"
              data-error="&lt;?php echo $_SESSION['home_url'].'/errorpage';?&gt;"
              data-cancel="&lt;?php echo $_SESSION['home_url'].'/cancelpage';?&gt;"
              data-complete="&lt;?php echo $_SESSION['home_url'].'/receipt';?&gt;"
              data-timeout="&lt;?php echo $_SESSION['home_url'].'/timeout';?&gt;"
              &gt; 
  </code></pre>