Skip to content
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

Compare
Choose a tag to compare
@stevenobird stevenobird released this 09 Jan 12:49
· 235 commits to master since this release
7a2e264

PHP Payment API Release v1.3.0

Addition of constants and fromJson & fromPost static Request/Response constructors

Added

  • fromJson() and fromPost() static methods to instantiate Response and Request 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 urls
    • Brand 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 transactions
    • StatusCode includes transaction status codes
    • TransactionMode includes transaction modes, which are important for the running environment
    • TransactionType 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 the BasicPaymentMethodTrait

Deprecated

  • Declared Response::splitArray() as deprecated in favor of fromPost() and replaced it's code with a fromPost call