forked from LiveCarta/PayPal-PHP-Server-SDK
* Automated commit message * Automated commit message * add changelog --------- Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
3.4 KiB
3.4 KiB
Transaction Details
The transaction details.
Structure
TransactionDetails
Fields
| Name | Type | Tags | Description | Getter | Setter |
|---|---|---|---|---|---|
transactionInfo |
?TransactionInformation |
Optional | The transaction information. | getTransactionInfo(): ?TransactionInformation | setTransactionInfo(?TransactionInformation transactionInfo): void |
payerInfo |
?PayerInformation |
Optional | The payer information. | getPayerInfo(): ?PayerInformation | setPayerInfo(?PayerInformation payerInfo): void |
shippingInfo |
?ShippingInformation |
Optional | The shipping information. | getShippingInfo(): ?ShippingInformation | setShippingInfo(?ShippingInformation shippingInfo): void |
cartInfo |
?CartInformation |
Optional | The cart information. | getCartInfo(): ?CartInformation | setCartInfo(?CartInformation cartInfo): void |
storeInfo |
?StoreInformation |
Optional | The store information. | getStoreInfo(): ?StoreInformation | setStoreInfo(?StoreInformation storeInfo): void |
auctionInfo |
?AuctionInformation |
Optional | The auction information. | getAuctionInfo(): ?AuctionInformation | setAuctionInfo(?AuctionInformation auctionInfo): void |
incentiveInfo |
?IncentiveInformation |
Optional | The incentive details. | getIncentiveInfo(): ?IncentiveInformation | setIncentiveInfo(?IncentiveInformation incentiveInfo): void |
Example (as JSON)
{
"transaction_info": {
"paypal_account_id": "paypal_account_id4",
"transaction_id": "transaction_id0",
"paypal_reference_id": "paypal_reference_id2",
"paypal_reference_id_type": "ODR",
"transaction_event_code": "transaction_event_code6"
},
"payer_info": {
"account_id": "account_id2",
"email_address": "email_address2",
"phone_number": {
"country_code": "country_code2",
"national_number": "national_number6",
"extension_number": "extension_number8"
},
"address_status": "address_status2",
"payer_status": "payer_status2"
},
"shipping_info": {
"name": "name0",
"method": "method4",
"address": {
"line1": "line18",
"line2": "line20",
"city": "city6",
"state": "state2",
"country_code": "country_code6",
"postal_code": "postal_code8"
},
"secondary_shipping_address": {
"line1": "line16",
"line2": "line28",
"city": "city4",
"state": "state0",
"country_code": "country_code4",
"postal_code": "postal_code6"
}
},
"cart_info": {
"item_details": [
{
"item_code": "item_code0",
"item_name": "item_name8",
"item_description": "item_description4",
"item_options": "item_options2",
"item_quantity": "item_quantity2"
},
{
"item_code": "item_code0",
"item_name": "item_name8",
"item_description": "item_description4",
"item_options": "item_options2",
"item_quantity": "item_quantity2"
}
],
"tax_inclusive": false,
"paypal_invoice_id": "paypal_invoice_id6"
},
"store_info": {
"store_id": "store_id2",
"terminal_id": "terminal_id6"
}
}