Skip to content

Commit

Permalink
reduce copy/past ref. AccountNumber (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
xerc authored Jun 4, 2022
1 parent 2ef3ac8 commit 7112f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ if ($return) {
$shipment->setReferenceNumber($referenceNumber);

// Set payment information
$shipment->setPaymentInformation(new \Ups\Entity\PaymentInformation('prepaid', (object)array('AccountNumber' => 'XX')));
$shipment->setPaymentInformation(new \Ups\Entity\PaymentInformation('prepaid', (object) ['AccountNumber' => $shipper->getShipperNumber()]));

// Ask for negotiated rates (optional)
$rateInformation = new \Ups\Entity\RateInformation;
Expand Down

0 comments on commit 7112f25

Please sign in to comment.