Closed globatum closed 7 years ago
Have you tried adding a line like
$request->setProfile($customerprofile);
?
Or, maybe try this:
$customer = new AnetAPI\CustomerType();
$customer->setEmail($user->email);
$customer->setPhoneNumber($user->phone);
$request->setCustomer($customer);
I'm on a plane and can't really test it myself right now, but please let me know if I'm on the right track here.
@adavidw
This error pops up
FatalThrowableError in Billing.php line 104:
Call to undefined method net\authorize\api\contract\v1\ARBCreateSubscriptionRequest::setCustomer()
I have the solution.
$customer = new AnetAPI\CustomerType();
$customer->setEmail($user->email);
$customer->setPhoneNumber($user->phone);
$subscription->setCustomer($customer);
setCustomer is not a method in `ARBCreateSubscriptionRequest()`
I have the solution.
$customer = new AnetAPI\CustomerType();
$customer->setEmail($user->email);
$customer->setPhoneNumber($user->phone);
$subscription->setCustomer($customer);
setCustomer is not a method in ARBCreateSubscriptionRequest()
I have looked around and tried a few solutions online, but I keep running into method does not exist errors or the data is simply not being saved.
Customer ID:
Name: Markus-Allen Proctor Company:
Address: 1111 Werkin App St. City: Baltimore State/Province: MD Zip/Postal Code: 20774 Country:
Phone:
Fax:
Email:
The fields I care about never show any information (when logging into auth.net to view subs)
`$paymentSchedule = new AnetAPI\PaymentScheduleType(); $paymentSchedule->setInterval($interval); $paymentSchedule->setStartDate(new DateTime($date)); $paymentSchedule->setTotalOccurrences(12); $subscription->setPaymentSchedule($paymentSchedule); $subscription->setAmount($a); $subscription->billToAddress = $address; $subscription->billToCity = $city; $subscription->billToState = $state; $subscription->billToZip = $zip; $subscription->customerEmail = $user->email; $subscription->customerPhoneNumber = $user->phone;
In short, how do I save the customer's contact info so that it shows up in the authnet console?