forked from PrestaShopCorp/paypal
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from 202-ecommerce/develop
5.2.0
- Loading branch information
Showing
117 changed files
with
8,775 additions
and
3,436 deletions.
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
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 |
---|---|---|
|
@@ -20,3 +20,4 @@ order: | |
- Introduction | ||
- Entities | ||
- Controllers | ||
- API |
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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
name: PaypalApiManagerInterface | ||
category: API | ||
--- | ||
|
||
## Definition | ||
|
||
For more flexibility and extensibility, the logic for creating orders, | ||
refunds and cancellation is placed in the separate command classes. | ||
Each command must implement the `RequestInteface` interface which contains only one | ||
method `execute()`. | ||
The api manager, which must implement `PaypalApiManagerInterface`, is | ||
responsible for defining the required class. So `PaypalApiManagerInterface` is an | ||
abstract factory of the `RequestInterace` commandes. | ||
|
||
- **getAccessTokenRequest()** | ||
|
||
Returns `RequestInteface` object that allow take an access token. | ||
In fact it is used for checking of the credentials. | ||
|
||
|
||
- **getAuthorizationVoidRequest(`PaypalOrder` $paypalOrder)** | ||
|
||
Returns `RequestInteface` object that allow to cancel an authorized | ||
transaction. | ||
|
||
|
||
- **getCaptureAuthorizeRequest(`PaypalOrder` $paypalOrder)** | ||
|
||
Returns `RequestInteface` object that allow to capture fonds from an authorized | ||
transaction. | ||
|
||
|
||
- **getOrderAuthorizeRequest(`string` $idPayment)** | ||
|
||
Returns `RequestInteface` object that allow to create an authorized | ||
transaction. | ||
|
||
|
||
- **getOrderCaptureRequest(`string` $idPayment)** | ||
|
||
Returns `RequestInteface` object that allow to capture fonds from a | ||
transaction. | ||
|
||
|
||
- **getOrderGetRequest(`string` $idPayment)** | ||
|
||
Returns `RequestInteface` object that allow to get an information about a | ||
transaction. | ||
|
||
|
||
- **getOrderPartialRefundRequest(`PaypalOrder` $paypalOrder, `float` $amount)** | ||
|
||
Returns `RequestInteface` object that allow to do partial refund. | ||
|
||
|
||
- **getOrderPatchRequest(`string` $idPayment)** | ||
|
||
Returns `RequestInteface` object that allow to update a transaction. | ||
|
||
|
||
- **getOrderRefundRequest(`PaypalOrder` $paypalOrder)** | ||
|
||
Returns `RequestInteface` object that allow to do refund of whole order. | ||
|
||
|
||
- **getOrderRequest(`string` $idPayment)** | ||
|
||
Returns `RequestInteface` object that allow to create a transaction. |
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
Oops, something went wrong.