@@ -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"; |
|
@@ -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: |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | // ----------------------------- |
| 67 | 67 | // Step 5: |
| 68 | 68 | // Redirect to the payment page |
| 69 | -echo 'Redirect to: ' . $response->getRedirectUrl() ."<br>\n"; |
|
| 69 | +echo 'Redirect to: ' . $response->getRedirectUrl() . "<br>\n"; |
|
| 70 | 70 | |
| 71 | 71 | // ----------------------------- |
| 72 | 72 | // Step 6: |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | ); |
| 26 | 26 | |
| 27 | 27 | $amount = new Container\Amount( |
| 28 | - 5000, // amount in cents |
|
| 28 | + 5000, // amount in cents |
|
| 29 | 29 | 'CHF' |
| 30 | 30 | ); |
| 31 | 31 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | $response->getTransaction()->getStatus(), |
| 62 | 62 | $response->getPaymentMeans()->getBrand()->getName(), |
| 63 | 63 | $response->getPaymentMeans()->getDisplayText() |
| 64 | -). "\n"; |
|
| 64 | +) . "\n"; |
|
| 65 | 65 | |
| 66 | 66 | // Recurring payment transactions still need to be captured. |
| 67 | 67 | // see: example-capture.php |
@@ -46,6 +46,6 @@ |
||
| 46 | 46 | die ($e->getErrorResponse()->getErrorMessage()); |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | -echo 'The transaction has successfully been captured! Capture-Id: ' . $response->getCaptureId()."\n"; |
|
| 49 | +echo 'The transaction has successfully been captured! Capture-Id: ' . $response->getCaptureId() . "\n"; |
|
| 50 | 50 | |
| 51 | 51 | // You have now fully completed a successful payment :) |
| 52 | 52 | \ No newline at end of file |