From 5761946d8ea01f274ad5eeb4da3c0ee0e6423b2b Mon Sep 17 00:00:00 2001 From: Martin K Date: Tue, 31 Oct 2023 09:12:40 +0100 Subject: [PATCH] Fix mobile and fax sub-model // rebrand --- LICENSE.txt | 2 +- README.md | 30 +++++++++---------- composer.json | 8 ++--- example.paymentRequest.directDebit.php | 10 +++++-- ...aymentRequest.installment.bankTransfer.php | 10 +++++-- ...paymentRequest.installment.directDebit.php | 10 +++++-- example.paymentRequest.invoice.php | 10 +++++-- 7 files changed, 52 insertions(+), 28 deletions(-) diff --git a/LICENSE.txt b/LICENSE.txt index f211519..61f1e93 100755 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2017 RatePAY GmbH +Copyright (c) 2023 Ratepay GmbH Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index a2cbba3..bc390ba 100755 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# RatePAY GmbH - PHP SDK +# Ratepay GmbH - PHP SDK ============================================ -|Module | RatePAY PHP SDK +|Module | Ratepay PHP SDK |------|---------- |Author | Aarne Welschlau -|Version | `0.9.3.2` -|Link | http://www.ratepay.com +|Version | `0.9.4.0` +|Link | http://docs.ratepay.com |Mail | integration@ratepay.com ### Installation @@ -16,26 +16,26 @@ composer install ### How to start Find the basic usage of the different API calls and operations of the API library explained in the example files. The *example.php* explains the basic usage of the library. -###### To run the examples, insert your (received by RatePAY Customer Integration Team) credentials into 'ratepay_credentials.php'. +###### To run the examples, insert your (received by Ratepay Merchant Onboarding Team) credentials into 'ratepay_credentials.php'. Following table describes the basic (transaction-driven) operations in chronological order. |#|File|Operation/+*Subtype*|Information|Description| |-|-|-|-|-| -|1|example.php|Payment Init|Head|Shows the basic functionality of the RatePAY library| +|1|example.php|Payment Init|Head|Shows the basic functionality of the Ratepay library| |2|example.paymentRequest.*.php|Payment Request|Head, customer, shopping basket, payment|Call for authorization. Different examples for all payment methods| -|3|example.paymentChange.cancellation.php|Payment Change - *Cancellation*|Head, shopping basket|Informs RatePAY of a cancelled basket or article| -|4|example.confirmationDeliver.php|Confirmation Deliver|Head, shopping basket|Informs RatePAY of a shipped basket or article| -|5|example.paymentChange.return.php|Payment Change - *Return*|Head, shopping basket|Informs RatePAY of a returned basket or article| -|6|example.paymentChange.changeOrder.php|Payment Change - *Change Order*|Head, shopping basket|Informs RatePAY of a totally changed shopping basket| -|7|example.paymentChange.credit.php|Payment Change - *Credit*|Head, shopping basket|Informs RatePAY of a subsequent refund or fee| +|3|example.paymentChange.cancellation.php|Payment Change - *Cancellation*|Head, shopping basket|Informs Ratepay of a cancelled basket or article| +|4|example.confirmationDeliver.php|Confirmation Deliver|Head, shopping basket|Informs Ratepay of a shipped basket or article| +|5|example.paymentChange.return.php|Payment Change - *Return*|Head, shopping basket|Informs Ratepay of a returned basket or article| +|6|example.paymentChange.changeOrder.php|Payment Change - *Change Order*|Head, shopping basket|Informs Ratepay of a totally changed shopping basket| +|7|example.paymentChange.credit.php|Payment Change - *Credit*|Head, shopping basket|Informs Ratepay of a subsequent refund or fee| Following table describes optional and transaction-independent operations. |File|Operation/+*Subtype*|Description| |-|-|-| -|example.PaymentInit.php|Payment Init|**Optional** call before *Payment Request*. Opens new transaction. Returns RatePAY transaction id. If *Payment Request* is called without transaction id *Payment Init* is called automatically by library| -|example.PaymentQuery.php|Payment Query|Identical to *Payment Request*. Returns all admitted RatePAY payment methods for this transaction| +|example.PaymentInit.php|Payment Init|**Optional** call before *Payment Request*. Opens new transaction. Returns Ratepay transaction id. If *Payment Request* is called without transaction id *Payment Init* is called automatically by library| +|example.PaymentQuery.php|Payment Query|Identical to *Payment Request*. Returns all admitted Ratepay payment methods for this transaction| |example.PaymentConfirm.php|Payment Confirm|**Optional** call which is called between *Payment Request* and *Confirmation Deliver* to confirm authorization and transmit additional order information| -|example.configurationRequest.php|Configuration Request|Returns the merchant installment configuration from RatePAY| +|example.configurationRequest.php|Configuration Request|Returns the merchant installment configuration from Ratepay| |example.calculationRequest.php|Calculation Request - *calculation-by-time*/*calculation-by-rate*|Calculates an installment plan. Subtype has to be *calculation-by-rate* which calculates by a rate defined by the customer or *calculation-by-time* which calculates by a duration chosen by the customer| -|example.profileRequest.php|Profile Request|Returns the merchant configuration from RatePAY, includes the installment configuration| +|example.profileRequest.php|Profile Request|Returns the merchant configuration from Ratepay, includes the installment configuration| diff --git a/composer.json b/composer.json index adbf4a1..e112c0c 100755 --- a/composer.json +++ b/composer.json @@ -1,10 +1,10 @@ { "name": "ratepay/php-sdk", - "description": "RatePAY PHP SDK", - "version": "0.9.3.1", + "description": "Ratepay PHP SDK", + "version": "0.9.4.0", "license": "MIT", "type": "library", - "homepage": "https://dev.ratepay.com", + "homepage": "https://docs.ratepay.com", "support": { "email": "integration@ratepay.com", "source": "https://github.com/ratepay/php-sdk" @@ -12,7 +12,7 @@ "authors": [ { "name": "Aarne Welschlau", - "email": "aarne.welschlau@ratepay.com" + "email": "integration@ratepay.com" } ], "require": { diff --git a/example.paymentRequest.directDebit.php b/example.paymentRequest.directDebit.php index e16ddaf..b13d037 100755 --- a/example.paymentRequest.directDebit.php +++ b/example.paymentRequest.directDebit.php @@ -83,12 +83,18 @@ ], 'Contacts' => [ 'Email' => "alice@umbrella.tld", - //'Mobile' => "0123 4567890", + //'Mobile' => [ + //'AreaCode' => "0172", + //'DirectDial' => "0172 3456789" + //], 'Phone' => [ //'AreaCode' => "012", 'DirectDial' => "012 3456789" ], - //'Fax' => "012 3456777", + //'Fax' => [ + //'AreaCode' => "012", + //'DirectDial' => "012 3456789" + //], ], 'BankAccount' => [ // In case of payment method 'elv' 'Owner' => "Alice Nobodyknows", diff --git a/example.paymentRequest.installment.bankTransfer.php b/example.paymentRequest.installment.bankTransfer.php index 8d6e625..48eede8 100755 --- a/example.paymentRequest.installment.bankTransfer.php +++ b/example.paymentRequest.installment.bankTransfer.php @@ -83,12 +83,18 @@ ], 'Contacts' => [ 'Email' => "alice@umbrella.tld", - //'Mobile' => "0123 4567890", + //'Mobile' => [ + //'AreaCode' => "0172", + //'DirectDial' => "0172 3456789" + //], 'Phone' => [ //'AreaCode' => "012", 'DirectDial' => "012 3456789" ], - //'Fax' => "012 3456777", + //'Fax' => [ + //'AreaCode' => "012", + //'DirectDial' => "012 3456789" + //], ], // 'CompanyName' => "Umbrella Corp.", // 'CompanyType' => "AG", diff --git a/example.paymentRequest.installment.directDebit.php b/example.paymentRequest.installment.directDebit.php index d80f18c..34f6ce4 100755 --- a/example.paymentRequest.installment.directDebit.php +++ b/example.paymentRequest.installment.directDebit.php @@ -83,12 +83,18 @@ ], 'Contacts' => [ 'Email' => "alice@umbrella.tld", - //'Mobile' => "0123 4567890", + //'Mobile' => [ + //'AreaCode' => "0172", + //'DirectDial' => "0172 3456789" + //], 'Phone' => [ //'AreaCode' => "012", 'DirectDial' => "012 3456789" ], - //'Fax' => "012 3456777", + //'Fax' => [ + //'AreaCode' => "012", + //'DirectDial' => "012 3456789" + //], ], 'BankAccount' => [ // In case of payment method 'elv' 'Owner' => "Alice Nobodyknows", diff --git a/example.paymentRequest.invoice.php b/example.paymentRequest.invoice.php index 3f986a3..1bca0f8 100755 --- a/example.paymentRequest.invoice.php +++ b/example.paymentRequest.invoice.php @@ -83,12 +83,18 @@ ], 'Contacts' => [ 'Email' => "alice@umbrella.tld", - //'Mobile' => "0123 4567890", + //'Mobile' => [ + //'AreaCode' => "0172", + //'DirectDial' => "0172 3456789" + //], 'Phone' => [ //'AreaCode' => "012", 'DirectDial' => "012 3456789" ], - //'Fax' => "012 3456777", + //'Fax' => [ + //'AreaCode' => "012", + //'DirectDial' => "012 3456789" + //], ], // 'CompanyName' => "Umbrella Corp.", // 'CompanyType' => "AG",