Exemple #1
0
 /**
  * @param Helper\CreditCard $creditCard
  */
 public function saveCard(Helper\CreditCard $creditCard)
 {
     $this->api('/profiles', Enum\HttpMethod::POST, ['card' => ['complete' => true, 'name' => $creditCard->getName(), 'number' => $creditCard->getCardNumber(), 'expiry_month' => $creditCard->getCardExpiry()->format('m'), 'expiry_year' => $creditCard->getCardExpiry()->format('y'), 'cvd' => $creditCard->getCardCVV()], 'billing' => ['name' => $creditCard->getName(), 'address_line1' => $creditCard->getAddress1(), 'address_line2' => $creditCard->getAddress2(), 'city' => $creditCard->getCity(), 'province' => $creditCard->getState(), 'country' => $creditCard->getCountry(), 'postal_code' => $creditCard->getZipCode(), 'phone_number' => $creditCard->getPhoneNumber(), 'email_address' => $creditCard->getEmailAddress()]]);
     if ($this->getLastHttpStatusCode() === 200) {
         $this->getLastResponse()['expiry'] = $creditCard->getCardExpiry();
     }
 }
Exemple #2
0
 /**
  * @param Helper\CreditCard $creditCard
  */
 public function saveCard(Helper\CreditCard $creditCard)
 {
     $this->api('/customers', Enum\HttpMethod::POST, ['card' => ['number' => $creditCard->getCardNumber(), 'exp_month' => $creditCard->getCardExpiry()->format('m'), 'exp_year' => $creditCard->getCardExpiry()->format('Y'), 'cvc' => $creditCard->getCardCVV(), 'name' => $creditCard->getName(), 'address_line1' => $creditCard->getAddress1(), 'address_line2' => $creditCard->getAddress2(), 'address_city' => $creditCard->getCity(), 'address_zip' => $creditCard->getState(), 'address_state' => $creditCard->getZipCode(), 'address_country' => $creditCard->getCountry()]]);
 }
Exemple #3
0
 /**
  * @param Helper\CreditCard $creditCard
  */
 public function validateCard(Helper\CreditCard $creditCard)
 {
     $this->api('CreditTransaction', ['tran' => $this->tStreamXML(['Account' => ['AcctNo' => $creditCard->getCardNumber(), 'ExpDate' => $creditCard->getCardExpiry()->format('my')], 'RecordNo' => 'RecordNumberRequested', 'Frequency' => 'OneTime'], 'CardLookup')]);
 }
Exemple #4
0
 /**
  * @param Helper\CreditCard $creditCard
  */
 public function validateCard(Helper\CreditCard $creditCard)
 {
     $this->api('checkcard', ['card-number' => $creditCard->getCardNumber(), 'card-exp' => $creditCard->getCardExpiry()->format('m/y')]);
 }
 /**
  * @param Helper\CreditCard $creditCard
  */
 public function validateCard(Helper\CreditCard $creditCard)
 {
     $this->processCreditCard('CardVerify', ['CardNum' => $creditCard->getCardNumber(), 'ExpDate' => $creditCard->getCardExpiry()->format('my'), 'NameOnCard' => $creditCard->getName(), 'InvNum' => substr(md5($creditCard->getCardNumber() . time()), 0, 16), 'Zip' => $creditCard->getZipCode(), 'Street' => $creditCard->getAddress1(), 'CVNum' => $creditCard->getCardCVV()], true);
 }
Exemple #6
0
 /**
  * @param Helper\CreditCard $creditCard
  */
 public function validateCard(Helper\CreditCard $creditCard)
 {
     $this->api('card_verification', ['order_id' => 'vc-' . md5(time() . $creditCard->getCardNumber()), 'pan' => $creditCard->getCardNumber(), 'expdate' => $creditCard->getCardExpiry()->format('ym'), 'crypt_type' => 7]);
 }
 /**
  * @param Helper\CreditCard $creditCard
  */
 public function saveCard(Helper\CreditCard $creditCard)
 {
     $this->api('Profile', ['CustomerName' => $creditCard->getName(), 'CustomerAddress1' => $creditCard->getAddress1(), 'CustomerAddress2' => $creditCard->getAddress2(), 'CustomerCity' => $creditCard->getCity(), 'CustomerState' => $creditCard->getState(), 'CustomerZIP' => $creditCard->getZipCode(), 'CustomerPhone' => $creditCard->getPhoneNumber(), 'CustomerCountryCode' => $creditCard->getCountryCode(), 'CCAccountNum' => $creditCard->getCardNumber(), 'CCExpireDate' => $creditCard->getCardExpiry()->format('my'), 'CustomerProfileAction' => Enum\ChasePaymentech::CUSTOMER_PROFILE_ACTION_CREATE, 'CustomerAccountType' => Enum\ChasePaymentech::CUSTOMER_ACCOUNT_TYPE_CREDIT_CARD, 'CustomerProfileFromOrderInd' => Enum\ChasePaymentech::CUSTOMER_PROFILE_GENERATION_AUTO, 'CustomerProfileOrderOverrideInd' => Enum\ChasePaymentech::CUSTOMER_PROFILE_ORDER_OVERRIDE_MAPPING_NONE]);
 }