function _uc_recurring_cybersource_card_obj in UC Recurring Payments and Subscriptions 7.2
Same name and namespace in other branches
- 6.2 includes/uc_recurring.uc_cybersource.inc \_uc_recurring_cybersource_card_obj()
Create a card SOAP object from an order
Parameters
$order Order object:
2 calls to _uc_recurring_cybersource_card_obj()
- _uc_recurring_cybersource_create_profile in includes/
uc_recurring.uc_cybersource.inc - Set up a CyberSource customer profile
- _uc_recurring_uc_cybersource_update_paymentprofile in includes/
uc_recurring.uc_cybersource.inc - Update the payment profile
File
- includes/
uc_recurring.uc_cybersource.inc, line 467 - Uc recurring implementation for the CyberSource module.
Code
function _uc_recurring_cybersource_card_obj($order) {
$card = new stdClass();
$card->accountNumber = $order->payment_details['cc_number'];
$card->expirationMonth = $order->payment_details['cc_exp_month'];
$card->expirationYear = $order->payment_details['cc_exp_year'];
$card->cardType = _uc_cybersource_card_type($order->payment_details['cc_number']);
if (variable_get('uc_credit_cvv_enabled', TRUE)) {
$card->cvNumber = $order->payment_details['cc_cvv'];
}
return $card;
}