Git Product home page Git Product logo

postfinanceepayment's Introduction

PostFinance E-Payment Build Status

PHP 5 library for handling PostFinance E-Payments

Requirements

This library has the following requirements:

  • PHP 5.6+

Installation

install the library via composer:

composer require whatwedo/postfinance-e-payment

Documentation

postfinanceepayment's People

Contributors

finalgamer avatar wanze avatar wdburgdorf avatar xarem avatar ymox avatar

Stargazers

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

Watchers

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

postfinanceepayment's Issues

Howto add additional parameters to form

Grüezi mitenand!

I found your library a moment ago while looking for a way to integrate PostFinance E-Payment into a Symfony project. This is real nice work !
For my project, I need to work with aliases. As far as I understand, to receive an alias in a response, there must be the corresponding field(s) in the form. I could not find out how to add it through the library, as i missed a way to access the payment parameter bag.
May I ask you for help?

Thanks in advance

Update Parameter.php

Hi, thank you very much for your package.

My problem is that I get the error: PostFinance signature does not match
After looking around I saw that there are some parameters that are not added.
I checked all the parameters from https://shared.ecom-psp.com/v2/docs/guides/e-Commerce/SHA-OUT_params.txt and added the missing ones.
I don't know how to sort and name them nicely so I taught you will make a better job than me.

Can you please update the Paramenter.php list with the following CONST

const COLLECTOR_BIC = 'COLLECTOR_BIC';
const COLLECTOR_IBAN = 'COLLECTOR_IBAN';
const CREATION_STATUS = 'CREATION_STATUS';
const CREDITDEBIT = 'CREDITDEBIT';
const DEVICEID = 'DEVICEID';
const ENCCARDNO = 'ENCCARDNO';
const FXAMOUNT = 'FXAMOUNT';
const FXCURRENCY = 'FXCURRENCY';
const MOBILEMODE = 'MOBILEMODE';
const NBREMAILUSAGE = 'NBREMAILUSAGE';
const NBRIPUSAGE = 'NBRIPUSAGE';
const NBRIPUSAGE_ALLTX = 'NBRIPUSAGE_ALLTX';
const NBRUSAGE = 'NBRUSAGE';
const PAYMENT_REFERENCE = 'PAYMENT_REFERENCE';
const TICKET = 'TICKET';

and update the

public static $postSaleParameters = array(
    self::AAV_ADDRESS,
    self::AAV_CHECK,
    self::AAV_MAIL,
    self::AAV_NAME,
    self::AAV_PHONE,
    self::AAV_ZIP,
    self::ACCEPTANCE,
    self::ALIAS,
    self::ALIASOPERATION,
    self::ALIASPERSISTEDAFTERUSE,
    self::ALIASUSAGE,
    self::AMOUNT,
    self::BIC,
    self::CARD_BIN,
    self::CARD_BRAND,
    self::CARD_NUMBER,
    self::CARD_COUNTRY,
    self::CARD_HOLDER,
    self::COLLECTOR_BIC,
    self::COLLECTOR_IBAN,
    self::CREATION_STATUS,
    self::CREDITDEBIT,
    self::COMPLUS,
    self::CURRENCY,
    self::CVC_CHECK,
    self::DCC_COMMPERCENTAGE,
    self::DCC_CONVAMOUNT,
    self::DCC_CONVCCY,
    self::DCC_EXCHRATE,
    self::DCC_EXCHRATESOURCE,
    self::DCC_EXCHRATETS,
    self::DCC_INDICATOR,
    self::DCC_MARGINPERCENTAGE,
    self::DCC_VALIDHOURS,
    self::DIGEST_CARD_NUMBER,
    self::DEVICEID,
    self::ECI,
    self::EXPIRATION_DATE,
    self::CLIENT_EMAIL,
    self::ENCCARDNO,
    self::FXAMOUNT,
    self::FXCURRENCY,
    self::IP,
    self::IP_COUNTRY,
    self::MANDATE_ID,
    self::MOBILEMODE,
    self::NBREMAILUSAGE,
    self::NBRIPUSAGE,
    self::NBRIPUSAGE_ALLTX,
    self::NBRUSAGE,
    self::NC_ERROR,
    self::NC_ERROR_PLUS,
    self::ORDER_ID,
    self::PAYMENT_ID,
    self::PAYMENT_ID_SUB,
    self::PAYMENT_REFERENCE,
    self::PAYMENT_METHOD,
    self::SCORING_CATEGORY,
    self::SCORING,
    self::SEQUENCE_TYPE,
    self::SIGNATURE_DATE,
    self::STATUS,
    self::CARD_BRAND_SUB,
    self::SUBSCRIPTION_ID,
    self::TICKET,
    self::TRANSACTION_DATE,
    self::CARD_VIRTUAL,
);

Status Change 5 to 9

HI,

I come to you on a question about the status.
First, the code you provides in the doc works perfectly !! Great job.

currently when an order is placed the status is 5.
and I would like from my site,to apply for the status to become 9

How can I do this with your module.?
it is possible?

thanks for your help

problem with composer

hi,

i'm interesting by your extension!!i tried to install via composer like this :
"composer require whatwedo/postfinance-e-payment".

unfortunately, i got this error :
[InvalidArgumentException]
Could not find package whatwedo/postfinance-e-payment at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability.

Do you have a solution to bypass this problem?
thank you very much for your help and well done for your extension

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.