Git Product home page Git Product logo

paymentserviceproviderinterface's People

Contributors

jemt avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

maxbyz

paymentserviceproviderinterface's Issues

GetCallbackData returns only small portion of $_POST data

The security check in GetCallbackData is much welcome. However the small portion of $_POST data returned is problematic if you are working with provider specific return values (such as status codes).

Perhaps you could add another entry ("InternalData" or "PostData") to the associative array result and simply dump $_POST there)

Support for status code processing (DIBS)

DIBS return various status codes which are useful for debugging and order process updates.

PSPI could implement a method for mapping the typical codes across payment providers (PayPal codes are not that different from DIBS' codes).

http://tech.dibspayment.com/nodeaddpage/toolboxstatuscodes

// 0 transaction inserted
// 1 declined
// 2 authorization approved
// 3 capture sent to acquirer
// 4 capture declined by acquirer
// 5 capture completed
// 6 authorization deleted
// 7 capture balanced
// 8 partially refunded and balanced
// 9 refund sent to acquirer
// 10 refund declined
// 11 refund completed
// 12 capture pending
// 13 "ticket" transaction
// 14 deleted "ticket" transaction
// 15 refund pending
// 16 waiting for shop approval
// 17 declined by DIBS
// 18 multicap transaction open
// 19 multicap transaction closed

PSP::GetConfig($provider) with multiple providers

The implementation of PSP::GetConfig($provider) is inconvenient. It is not possible to load the configuration for two different providers within the same script - the first provider configuration requested will always be returned due to a static reference.

$dibs = PSP::GetConfig("DIBS") // Returns DIBS PSPM as expected
$paypal = PSP::GetConfig("PayPal") // BUG: Returns DIBS PSPM even though PayPal was expected

Use responsive design (DIBS)

To use the modern responsive DIBS payment window, add this parameter to the form:

<input type="hidden" name="decorator" value="responsive">

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.