Overview

Classes

  • Syspay_Merchant_AstroPayBanksRequest
  • Syspay_Merchant_BillingAgreementCancellationRequest
  • Syspay_Merchant_BillingAgreementInfoRequest
  • Syspay_Merchant_BillingAgreementListRequest
  • Syspay_Merchant_BillingAgreementRequest
  • Syspay_Merchant_ChargebackInfoRequest
  • Syspay_Merchant_ChargebackListRequest
  • Syspay_Merchant_Client
  • Syspay_Merchant_ConfirmRequest
  • Syspay_Merchant_EMS
  • Syspay_Merchant_Entity
  • Syspay_Merchant_Entity_AstroPayBank
  • Syspay_Merchant_Entity_BillingAgreement
  • Syspay_Merchant_Entity_Chargeback
  • Syspay_Merchant_Entity_Creditcard
  • Syspay_Merchant_Entity_Customer
  • Syspay_Merchant_Entity_Eterminal
  • Syspay_Merchant_Entity_Payment
  • Syspay_Merchant_Entity_PaymentMethod
  • Syspay_Merchant_Entity_PaymentRecipient
  • Syspay_Merchant_Entity_Plan
  • Syspay_Merchant_Entity_Refund
  • Syspay_Merchant_Entity_Subscription
  • Syspay_Merchant_Entity_SubscriptionEvent
  • Syspay_Merchant_EterminalRequest
  • Syspay_Merchant_IpAddressesRequest
  • Syspay_Merchant_PaymentInfoRequest
  • Syspay_Merchant_PaymentListRequest
  • Syspay_Merchant_PaymentRequest
  • Syspay_Merchant_PlanInfoRequest
  • Syspay_Merchant_PlanRequest
  • Syspay_Merchant_PlanUpdateRequest
  • Syspay_Merchant_RebillRequest
  • Syspay_Merchant_Redirect
  • Syspay_Merchant_RefundInfoRequest
  • Syspay_Merchant_RefundListRequest
  • Syspay_Merchant_RefundRequest
  • Syspay_Merchant_Request
  • Syspay_Merchant_SubscriptionCancellationRequest
  • Syspay_Merchant_SubscriptionInfoRequest
  • Syspay_Merchant_SubscriptionRebillRequest
  • Syspay_Merchant_SubscriptionRequest
  • Syspay_Merchant_Utils
  • Syspay_Merchant_VoidRequest

Interfaces

  • Syspay_Merchant_Entity_ReturnedEntityInterface

Exceptions

  • Syspay_Merchant_EMSException
  • Syspay_Merchant_RedirectException
  • Syspay_Merchant_RequestException
  • Syspay_Merchant_UnexpectedResponseException
  • Overview
  • Class
  • Tree

Class Syspay_Merchant_Entity_PaymentRecipient

A payment recipient object (to use for recipient_map)

Syspay_Merchant_Entity
Extended by Syspay_Merchant_Entity_PaymentRecipient
Located at Syspay/SDK/Merchant/Entity/PaymentRecipient.php
Methods summary
public integer
# getUserId( )

Gets the The SysPay user id of the recipient. This is used as verification to make sure the recipient's account_id is not bogus.

Gets the The SysPay user id of the recipient. This is used as verification to make sure the recipient's account_id is not bogus.

Returns

integer
integer
public Syspay_Merchant_Entity_PaymentRecipient
# setUserId( integer $user_id )

Sets the The SysPay user id of the recipient. This is used as verification to make sure the recipient's account_id is not bogus.

Sets the The SysPay user id of the recipient. This is used as verification to make sure the recipient's account_id is not bogus.

Parameters

$user_id
the user_id

Returns

Syspay_Merchant_Entity_PaymentRecipient
self
public integer
# getAccountId( )

Gets the The SysPay account id of the recipient.

Gets the The SysPay account id of the recipient.

Returns

integer
integer
public Syspay_Merchant_Entity_PaymentRecipient
# setAccountId( integer $account_id )

Sets the The SysPay account id of the recipient.

Sets the The SysPay account id of the recipient.

Parameters

$account_id
the account_id

Returns

Syspay_Merchant_Entity_PaymentRecipient
self
public integer
# getCalcType( )

Gets the The way the amount to transfer to the recipient is calculated. (one of the CALC_TYPE constants)

  • CALC_TYPE_PERCENT: The value property is a (percentage*100) of the total payment amount
  • CALC_TYPE_FIXED: The 'value' property is a fixed amount. In this case the 'currency' must be given.

Gets the The way the amount to transfer to the recipient is calculated. (one of the CALC_TYPE constants)

  • CALC_TYPE_PERCENT: The value property is a (percentage*100) of the total payment amount
  • CALC_TYPE_FIXED: The 'value' property is a fixed amount. In this case the 'currency' must be given.

Returns

integer
integer
public Syspay_Merchant_Entity_PaymentRecipient
# setCalcType( integer $calc_type )

Sets the The way the amount to transfer to the recipient is calculated. (one of the CALC_TYPE constants)

  • CALC_TYPE_PERCENT: The value property is a (percentage*100) of the total payment amount
  • CALC_TYPE_FIXED: The 'value' property is a fixed amount. In this case the 'currency' must be given.

Sets the The way the amount to transfer to the recipient is calculated. (one of the CALC_TYPE constants)

  • CALC_TYPE_PERCENT: The value property is a (percentage*100) of the total payment amount
  • CALC_TYPE_FIXED: The 'value' property is a fixed amount. In this case the 'currency' must be given.

Parameters

$calc_type
the calc_type

Returns

Syspay_Merchant_Entity_PaymentRecipient
self
public integer
# getValue( )

Gets the Value used to compute the amount.

Gets the Value used to compute the amount.

Returns

integer
integer
public Syspay_Merchant_Entity_PaymentRecipient
# setValue( integer $value )

Sets the Value used to compute the amount.

Sets the Value used to compute the amount.

Parameters

$value
the value

Returns

Syspay_Merchant_Entity_PaymentRecipient
self
public string
# getCurrency( )

Gets the The currency (mandatory in case of a FIXED calc_type) This is a safety check and it must match the payment currency..

Gets the The currency (mandatory in case of a FIXED calc_type) This is a safety check and it must match the payment currency..

Returns

string
string
public Syspay_Merchant_Entity_PaymentRecipient
# setCurrency( string $currency )

Sets the The currency (mandatory in case of a FIXED calc_type) This is a safety check and it must match the payment currency..

Sets the The currency (mandatory in case of a FIXED calc_type) This is a safety check and it must match the payment currency..

Parameters

$currency
the currency

Returns

Syspay_Merchant_Entity_PaymentRecipient
self
public integer
# getSettlementDelay( )

Gets the Number of seconds to delay the transfer's settlement (added to the actual time of settlement of the payment).

Gets the Number of seconds to delay the transfer's settlement (added to the actual time of settlement of the payment).

Returns

integer
integer
public Syspay_Merchant_Entity_PaymentRecipient
# setSettlementDelay( integer $settlement_delay )

Sets the Number of seconds to delay the transfer's settlement (added to the actual time of settlement of the payment).

Sets the Number of seconds to delay the transfer's settlement (added to the actual time of settlement of the payment).

Parameters

$settlement_delay
the settlement_delay

Returns

Syspay_Merchant_Entity_PaymentRecipient
self
Methods inherited from Syspay_Merchant_Entity
getType(), toArray()
Constants summary
string TYPE
#'payment_recipient'
string CALC_TYPE_FIXED

The exact amount is given (the 'value' property is an amount in CENTs and the 'currency' must be supplied)

The exact amount is given (the 'value' property is an amount in CENTs and the 'currency' must be supplied)

#'fixed'
string CALC_TYPE_PERCENT

The 'value' is a percentage * 100 (100 == 1%) of the total payment amount

The 'value' is a percentage * 100 (100 == 1%) of the total payment amount

#'percent'
Properties inherited from Syspay_Merchant_Entity
$raw
Syspay Merchant SDK API documentation generated by ApiGen 2.8.0