Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Check the response for errors
- if(!$response->getErrors()){
- //If there are no errors, end the user to the Payment Gateway
- header('Location: '.$response->SharedPaymentUrl);
- die();
- }else{
- //Display Errors
- foreach($response->getErrors() as $error){
- echo "Error: ".\Eway\Rapid::getMessage($error)."<br>";
- }
- }
- ?>
Add Comment
Please, Sign In to add comment