Skip to content

Commit dc85789

Browse files
Renamed payment send method; updated documentation;
1 parent 8c4e75d commit dc85789

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ Only `PaymentRequests` class has a few extra helper methods:
6464
```php
6565
$merchant_api->payment_requests->capture($payment_request_id,$currency,$amount)
6666
$merchant_api->payment_requests->refund($payment_request_id, $currency, $amount);
67-
$merchant_api->payment_requests->getPaymentLink($payment_request_id);
68-
$merchant_api->payment_requests->getDynamicLink($payment_request_id);
67+
$merchant_api->payment_requests->getLink($payment_request_id);
68+
$merchant_api->payment_requests->getDeepLink($payment_request_id);
6969
```
7070

7171
### Webhooks / Callbacks
@@ -94,13 +94,12 @@ $is_valid = $settle_client->isValidCallback($callbackUrl, $body, $headers, $meth
9494
$settle_data = $settle_client->getCallbackData();
9595
```
9696

97-
### Dynamic links
98-
Payment requests have a helper method for creating dynamic links but this is only a subset of all the cases when one might need a dynamic link.
99-
The main method for creating dynamic links can be found in the `SettleApiClient` class:
97+
### Deep links
98+
The SettleApiClient class has a helper method for creating deep links from short links for use on mobile devices.
99+
They integrate directly with the Settle mobile app.
100+
Example:
100101

101102
```php
102-
$dynamic_link = $settle_client->createDynamicLink([
103-
'shortLink' => 'https://settle.eu/s/gSpEb/pos123/'
104-
]);
103+
$short_link = 'https://settle.eu/s/gSpEb/pos123/';
104+
$deep_link = $settle_client->getDeepLink($short_link);
105105
```
106-
For more options refer to the [documentation](https://support.settle.eu/hc/en-150/articles/4412216178705-Settle-Dynamic-Links)

src/MerchantApi/PaymentSend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function create(array $data)
2727
* @return array
2828
* @throws SettleApiException
2929
*/
30-
public function outcome($payment_send_id)
30+
public function get($payment_send_id)
3131
{
3232
return $this->call('GET', "payment/v2/payment/{$payment_send_id}/");
3333
}

0 commit comments

Comments
 (0)