Methods |
public
|
__construct(Config $cnf)
Return purchase object
|
#
|
public
|
setOrderID(string $orderID): PurchaseByIcard
Purchase identifier - must be unique
Purchase identifier - must be unique
|
#
|
public
|
getPhone(): string
Customer Phone number
|
#
|
public
|
setPhone(string $phone): PurchaseByIcard
Customer Phone number
|
#
|
public
|
getEmail(): string
Customer Email address
|
#
|
public
|
setEmail(string $email): PurchaseByIcard
Customer Email address
|
#
|
public
|
setUrlCancel(string $urlCancel): PurchaseByIcard
Merchant Site URL where client comes after unsuccessful payment
Merchant Site URL where client comes after unsuccessful payment
|
#
|
public
|
setUrlNotify(string $urlNotify): PurchaseByIcard
Merchant Site URL where IPC posts Purchase Notify requests
Merchant Site URL where IPC posts Purchase Notify requests
|
#
|
public
|
process(): boolean
Initiate API request
|
#
|
public
|
validate(): boolean
Validate all set purchase details
Validate all set purchase details
Throws
|
#
|
public
|
getUrlCancel(): string
Merchant Site URL where client comes after unsuccessful payment
Merchant Site URL where client comes after unsuccessful payment
|
#
|
public
|
getUrlNotify()
Merchant Site URL where IPC posts Purchase Notify requests
Merchant Site URL where IPC posts Purchase Notify requests
|
#
|
public
|
getUrlOk(): string
Merchant Site URL where client comes after successful payment
Merchant Site URL where client comes after successful payment
|
#
|
public
|
setUrlOk(string $urlOk): PurchaseByIcard
Merchant Site URL where client comes after successful payment
Merchant Site URL where client comes after successful payment
|
#
|
public
|
getCurrency(): string
ISO-4217 Three letter currency code
ISO-4217 Three letter currency code
|
#
|
public
|
setCurrency(string $currency): PurchaseByIcard
ISO-4217 Three letter currency code
ISO-4217 Three letter currency code
|
#
|
public
|
getCart(): Cart
Cart object
|
#
|
public
|
setCart(Cart $cart): PurchaseByIcard
Cart object
|
#
|
public
|
getOrderID(): string
Purchase identifier
|
#
|