This repository has been archived by the owner on Mar 29, 2022. It is now read-only.
v1.3.0: Merge pull request #6 from heidelpay/develop
PHP Payment API Release v1.3.0
Addition of constants and fromJson & fromPost static Request/Response constructors
Added
fromJson()
andfromPost()
static methods to instantiateResponse
andRequest
objects from Json objects or PHP arrays with a static call.- Several constants for Api Config, Paymentmethod codes, status/reason codes, ... see the following classes in the
Heidelpay\PhpPaymentApi\Constants
namespace:ApiConfig
includes this sdk's version, live and test api urlsBrand
includes codes for brands (e.g. Visa, giropay, PayPal)PaymentMethod
includes codes for all payment methods (e.g. CC for Credit Card, OT for Online Transfer, ...)ProcessingResult
includes transaction result codes (ACK and NOK for now)ReasonCode
includes reason codes (indicators for errors) of transactionsStatusCode
includes transaction status codesTransactionMode
includes transaction modes, which are important for the running environmentTransactionType
includes codes for transaction types (e.g. Capture, Debit, Reversal, ...)
Changed
- Clearified the exception message in
verifySecurityHash()
(Response script/page should only be called by heidelpay)
Removed
AbstractPaymentMethod
class in favor of theBasicPaymentMethodTrait
Deprecated
- Declared
Response::splitArray()
as deprecated in favor offromPost()
and replaced it's code with afromPost
call