API > eden > webcharge.php
View Source

class Eden_Webcharge_Model

Intuit Innovative Gateway Solution WebCharge application model for payment processing.

Constants

  • PAYMENT_URL: https://transactions.innovativegateway.com/servlet/com.gateway.aai.Aai

Public Methods

public function send()

Validates required transaction parameters and sends the transaction to Innovative Gateway Solutions.

Returns string the cURL result

public function setPassword($password)

Sets the merchant password

Arguments

  1. string password

Returns this

public function setTransaction(array $transaction)

Set a transaction to send.

Arguments

  1. array the transaction to set

Returns string the cURL result

public function setUser($user)

Sets the Merchant user name

Arguments

  1. string user name

Returns this

class Eden_Webcharge_Error

WebCharge exception

Constants

  • INVALID_AMOUNT: The amount set in the transaction (fulltotal) must be a number. %s was given.
  • INVALID_TRANSACTION_TYPE: The transaction type (trantype) is invalid. preauth, postauth, sale, credit, void are allowed. %s was given.
  • INVALID_CARD_TYPE: The credit card type (cardtype) is invalid. visa, mc, amex, diners, discover, jcb are allowed. %s was given.
  • INVALID_CREDIT_CARD_MONTH: The credit card month (month) must be a 2 digit number. %s was given.
  • INVALID_CREDIT_CARD_YEAR: The credit card year (year) must be a 2 or 4 digit number. %s was given.
  • INVALID_CREDIT_CARD_NAME: The credit card name cannot be empty.

© 2012 Openovate Labs. All rights reserved.