-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed API-specific default values from gateway class (temporary).
All the default values in the gateway class *must* be supported with setters and getters in all request messages that the gateway supports; the core tests insist on this. Most of those parameters are irrelevant for the complete*, the acceptNotification and the other backend functions, so make no sense to implemement. Those messages will probably have to be moved to a "Backend" gateway class so the default parameters match the supported message parameters.
- Loading branch information
Showing
2 changed files
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,14 +122,16 @@ $request = $gateway->purchase([ | |
...normal purchase data (TODO: examples)... | ||
...additional gateway-specific feature data (TODO: examples)... | ||
// | ||
// These three URLs are mandatory to the gateway, but will be defaulted to the | ||
// These three URLs are required to the gateway, but will be defaulted to the | ||
// returnUrl where they are not set. | ||
'returnUrl' => 'https://example.com/complete', | ||
//'cancelUrl' => 'https://example.com/complete?status=cancel', // User cancelled | ||
//'failureUrl' => 'https://example.com/complete?status=failure', // Failed to authorise | ||
// | ||
// These two URLs are required. | ||
'notifyUrl' => 'https://example.com/acceptNotification', | ||
'serviceUrl' => 'https://example.com/terms_of_service_and_contact', | ||
// | ||
'confirmMail' => '[email protected]', | ||
]); | ||
$response = $request->send(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters