Giter VIP home page Giter VIP logo

sermepa-omnipay's Introduction

Omnipay: RedSys

RedSys driver for the Omnipay PHP payment processing library

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.6+. This package implements RedSys (formerly Sermepa) support for Omnipay.

Requirements

  • PHP >= 5.6
  • Composer (curl -s http://getcomposer.org/installer | php)

Installation

Omnipay is installed via Composer. To install, simply run:

composer require nazka/sermepa-omnipay

Basic Usage

For general usage instructions, please see the main Omnipay repository.

Upgrade to Omnipay 3.X

Changes for use with Omnipay 3.0

Additional Parameter

If you want to avoid having to multiply the value by 100 just add a new parameter ( multiply=true ) to the purchase function.

Additional Callback

Redsys has an additional callback ( Respuesta online ) that may be active in your redsys platform and therfore must be implemented. This new callback cannot follow the normal usage of Omnipay. You need to implement checkCallbackResponse() and decodeCallbackResponse().

sermepa-omnipay's People

Contributors

devnix avatar drmonkeyninja avatar ebisbe avatar joshnts avatar jsampedro77 avatar kingio avatar libertogimenez avatar mfcanovas avatar nerburish avatar ramonnitsnets avatar urtzip avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sermepa-omnipay's Issues

Little example like Stripe or another

Thank you by your plugin, but I am confused about the parameters. Can you put a simple example like Stripe? (/src/Gateway.php)

For example:

/**
 * Stripe Gateway.
 *
 * Example:
 *
 * <code>
 *   // Create a gateway for the Stripe Gateway
 *   // (routes to GatewayFactory::create)
 *   $gateway = Omnipay::create('Stripe');
 *
 *   // Initialise the gateway
 *   $gateway->initialize(array(
 *       'apiKey' => 'MyApiKey', <== PARAMETERS HERE
 *   ));
 *
 */

Which is the parameter to put the "FUC" ?

Pay with card

Hi, i want to pay with the
DS_MERCHANT_PAN
DS_MERCHANT_E XPIRYDATE
"DS_MERCHANT_CVV2

Why they are not in the PurchaseRequest?? can you add it please?

Thank you.

Update of the version tag

After the update of the master branch with the tokenization support we need you tou update the release version so composer will pick the latest version.

About the "titular" parameter

Hi! I was checking out your integration as I want to implement Omnipay instead of working directly with Redsys.

I've found that you are setting the Ds_Merchant_Titular parameter the same as Ds_Merchant_MerchantName in

public function setMerchantName($merchantName)
{
$this->setParameter('merchantName', $merchantName);
$this->setParameter('titular', $merchantName); //is this right??
}

If I'm not wrong, the merchant name would be the name of your business and the "titular" parameter would be the cardholder, so it must be the complete name of the client, and not the business name at all!

Would you want a PR for this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.