Skip to content

Commit

Permalink
added endpoint for adding tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaimoiseanu committed Mar 29, 2024
1 parent 34c673c commit 8caebf2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions MangoPay/ApiPayIns.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,9 @@ public function GetPaymentMethodMetadata(PaymentMethodMetadata $paymentMethodMet
{
return $this->CreateObject('payment_method-metadata', $paymentMethodMetadata, '\MangoPay\PaymentMethodMetadata', null, null, $idempotencyKey);
}

public function AddPayPalTrackingInformation($payId, PayPalWebTracking $palWebTracking)
{
return $this->SaveObject('add_tracking_info', $palWebTracking, '\MangoPay\PayIn', $payId);
}
}
1 change: 1 addition & 0 deletions MangoPay/Libraries/ApiBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ protected function getLogger()
'payins_klarna-web_create' => ['/payins/payment-methods/klarna', RequestType::POST],
'payins_ideal-web_create' => ['/payins/payment-methods/ideal', RequestType::POST],
'payins_giropay-web_create' => ['/payins/payment-methods/giropay', RequestType::POST],
'add_tracking_info' => ['/payins/%s/trackings', RequestType::PUT],

'payment_method-metadata' => ['/payment-methods/metadata', RequestType::POST],

Expand Down

0 comments on commit 8caebf2

Please sign in to comment.