Overview
  • Namespace
  • Class

Namespaces

  • Mypos
    • IPC

Classes

  • Authorization
  • AuthorizationCapture
  • AuthorizationList
  • AuthorizationReverse
  • Base
  • Card
  • CardStore
  • Cart
  • Config
  • Customer
  • Defines
  • GetPaymentStatus
  • GetTxnStatus
  • Helper
  • IAPreAuthorization
  • IAPurchase
  • IAStoreCard
  • IAStoredCardUpdate
  • IPCGetTxnLog
  • Loader
  • MandateManagement
  • PreAuthorization
  • PreAuthorizationCancellation
  • PreAuthorizationCompletion
  • PreAuthorizationStatus
  • Purchase
  • PurchaseByIcard
  • Refund
  • RequestMoney
  • Response
  • Reversal

Exceptions

  • IPC_Exception

Class PurchaseByIcard

Process IPC method: IPCPurchaseByIcard. Collect, validate and send API params

Mypos\IPC\Base
Extended by Mypos\IPC\PurchaseByIcard
Namespace: Mypos\IPC
Located at PurchaseByIcard.php

Methods summary

public
# __construct( Mypos\IPC\Config $cnf )

Return purchase object

Return purchase object

Parameters

$cnf
public Mypos\IPC\PurchaseByIcard
# setOrderID( string $orderID )

Purchase identifier - must be unique

Purchase identifier - must be unique

Parameters

$orderID

Returns

Mypos\IPC\PurchaseByIcard
public string
# getPhone( )

Customer Phone number

Customer Phone number

Returns

string
public Mypos\IPC\PurchaseByIcard
# setPhone( string $phone )

Customer Phone number

Customer Phone number

Parameters

$phone

Returns

Mypos\IPC\PurchaseByIcard
public string
# getEmail( )

Customer Email address

Customer Email address

Returns

string
public Mypos\IPC\PurchaseByIcard
# setEmail( string $email )

Customer Email address

Customer Email address

Parameters

$email

Returns

Mypos\IPC\PurchaseByIcard
public Mypos\IPC\PurchaseByIcard
# setUrlCancel( string $urlCancel )

Merchant Site URL where client comes after unsuccessful payment

Merchant Site URL where client comes after unsuccessful payment

Parameters

$urlCancel

Returns

Mypos\IPC\PurchaseByIcard
public Mypos\IPC\PurchaseByIcard
# setUrlNotify( string $urlNotify )

Merchant Site URL where IPC posts Purchase Notify requests

Merchant Site URL where IPC posts Purchase Notify requests

Parameters

$urlNotify

Returns

Mypos\IPC\PurchaseByIcard
public boolean
# process( )

Initiate API request

Initiate API request

Returns

boolean

Throws

Mypos\IPC\IPC_Exception
public boolean
# validate( )

Validate all set purchase details

Validate all set purchase details

Returns

boolean

Throws

Mypos\IPC\IPC_Exception
public string
# getUrlCancel( )

Merchant Site URL where client comes after unsuccessful payment

Merchant Site URL where client comes after unsuccessful payment

Returns

string
public
# getUrlNotify( )

Merchant Site URL where IPC posts Purchase Notify requests

Merchant Site URL where IPC posts Purchase Notify requests

Var

string
public string
# getUrlOk( )

Merchant Site URL where client comes after successful payment

Merchant Site URL where client comes after successful payment

Returns

string
public Mypos\IPC\PurchaseByIcard
# setUrlOk( string $urlOk )

Merchant Site URL where client comes after successful payment

Merchant Site URL where client comes after successful payment

Parameters

$urlOk

Returns

Mypos\IPC\PurchaseByIcard
public string
# getCurrency( )

ISO-4217 Three letter currency code

ISO-4217 Three letter currency code

Returns

string
public Mypos\IPC\PurchaseByIcard
# setCurrency( string $currency )

ISO-4217 Three letter currency code

ISO-4217 Three letter currency code

Parameters

$currency

Returns

Mypos\IPC\PurchaseByIcard
public Mypos\IPC\Cart
# getCart( )

Cart object

Cart object

Returns

Mypos\IPC\Cart
public Mypos\IPC\PurchaseByIcard
# setCart( Mypos\IPC\Cart $cart )

Cart object

Cart object

Parameters

$cart

Returns

Mypos\IPC\PurchaseByIcard
public string
# getOrderID( )

Purchase identifier

Purchase identifier

Returns

string

Methods inherited from Mypos\IPC\Base

_addPostParam(), _processHtmlPost(), _processPost(), getCnf(), getOutputFormat(), isValidSignature(), setCnf(), setOutputFormat()

Properties summary

Properties inherited from Mypos\IPC\Base

$outputFormat

API documentation generated by ApiGen