title: MaterCard Payment Gateway Complete Callback with Session id
body: <p>I wonder if any one had build API with MPGS hosted checkout payment i parameters it's ok,and the transaction moves correctly and the receipt page shows, but the problem is when the receipt page shows to the customer there was no redirect to my website; I searched for how to make a callback:</p>
  
  <p>complete callback done with :</p>
  
  <ol>
  <li>create a checkout session using the create checkout session
  operation</li>
  <li>pass session.id into checkout.configure ()  </li>
  <li>provide callback.complete function or url</li>
  </ol>
  
  <p>the code to create a create a checkout session is :</p>
  
  <pre><code>curl https://switch.gateway.mastercard.com/api/nvp/version/51 \    
  -d "apiOperation=CREATE_CHECKOUT_SESSION" \
  -d "apiPassword=$PWD" \
  -d "interaction.returnUrl=" \
  -d "apiUsername=merchant." \
  -d "merchant=" \
  -d "order.id=" \
  -d "order.amount=100.00" \
  -d "order.currency=USD"
  </code></pre>
  
  <p>But I have no idea how to place it in the script above.</p>
  
  <p>how can I solve it?</p>
  
  <p>please advise ,</p>