for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CommerceGuys\AuthNet\DataTypes;
class PaymentProfile extends BaseDataType
{
protected $propertyMap = [
'customerType',
'billTo',
'payment',
'defaultPaymentProfile',
'customerPaymentProfileId'
];
public function addPayment(PaymentMethodInterface $paymentMethod)
$this->properties['payment'][$paymentMethod->getType()] = $paymentMethod->toArray();
}
public function addBillTo(BillTo $billTo)
$this->addDataType($billTo);
public function addCustomerPaymentProfileId($id)
$this->properties['customerPaymentProfileId'] = $id;