forked from LiveCarta/PayPal-PHP-Server-SDK
2.9 KiB
2.9 KiB
Level 3 Card Processing Data
The level 3 card processing data collections, If your merchant account has been configured for Level 3 processing this field will be passed to the processor on your behalf. Please contact your PayPal Technical Account Manager to define level 3 data for your business.
Structure
Level3CardProcessingData
Fields
| Name | Type | Tags | Description | Getter | Setter |
|---|---|---|---|---|---|
shippingAmount |
?Money |
Optional | The currency and amount for a financial transaction, such as a balance or payment due. | getShippingAmount(): ?Money | setShippingAmount(?Money shippingAmount): void |
dutyAmount |
?Money |
Optional | The currency and amount for a financial transaction, such as a balance or payment due. | getDutyAmount(): ?Money | setDutyAmount(?Money dutyAmount): void |
discountAmount |
?Money |
Optional | The currency and amount for a financial transaction, such as a balance or payment due. | getDiscountAmount(): ?Money | setDiscountAmount(?Money discountAmount): void |
shippingAddress |
?Address |
Optional | The portable international postal address. Maps to AddressValidationMetadata and HTML 5.1 Autofilling form controls: the autocomplete attribute. | getShippingAddress(): ?Address | setShippingAddress(?Address shippingAddress): void |
shipsFromPostalCode |
?string |
Optional | Use this field to specify the postal code of the shipping location. Constraints: Minimum Length: 1, Maximum Length: 60, Pattern: ^[a-zA-Z0-9_'.-]*$ |
getShipsFromPostalCode(): ?string | setShipsFromPostalCode(?string shipsFromPostalCode): void |
lineItems |
?(LineItem[]) |
Optional | A list of the items that were purchased with this payment. If your merchant account has been configured for Level 3 processing this field will be passed to the processor on your behalf. Constraints: Minimum Items: 1, Maximum Items: 100 |
getLineItems(): ?array | setLineItems(?array lineItems): void |
Example (as JSON)
{
"shipping_amount": {
"currency_code": "currency_code0",
"value": "value6"
},
"duty_amount": {
"currency_code": "currency_code6",
"value": "value2"
},
"discount_amount": {
"currency_code": "currency_code2",
"value": "value8"
},
"shipping_address": {
"address_line_1": "address_line_10",
"address_line_2": "address_line_20",
"admin_area_2": "admin_area_24",
"admin_area_1": "admin_area_16",
"postal_code": "postal_code2",
"country_code": "country_code0"
},
"ships_from_postal_code": "ships_from_postal_code6"
}