Skip to content

Commit b8de0d6

Browse files
authored
Merge pull request #3 from MartinKuhl/master
Fix mobile and fax sub-model // rebrand
2 parents 3ec2972 + 5761946 commit b8de0d6

7 files changed

+52
-28
lines changed

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2017 RatePAY GmbH
3+
Copyright (c) 2023 Ratepay GmbH
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# RatePAY GmbH - PHP SDK
1+
# Ratepay GmbH - PHP SDK
22
============================================
33

4-
|Module | RatePAY PHP SDK
4+
|Module | Ratepay PHP SDK
55
|------|----------
66
|Author | Aarne Welschlau
7-
|Version | `0.9.3.2`
8-
|Link | http://www.ratepay.com
7+
|Version | `0.9.4.0`
8+
|Link | http://docs.ratepay.com
99
|Mail | integration@ratepay.com
1010

1111
### Installation
@@ -16,26 +16,26 @@ composer install
1616
### How to start
1717

1818
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.
19-
###### To run the examples, insert your (received by RatePAY Customer Integration Team) credentials into 'ratepay_credentials.php'.
19+
###### To run the examples, insert your (received by Ratepay Merchant Onboarding Team) credentials into 'ratepay_credentials.php'.
2020
Following table describes the basic (transaction-driven) operations in chronological order.
2121

2222
|#|File|Operation/+*Subtype*|Information|Description|
2323
|-|-|-|-|-|
24-
|1|example.php|Payment Init|Head|Shows the basic functionality of the RatePAY library|
24+
|1|example.php|Payment Init|Head|Shows the basic functionality of the Ratepay library|
2525
|2|example.paymentRequest.*.php|Payment Request|Head, customer, shopping basket, payment|Call for authorization. Different examples for all payment methods|
26-
|3|example.paymentChange.cancellation.php|Payment Change - *Cancellation*|Head, shopping basket|Informs RatePAY of a cancelled basket or article|
27-
|4|example.confirmationDeliver.php|Confirmation Deliver|Head, shopping basket|Informs RatePAY of a shipped basket or article|
28-
|5|example.paymentChange.return.php|Payment Change - *Return*|Head, shopping basket|Informs RatePAY of a returned basket or article|
29-
|6|example.paymentChange.changeOrder.php|Payment Change - *Change Order*|Head, shopping basket|Informs RatePAY of a totally changed shopping basket|
30-
|7|example.paymentChange.credit.php|Payment Change - *Credit*|Head, shopping basket|Informs RatePAY of a subsequent refund or fee|
26+
|3|example.paymentChange.cancellation.php|Payment Change - *Cancellation*|Head, shopping basket|Informs Ratepay of a cancelled basket or article|
27+
|4|example.confirmationDeliver.php|Confirmation Deliver|Head, shopping basket|Informs Ratepay of a shipped basket or article|
28+
|5|example.paymentChange.return.php|Payment Change - *Return*|Head, shopping basket|Informs Ratepay of a returned basket or article|
29+
|6|example.paymentChange.changeOrder.php|Payment Change - *Change Order*|Head, shopping basket|Informs Ratepay of a totally changed shopping basket|
30+
|7|example.paymentChange.credit.php|Payment Change - *Credit*|Head, shopping basket|Informs Ratepay of a subsequent refund or fee|
3131

3232
Following table describes optional and transaction-independent operations.
3333

3434
|File|Operation/+*Subtype*|Description|
3535
|-|-|-|
36-
|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|
37-
|example.PaymentQuery.php|Payment Query|Identical to *Payment Request*. Returns all admitted RatePAY payment methods for this transaction|
36+
|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|
37+
|example.PaymentQuery.php|Payment Query|Identical to *Payment Request*. Returns all admitted Ratepay payment methods for this transaction|
3838
|example.PaymentConfirm.php|Payment Confirm|**Optional** call which is called between *Payment Request* and *Confirmation Deliver* to confirm authorization and transmit additional order information|
39-
|example.configurationRequest.php|Configuration Request|Returns the merchant installment configuration from RatePAY|
39+
|example.configurationRequest.php|Configuration Request|Returns the merchant installment configuration from Ratepay|
4040
|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|
41-
|example.profileRequest.php|Profile Request|Returns the merchant configuration from RatePAY, includes the installment configuration|
41+
|example.profileRequest.php|Profile Request|Returns the merchant configuration from Ratepay, includes the installment configuration|

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"name": "ratepay/php-sdk",
3-
"description": "RatePAY PHP SDK",
4-
"version": "0.9.3.1",
3+
"description": "Ratepay PHP SDK",
4+
"version": "0.9.4.0",
55
"license": "MIT",
66
"type": "library",
7-
"homepage": "https://dev.ratepay.com",
7+
"homepage": "https://docs.ratepay.com",
88
"support": {
99
"email": "integration@ratepay.com",
1010
"source": "https://github.com/ratepay/php-sdk"
1111
},
1212
"authors": [
1313
{
1414
"name": "Aarne Welschlau",
15-
"email": "aarne.welschlau@ratepay.com"
15+
"email": "integration@ratepay.com"
1616
}
1717
],
1818
"require": {

example.paymentRequest.directDebit.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,18 @@
8383
],
8484
'Contacts' => [
8585
'Email' => "alice@umbrella.tld",
86-
//'Mobile' => "0123 4567890",
86+
//'Mobile' => [
87+
//'AreaCode' => "0172",
88+
//'DirectDial' => "0172 3456789"
89+
//],
8790
'Phone' => [
8891
//'AreaCode' => "012",
8992
'DirectDial' => "012 3456789"
9093
],
91-
//'Fax' => "012 3456777",
94+
//'Fax' => [
95+
//'AreaCode' => "012",
96+
//'DirectDial' => "012 3456789"
97+
//],
9298
],
9399
'BankAccount' => [ // In case of payment method 'elv'
94100
'Owner' => "Alice Nobodyknows",

example.paymentRequest.installment.bankTransfer.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,18 @@
8383
],
8484
'Contacts' => [
8585
'Email' => "alice@umbrella.tld",
86-
//'Mobile' => "0123 4567890",
86+
//'Mobile' => [
87+
//'AreaCode' => "0172",
88+
//'DirectDial' => "0172 3456789"
89+
//],
8790
'Phone' => [
8891
//'AreaCode' => "012",
8992
'DirectDial' => "012 3456789"
9093
],
91-
//'Fax' => "012 3456777",
94+
//'Fax' => [
95+
//'AreaCode' => "012",
96+
//'DirectDial' => "012 3456789"
97+
//],
9298
],
9399
// 'CompanyName' => "Umbrella Corp.",
94100
// 'CompanyType' => "AG",

example.paymentRequest.installment.directDebit.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,18 @@
8383
],
8484
'Contacts' => [
8585
'Email' => "alice@umbrella.tld",
86-
//'Mobile' => "0123 4567890",
86+
//'Mobile' => [
87+
//'AreaCode' => "0172",
88+
//'DirectDial' => "0172 3456789"
89+
//],
8790
'Phone' => [
8891
//'AreaCode' => "012",
8992
'DirectDial' => "012 3456789"
9093
],
91-
//'Fax' => "012 3456777",
94+
//'Fax' => [
95+
//'AreaCode' => "012",
96+
//'DirectDial' => "012 3456789"
97+
//],
9298
],
9399
'BankAccount' => [ // In case of payment method 'elv'
94100
'Owner' => "Alice Nobodyknows",

example.paymentRequest.invoice.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,18 @@
8383
],
8484
'Contacts' => [
8585
'Email' => "alice@umbrella.tld",
86-
//'Mobile' => "0123 4567890",
86+
//'Mobile' => [
87+
//'AreaCode' => "0172",
88+
//'DirectDial' => "0172 3456789"
89+
//],
8790
'Phone' => [
8891
//'AreaCode' => "012",
8992
'DirectDial' => "012 3456789"
9093
],
91-
//'Fax' => "012 3456777",
94+
//'Fax' => [
95+
//'AreaCode' => "012",
96+
//'DirectDial' => "012 3456789"
97+
//],
9298
],
9399
// 'CompanyName' => "Umbrella Corp.",
94100
// 'CompanyType' => "AG",

0 commit comments

Comments
 (0)