1
0
Files
PayPal-PHP-Server-SDK/doc/models/network-transaction-reference.md
Patrick Powers 6da8b9b5b8 1.1.0 Release (#44)
* Automated commit message

* add changelog

---------

Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
Co-authored-by: Patrick Powers <patickpowers@hey.com>
2025-05-27 13:31:17 -05:00

2.0 KiB

Network Transaction Reference

Reference values used by the card network to identify a transaction.

Structure

NetworkTransactionReference

Fields

Name Type Tags Description Getter Setter
id string Required Transaction reference id returned by the scheme. For Visa and Amex, this is the "Tran id" field in response. For MasterCard, this is the "BankNet reference id" field in response. For Discover, this is the "NRID" field in response. The pattern we expect for this field from Visa/Amex/CB/Discover is numeric, Mastercard/BNPP is alphanumeric and Paysecure is alphanumeric with special character -.

Constraints: Minimum Length: 9, Maximum Length: 36, Pattern: ^[a-zA-Z0-9-_@.:&+=*^'~#!$%()]+$
getId(): string setId(string id): void
date ?string Optional The date that the transaction was authorized by the scheme. This field may not be returned for all networks. MasterCard refers to this field as "BankNet reference date.

Constraints: Minimum Length: 4, Maximum Length: 4, Pattern: ^[0-9]+$
getDate(): ?string setDate(?string date): void
network ?string(CardBrand) Optional The card network or brand. Applies to credit, debit, gift, and payment cards.

Constraints: Minimum Length: 1, Maximum Length: 255, Pattern: ^[A-Z_]+$
getNetwork(): ?string setNetwork(?string network): void
acquirerReferenceNumber ?string Optional Reference ID issued for the card transaction. This ID can be used to track the transaction across processors, card brands and issuing banks.

Constraints: Minimum Length: 1, Maximum Length: 36, Pattern: ^[a-zA-Z0-9]+$
getAcquirerReferenceNumber(): ?string setAcquirerReferenceNumber(?string acquirerReferenceNumber): void

Example (as JSON)

{
  "id": "id6",
  "date": "date8",
  "network": "ELECTRON",
  "acquirer_reference_number": "acquirer_reference_number2"
}