@@ -29,7 +29,7 @@ |
||
| 29 | 29 | * @var array<string>|null |
| 30 | 30 | * @SerializedName("MandatoryFields") |
| 31 | 31 | */ |
| 32 | - private $mandatoryFields = []; |
|
| 32 | + private $mandatoryFields = [ ]; |
|
| 33 | 33 | |
| 34 | 34 | public function __construct(bool $display = true) |
| 35 | 35 | { |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | * @var array<string>|null |
| 11 | 11 | * @SerializedName("MerchantEmails") |
| 12 | 12 | */ |
| 13 | - private $merchantEmails = []; |
|
| 13 | + private $merchantEmails = [ ]; |
|
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * @var string|null |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | * @var array<string>|null |
| 11 | 11 | * @SerializedName("MerchantEmails") |
| 12 | 12 | */ |
| 13 | - private $merchantEmails = []; |
|
| 13 | + private $merchantEmails = [ ]; |
|
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * @var string|null |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | * @SerializedName("ErrorDetail") |
| 46 | 46 | * @Type("array") |
| 47 | 47 | */ |
| 48 | - private $errorDetail = []; |
|
| 48 | + private $errorDetail = [ ]; |
|
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * @var string|null |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | // ----------------------------- |
| 59 | 59 | // Step 5: |
| 60 | 60 | // Redirect to the payment page |
| 61 | -echo 'Redirect to: ' . $response->getRedirect()->getRedirectUrl() ."<br>\n"; |
|
| 61 | +echo 'Redirect to: ' . $response->getRedirect()->getRedirectUrl() . "<br>\n"; |
|
| 62 | 62 | |
| 63 | 63 | // ----------------------------- |
| 64 | 64 | // Step 6: |
@@ -42,4 +42,4 @@ |
||
| 42 | 42 | die ($e->getErrorResponse()->getErrorMessage()); |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | -echo 'The insert has been successful! Alias id: ' . $response->getAlias()->getId()."<br>\n"; |
|
| 45 | +echo 'The insert has been successful! Alias id: ' . $response->getAlias()->getId() . "<br>\n"; |
|
@@ -53,5 +53,5 @@ |
||
| 53 | 53 | die ($e->getErrorResponse()->getErrorMessage()); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | -echo 'The insert has been successful! Alias id: ' . $response->getAlias()->getId()."<br>\n"; |
|
| 56 | +echo 'The insert has been successful! Alias id: ' . $response->getAlias()->getId() . "<br>\n"; |
|
| 57 | 57 | |
@@ -52,4 +52,4 @@ |
||
| 52 | 52 | die ($e->getErrorResponse()->getErrorMessage()); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | -echo 'The update has been successful! Alias id: ' . $response->getAlias()->getId()."<br>\n"; |
|
| 55 | +echo 'The update has been successful! Alias id: ' . $response->getAlias()->getId() . "<br>\n"; |
|
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | die ($e->getErrorResponse()->getErrorMessage()); |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | -echo 'The transaction has been successful! Transaction id: ' . $response->getTransaction()->getId()."\n"; |
|
| 45 | +echo 'The transaction has been successful! Transaction id: ' . $response->getTransaction()->getId() . "\n"; |
|
| 46 | 46 | |
| 47 | 47 | // ----------------------------- |
| 48 | 48 | // Step 4: |