PHP Класс PayPal\Api\Amount

Наследование: extends PayPal\Common\PPModel
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
getCurrency ( ) : string 3-letter currency code. PayPal does not support all currencies.
getDetails ( ) : Details Additional details of the payment amount.
getTotal ( ) : string Total amount charged from the payer to the payee. In case of a refund, this is the refunded amount to the original payer from the payee. 10 characters max with support for 2 decimal places.
setCurrency ( string $currency ) 3-letter currency code. PayPal does not support all currencies.
setDetails ( Details $details ) Additional details of the payment amount.
setTotal ( string | double $total ) Total amount charged from the payer to the payee. In case of a refund, this is the refunded amount to the original payer from the payee. 10 characters max with support for 2 decimal places.

Описание методов

getCurrency() публичный Метод

3-letter currency code. PayPal does not support all currencies.
public getCurrency ( ) : string
Результат string

getDetails() публичный Метод

Additional details of the payment amount.
public getDetails ( ) : Details
Результат Details

getTotal() публичный Метод

Total amount charged from the payer to the payee. In case of a refund, this is the refunded amount to the original payer from the payee. 10 characters max with support for 2 decimal places.
public getTotal ( ) : string
Результат string

setCurrency() публичный Метод

3-letter currency code. PayPal does not support all currencies.
public setCurrency ( string $currency )
$currency string

setDetails() публичный Метод

Additional details of the payment amount.
public setDetails ( Details $details )
$details Details

setTotal() публичный Метод

Total amount charged from the payer to the payee. In case of a refund, this is the refunded amount to the original payer from the payee. 10 characters max with support for 2 decimal places.
public setTotal ( string | double $total )
$total string | double