PHP Class PayPal\Api\Amount

Inheritance: extends PayPal\Common\PPModel
Afficher le fichier Open project: paypal/rest-api-sdk-php Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

getCurrency() public méthode

3-letter currency code. PayPal does not support all currencies.
public getCurrency ( ) : string
Résultat string

getDetails() public méthode

Additional details of the payment amount.
public getDetails ( ) : Details
Résultat Details

getTotal() public méthode

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
Résultat string

setCurrency() public méthode

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

setDetails() public méthode

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

setTotal() public méthode

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