- get - Retrieve exchange session
Returns details of a previously created exchange session. Response varies by partner:
- MX:
_links.external-provider-session.href(redirect URL for verification). - Plaid:
externalProviderSessionToken(token to initialize Plaid Link). - Checkout.com:
externalProviderSessionDatawithid,payment_session_secret, andpayment_session_tokento initialize the Checkout.com Flow component for debit card capture (Push to Card).
declare(strict_types=1);
require 'vendor/autoload.php';
use Dwolla;
use Dwolla\Models\Components;
$sdk = Dwolla\Dwolla::builder()
->setSecurity(
new Components\Security(
clientID: '<YOUR_CLIENT_ID_HERE>',
clientSecret: '<YOUR_CLIENT_SECRET_HERE>',
)
)
->build();
$response = $sdk->exchangeSessions->get(
id: '<id>'
);
if ($response->exchangeSession !== null) {
// handle response
}| Parameter | Type | Required | Description |
|---|---|---|---|
id |
string | ✔️ | Exchange session's unique identifier |
?Operations\RetrieveCustomerExchangeSessionResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| Errors\RetrieveCustomerExchangeSessionForbiddenDwollaV1HalJSONException | 403 | application/vnd.dwolla.v1.hal+json |
| Errors\RetrieveCustomerExchangeSessionNotFoundDwollaV1HalJSONException | 404 | application/vnd.dwolla.v1.hal+json |
| Errors\APIException | 4XX, 5XX | */* |