Esempio n. 1
0
 /**
  * @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]);
 }