PHP 클래스 PayPal\Api\Amount

상속: extends PayPal\Common\PPModel
파일 보기 프로젝트 열기: paypal/rest-api-sdk-php 1 사용 예제들

공개 메소드들

메소드 설명
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