PHP 클래스 PayPal\Api\Details

Additional details of the payment amount.
상속: extends PayPal\Common\PayPalModel
파일 보기 프로젝트 열기: paypal/rest-api-sdk-php 1 사용 예제들

공개 메소드들

메소드 설명
getFee ( ) : string Fee charged by PayPal. In case of a refund, this is the fee amount refunded to the original receipient of the payment.
getGiftWrap ( ) : string Amount being charged as gift wrap fee.
getHandlingFee ( ) : string Amount being charged for the handling fee. Only supported when the payment_method is set to paypal.
getInsurance ( ) : string Amount being charged for the insurance fee. Only supported when the payment_method is set to paypal.
getShipping ( ) : string Amount charged for shipping. 10 characters max with support for 2 decimal places.
getShippingDiscount ( ) : string Amount being discounted for the shipping fee. Only supported when the payment_method is set to paypal.
getSubtotal ( ) : string Amount of the subtotal of the items. **Required** if line items are specified. 10 characters max, with support for 2 decimal places.
getTax ( ) : string Amount charged for tax. 10 characters max with support for 2 decimal places.
setFee ( string | double $fee ) Fee charged by PayPal. In case of a refund, this is the fee amount refunded to the original receipient of the payment.
setGiftWrap ( string | double $gift_wrap ) Amount being charged as gift wrap fee.
setHandlingFee ( string | double $handling_fee ) Amount being charged for the handling fee. Only supported when the payment_method is set to paypal.
setInsurance ( string | double $insurance ) Amount being charged for the insurance fee. Only supported when the payment_method is set to paypal.
setShipping ( string | double $shipping ) Amount charged for shipping. 10 characters max with support for 2 decimal places.
setShippingDiscount ( string | double $shipping_discount ) Amount being discounted for the shipping fee. Only supported when the payment_method is set to paypal.
setSubtotal ( string | double $subtotal ) Amount of the subtotal of the items. **Required** if line items are specified. 10 characters max, with support for 2 decimal places.
setTax ( string | double $tax ) Amount charged for tax. 10 characters max with support for 2 decimal places.

메소드 상세

getFee() 공개 메소드

Fee charged by PayPal. In case of a refund, this is the fee amount refunded to the original receipient of the payment.
public getFee ( ) : string
리턴 string

getGiftWrap() 공개 메소드

Amount being charged as gift wrap fee.
public getGiftWrap ( ) : string
리턴 string

getHandlingFee() 공개 메소드

Amount being charged for the handling fee. Only supported when the payment_method is set to paypal.
public getHandlingFee ( ) : string
리턴 string

getInsurance() 공개 메소드

Amount being charged for the insurance fee. Only supported when the payment_method is set to paypal.
public getInsurance ( ) : string
리턴 string

getShipping() 공개 메소드

Amount charged for shipping. 10 characters max with support for 2 decimal places.
public getShipping ( ) : string
리턴 string

getShippingDiscount() 공개 메소드

Amount being discounted for the shipping fee. Only supported when the payment_method is set to paypal.
public getShippingDiscount ( ) : string
리턴 string

getSubtotal() 공개 메소드

Amount of the subtotal of the items. **Required** if line items are specified. 10 characters max, with support for 2 decimal places.
public getSubtotal ( ) : string
리턴 string

getTax() 공개 메소드

Amount charged for tax. 10 characters max with support for 2 decimal places.
public getTax ( ) : string
리턴 string

setFee() 공개 메소드

Fee charged by PayPal. In case of a refund, this is the fee amount refunded to the original receipient of the payment.
public setFee ( string | double $fee )
$fee string | double

setGiftWrap() 공개 메소드

Amount being charged as gift wrap fee.
public setGiftWrap ( string | double $gift_wrap )
$gift_wrap string | double

setHandlingFee() 공개 메소드

Amount being charged for the handling fee. Only supported when the payment_method is set to paypal.
public setHandlingFee ( string | double $handling_fee )
$handling_fee string | double

setInsurance() 공개 메소드

Amount being charged for the insurance fee. Only supported when the payment_method is set to paypal.
public setInsurance ( string | double $insurance )
$insurance string | double

setShipping() 공개 메소드

Amount charged for shipping. 10 characters max with support for 2 decimal places.
public setShipping ( string | double $shipping )
$shipping string | double

setShippingDiscount() 공개 메소드

Amount being discounted for the shipping fee. Only supported when the payment_method is set to paypal.
public setShippingDiscount ( string | double $shipping_discount )
$shipping_discount string | double

setSubtotal() 공개 메소드

Amount of the subtotal of the items. **Required** if line items are specified. 10 characters max, with support for 2 decimal places.
public setSubtotal ( string | double $subtotal )
$subtotal string | double

setTax() 공개 메소드

Amount charged for tax. 10 characters max with support for 2 decimal places.
public setTax ( string | double $tax )
$tax string | double