{"repo":"creagia/redsys-php","free":true,"listed":false,"github":"https://github.com/creagia/redsys-php","clone":"git clone https://github.com/creagia/redsys-php.git","description":"Integrate your PHP code with Redsys, the lead payments gateway in Spain.","language":"PHP","stars":18,"topics":["redsys","php","payment-gateway","sermepa"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Online payments with Redsys Integrate your PHP code with Redsys, the lead payments gateway in Spain. If you are using Laravel, check our other package creagia/laravel-redsys for a ready-to-use integration. Installation You can install the package via composer: Usage This package supports redirection and REST integration methods. You can learn more about the available integration methods on the official website. Creating a request Receive notifications from Redsys Environments Creating a request First, you need to create a RedsysClient with your environment configuration. After that, you should create a RedsysRequest using your client and your RequestParameters . Apart from the mandatory fields, you may define any extra optional field (like merchantUrl as the notification URL or urlOk and urlKo to redirect the users after paying) as your RequestParameters arguments. Finally, you can return the redirection form with the getRedirectFormHtml() method or send the post request using the sendPostRequest() . Read more about those integration methods on the Redsys documentation: - Redirection - REST Creating Credential-On-File (token) requests While you can create Credential-On-File configuring your RequestParameters as defined on Redsys documentation, this packages provides some helpers to make it easier. You can also send your request using the REST API as a post request: Receive notifications from Redsys If you defined the merchantUrl parameter during the payment request creation, ","default_branch":null,"files":null,"tree":[],"storefront":"/r/creagia","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/creagia/redsys-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}