forked from LiveCarta/PayPal-PHP-Server-SDK
1.1 KiB
1.1 KiB
Platform Fee
The platform or partner fee, commission, or brokerage fee that is associated with the transaction. Not a separate or isolated transaction leg from the external perspective. The platform fee is limited in scope and is always associated with the original payment for the purchase unit.
Structure
PlatformFee
Fields
| Name | Type | Tags | Description | Getter | Setter |
|---|---|---|---|---|---|
amount |
Money |
Required | The currency and amount for a financial transaction, such as a balance or payment due. | getAmount(): Money | setAmount(Money amount): void |
payee |
?PayeeBase |
Optional | The details for the merchant who receives the funds and fulfills the order. The merchant is also known as the payee. | getPayee(): ?PayeeBase | setPayee(?PayeeBase payee): void |
Example (as JSON)
{
"amount": {
"currency_code": "currency_code6",
"value": "value0"
},
"payee": {
"email_address": "email_address4",
"merchant_id": "merchant_id6"
}
}