def add_direct_payment_details(self, credit_card, customer_details, payment_details):
        direct_payment_details = {}
        direct_payment_details['ewayCustomerID'] = self.customer_id
        direct_payment_details['ewayCustomerFirstName'] = customer_details.get('customer_fname', '')
        direct_payment_details['ewayCustomerLastName'] = customer_details.get('customer_lname', '')
        direct_payment_details['ewayCustomerAddress'] = customer_details.get('customer_address', '')
        direct_payment_details['ewayCustomerEmail'] = customer_details.get('customer_email', '')
        direct_payment_details['ewayCustomerPostcode'] = customer_details.get('customer_postcode', None)
        direct_payment_details['ewayCardNumber'] = credit_card.number
        direct_payment_details['ewayCardHoldersName'] = credit_card.name
        direct_payment_details['ewayCardExpiryMonth'] = '%02d' % (credit_card.month)
        direct_payment_details['ewayCardExpiryYear'] = str(credit_card.year)[-2:]
        direct_payment_details['ewayCVN'] = credit_card.verification_value
        direct_payment_details['ewayOption1'] = '',
        direct_payment_details['ewayOption2'] = '',
        direct_payment_details['ewayOption3'] = '',
        direct_payment_details['ewayTrxnNumber'] = payment_details.get('transaction_number', '')
        direct_payment_details['ewayTotalAmount'] = payment_details['amount']
        direct_payment_details['ewayCustomerInvoiceRef'] = payment_details.get('inv_ref', '')
        direct_payment_details['ewayCustomerInvoiceDescription'] = payment_details.get('inv_desc', '')
        return direct_payment_details
dataset/ETHPy150Open agiliq/merchant/billing/gateways/eway_gateway/eway_gateway.py/EwayGateway.add_direct_payment_details/original