jemt / paymentserviceproviderinterface Goto Github PK
View Code? Open in Web Editor NEWStandardized interface for carrying out online payments
License: GNU General Public License v3.0
Standardized interface for carrying out online payments
License: GNU General Public License v3.0
I get
Notice: Undefined index: ConfigPath in .../PSPI/PSPInterface.php on line 410
Notice: Undefined index: ConfigPath in .../PSPI/PSPInterface.php on line 412
in ensureBaseConfig..
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)
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
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
To use the modern responsive DIBS payment window, add this parameter to the form:
<input type="hidden" name="decorator" value="responsive">
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.