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_PaymentRequest

Process a payment

Syspay_Merchant_Request
Extended by Syspay_Merchant_PaymentRequest
See: https://app.syspay.com/bundles/emiuser/doc/merchant_api.html#hosted-payment-request
See: https://app.syspay.com/bundles/emiuser/doc/merchant_api.html#server-to-server-credit-card-payment
Located at Syspay/SDK/Merchant/Request/Payment.php
Methods summary
public
# __construct( string $flow )

Construct

Construct

Parameters

$flow
public string
# getMethod( )

Get the HTTP method to use to make the request

Get the HTTP method to use to make the request

Returns

string
HTTP method
public string
# getPath( )

Get the path to call to make the request

Get the path to call to make the request

Returns

string
API path
public mixed
# buildResponse( stdClass $response )

Build an object based on the decoded response received from the API (turned to a stdClass object)

Build an object based on the decoded response received from the API (turned to a stdClass object)

Parameters

$response
The data to build the object from

Returns

mixed
The object built
public array
# getData( )

Get the data to send to the API for the request

Get the data to send to the API for the request

Returns

array
An array of data that will be json-encoded by the Syspay_Merchant_Client

Overrides

Syspay_Merchant_Request::getData()
public string
# getFlow( )

Gets the value of flow.

Gets the value of flow.

Returns

string
string
public Syspay_Merchant_PaymentRequest
# setFlow( string $flow )

Sets the value of flow.

Sets the value of flow.

Parameters

$flow
the flow

Returns

Syspay_Merchant_PaymentRequest
self
public string
# getMode( )

Get the value of mode

Get the value of mode

Returns

string
string
public Syspay_Merchant_PaymentRequest
# setMode( string $mode )

Sets the value of mode

Sets the value of mode

Parameters

$mode

Returns

Syspay_Merchant_PaymentRequest
self
public Syspay_Merchant_PaymentRequest
# setThreatMetrixSessionId( string $threatMetrixSessionId )

Sets the value of threatMetrixSessionId

Sets the value of threatMetrixSessionId

Parameters

$threatMetrixSessionId

Returns

Syspay_Merchant_PaymentRequest
self
public string
# getThreatMetrixSessionId( )

Get the value of threatMetrixSessionId

Get the value of threatMetrixSessionId

Returns

string
string
public boolean
# getBillingAgreement( )

Gets the value of billingAgreement.

Gets the value of billingAgreement.

Returns

boolean
boolean
public Syspay_Merchant_PaymentRequest
# setBillingAgreement( boolean $billingAgreement )

Sets the value of billingAgreement.

Sets the value of billingAgreement.

Parameters

$billingAgreement
the billingAgreement

Returns

Syspay_Merchant_PaymentRequest
self
public string
# getEmsUrl( )

Gets the value of emsUrl.

Gets the value of emsUrl.

Returns

string
string
public Syspay_Merchant_PaymentRequest
# setEmsUrl( string $emsUrl )

Sets the value of emsUrl.

Sets the value of emsUrl.

Parameters

$emsUrl
the emsUrl

Returns

Syspay_Merchant_PaymentRequest
self
public string
# getRedirectUrl( )

Gets the value of redirectUrl.

Gets the value of redirectUrl.

Returns

string
string
public Syspay_Merchant_PaymentRequest
# setRedirectUrl( string $redirectUrl )

Sets the value of redirectUrl.

Sets the value of redirectUrl.

Parameters

$redirectUrl
the redirectUrl

Returns

Syspay_Merchant_PaymentRequest
self
public Syspay_Merchant_Entity_Payment
# getPayment( )

Gets the value of payment.

Gets the value of payment.

Returns

Syspay_Merchant_Entity_Payment
Syspay_Merchant_Entity_Payment
public Syspay_Merchant_PaymentRequest
# setPayment( Syspay_Merchant_Entity_Payment $payment )

Sets the value of payment.

Sets the value of payment.

Parameters

$payment
the payment

Returns

Syspay_Merchant_PaymentRequest
self
public Syspay_Merchant_Entity_Customer
# getCustomer( )

Gets the value of customer.

Gets the value of customer.

Returns

Syspay_Merchant_Entity_Customer
Syspay_Merchant_Entity_Customer
public Syspay_Merchant_PaymentRequest
# setCustomer( Syspay_Merchant_Entity_Customer $customer )

Sets the value of customer.

Sets the value of customer.

Parameters

$customer
the customer

Returns

Syspay_Merchant_PaymentRequest
self
public Syspay_Merchant_Entity_Creditcard
# getCreditcard( )

Gets the value of creditcard.

Gets the value of creditcard.

Returns

Syspay_Merchant_Entity_Creditcard
Syspay_Merchant_Entity_Creditcard
public Syspay_Merchant_PaymentRequest
# setCreditcard( Syspay_Merchant_Entity_Creditcard $creditcard )

Sets the value of creditcard.

Sets the value of creditcard.

Parameters

$creditcard
the creditcard

Returns

Syspay_Merchant_PaymentRequest
self
public string
# getPaymentMethod( )

Gets the value of paymentMethod.

Gets the value of paymentMethod.

Returns

string
string
public Syspay_Merchant_PaymentRequest
# setPaymentMethod( string $paymentMethod )

Sets the value of paymentMethod.

Sets the value of paymentMethod.

Parameters

$paymentMethod
the paymentMethod

Returns

Syspay_Merchant_PaymentRequest
self
public string
# getWebsite( )

Gets the value of website.

Gets the value of website.

Returns

string
string
public Syspay_Merchant_PaymentRequest
# setWebsite( string $website )

Sets the value of website.

Sets the value of website.

Parameters

$website
the website

Returns

Syspay_Merchant_PaymentRequest
self
public string
# getAgent( )

Gets the agent

Gets the agent

Returns

string
string
public Syspay_Merchant_PaymentRequest
# setAgent( string $agent )

Sets the value of agent.

Sets the value of agent.

Parameters

$agent
the agent id

Returns

Syspay_Merchant_PaymentRequest
self
public integer
# getAllowedRetries( )

Gets the value of allowedRetries.

Gets the value of allowedRetries.

Returns

integer
integer
public Syspay_Merchant_PaymentRequest
# setAllowedRetries( integer $allowedRetries )

Sets the value of allowedRetries.

Sets the value of allowedRetries.

Parameters

$allowedRetries
the allowed retries

Returns

Syspay_Merchant_PaymentRequest
self
public array
# getNotify( )

Gets the values of notify.

Gets the values of notify.

Returns

array
array
public Syspay_Merchant_PaymentRequest
# setNotify( array $notify )

Sets the value of notify.

Sets the value of notify.

Parameters

$notify

Returns

Syspay_Merchant_PaymentRequest
self
public string
# getBankCode( )

Gets the value of bankCode.

Gets the value of bankCode.

Returns

string
string
public Syspay_Merchant_PaymentRequest
# setBankCode( string $bankCode )

Sets the value of bankCode.

Sets the value of bankCode.

Parameters

$bankCode
the bank code

Returns

Syspay_Merchant_PaymentRequest
self
Constants summary
string FLOW_API
#'API'
string FLOW_BUYER
#'BUYER'
string FLOW_SELLER
#'SELLER'
string MODE_BOTH
#'BOTH'
string MODE_ONLINE
#'ONLINE'
string MODE_TERMINAL
#'TERMINAL'
string METHOD_ASTROPAY_BANKTRANSFER
#'ASTROPAY_BANKTRANSFER'
string METHOD_ASTROPAY_BOLETOBANCARIO
#'ASTROPAY_BOLETOBANCARIO'
string METHOD_ASTROPAY_DEBITCARD
#'ASTROPAY_DEBITCARD'
string METHOD_CLICKANDBUY
#'CLICKANDBUY'
string METHOD_CREDITCARD
#'CREDITCARD'
string METHOD_IDEAL
#'IDEAL'
string METHOD_PAYSAFECARD
#'PAYSAFECARD'
string METHOD_POSTFINANCE
#'POSTFINANCE'
string METHOD
#'POST'
string PATH
#'/api/v1/merchant/payment'
Syspay Merchant SDK API documentation generated by ApiGen 2.8.0