Guest User

Untitled

a guest
Nov 24th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <?php
  2.  
  3. //Check the response for errors
  4. if(!$response->getErrors()){
  5.  
  6. //If there are no errors, end the user to the Payment Gateway
  7. header('Location: '.$response->SharedPaymentUrl);
  8. die();
  9.  
  10. }else{
  11.  
  12. //Display Errors
  13. foreach($response->getErrors() as $error){
  14. echo "Error: ".\Eway\Rapid::getMessage($error)."<br>";
  15. }
  16.  
  17. }
  18.  
  19. ?>
Add Comment
Please, Sign In to add comment