Updated: 15 January 2020
If you're upgrading to the latest version of the SDK, here's what's new.
- Removes backwards compatibility with the old Token Request flow.
A TokenRequestBuilder can no longer be constructed directly from a TokenPayload. Please set fields using the setters in
TokenRequestBuilder.php.
The
addOptionandaddAllOptionsmethods have been removed. Please use the setters for bank ID, source account ID, 'from' member, etc.
- Changes the
resolveAliasmethod to return aTokenMemberobject containing member ID and the full alias with the appropriate type, or null if the alias does not exist.
For example,
if (resolveAlias(alias)) { ... }might be rewritten asif (!is_null(resolveAlias(alias))) { ... }.
- Adds support for standing orders and scheduled payments.
To indicate that a transfer should be executed on a specific future date, use the
setExecutionDatemethod inTransferTokenRequestBuilder.php. To construct a token request for a standing order, useStandingOrderTokenRequestBuilder.php.
- Changes the build_proto.rb script to recursively search through subdirectories for proto files.
- Introduces new Token Request flow.
TokenRequestconsists ofTokenRequestPayload(immutable fields) andTokenRequestOptions(mutable fields). It should no longer containTokenPayload. - Adds support for eIDAS certificates.
- Introduces
TransferDestinationobject, which should be used for transfer destinations.
TransferEndpoint is now deprecated as a transfer destination. (Though it can still be used as a transfer source.)
- Defaults
transferRefIdtotokenRefIdif not set on token redemption. - Removes address, trusted beneficiary APIs.
- Permits use of
TokenClientwithout a developer key. - Add samples/ file demonstrating common uses of the SDK.
- Sets the
token-sdk-versionheader properly using the version incomposer.json.