Skip to content

Commit

Permalink
Fix external awb cash on delivery. Fixes #20
Browse files Browse the repository at this point in the history
Note that using the service "Export-Cont Colector" currently gives the error "The selected info.service is invalid.". This is caused by fan courier server. Use "Export" even if using cash on delivery.
  • Loading branch information
shusaura85 committed Jun 17, 2024
1 parent 86a6d33 commit d316cfa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Fancourier/Objects/AwbExtern.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function pack(): array
$arr = [
"info" => [
"deliveryMode" => $this->deliveryMode,
"service" => $this->service, // "Export" sau "Export-Cont Colector"
"service" => $this->service, // "Export" sau "Export-Cont Colector". Note that the API returns "The selected info.service is invalid" for "Export-Cont Colector". Use "Export" instead. If using CoD, it will be changed by fan courier automatically
"contentType" => $this->documentType,
"bank" => $this->bank, //optional
"bankAccount" => $this->iban, //optional
Expand All @@ -100,8 +100,8 @@ public function pack(): array
"weight" => $this->weight, //obligatoriu
"declaredValue" => $this->declaredValue, //optional

// "cod" => $this->CoD, // awb extern foloseste "repayment" ca sa fie specificat rambursul
"repayment" => $this->CoD, //optional - daca se doreste trimiterea cu ramburs
"cod" => $this->CoD, // optional - daca se doreste trimiterea cu ramburs
// "repayment" => $this->CoD, //optional - daca se doreste trimiterea cu ramburs - this was used in earlier versions of the 2.0 api - no longer used
// "currency" => $this->currency, //nu functioneaza
"payment" => $this->paymentType,
"refund" => $this->refund,
Expand Down

0 comments on commit d316cfa

Please sign in to comment.