|
EPG PHP SDK
|
Inheritance diagram for BaseTransaction:Public Member Functions | |
| setProduct (string $product) | |
| Sets the product information for the transaction. | |
| setConfirmationCartData (string $confirmationCartDataUrl) | |
| Set the URL for confirmation cart data. | |
| setDisableFormEdition (bool $value) | |
| setCustomerUserAgent (string $userAgent) | |
| Sets the customer's user agent information. | |
| setCustomerTitle (string $title) | |
| Sets the title of the customer. | |
| setCustomerDocumentExpirationDate (string $documentExpirationDate) | |
| Sets the document expiration date for the customer. | |
| setCustomerLoggedIn (bool $loggedIn) | |
| Sets the customer's login status. | |
| setCustomerLocale (LanguageCodes $locale) | |
| Sets the customer's locale. | |
| setShippingMethod (string $method) | |
| Sets the shipping method for the transaction. | |
| setShippingName (string $name) | |
| Sets the shipping name, typically the name of the shipping service. | |
| setShippingFirstName (string $firstName) | |
| Sets the first name of the shipping recipient. | |
| setShippingLastName (string $lastName) | |
| Sets the last name of the shipping recipient. | |
| setShippingCompany (string $company) | |
| Sets the company name associated with the shipping address. | |
| setShippingPhoneNumber (string $phoneNumber) | |
| Sets the phone number for shipping contact. | |
| setShippingEmail (string $email) | |
| Sets the email address for shipping notifications. | |
| setBilling (Billing $billing) | |
| Sets the billing information using the Billing object. | |
| setCartCurrency (CurrencyCodes $currency) | |
| Sets the currency for the cart. | |
| setCartTotalPriceWithTax (float $totalPrice) | |
| Sets the total price of the cart, including tax. | |
| setCartReference (int $reference) | |
| Sets a reference number or identifier for the cart. | |
| getCartTotalPriceWithTax () | |
| Retrieves the total price with tax of the items in the cart. | |
| getItems () | |
| Get the cart items data as an array. | |
| getData () | |
| Get all transaction data as an array. | |
| calculateTotalItemPrice () | |
| Calculates the total price of all items in the cart. | |
| validate () | |
| process () | |
Protected Attributes | |
| array | $data = [] |
| calculateTotalItemPrice | ( | ) |
Calculates the total price of all items in the cart.
| getCartTotalPriceWithTax | ( | ) |
Retrieves the total price with tax of the items in the cart.
| getData | ( | ) |
Get all transaction data as an array.
| getItems | ( | ) |
Get the cart items data as an array.
| process | ( | ) |
| setBilling | ( | Billing | $billing | ) |
Sets the billing information using the Billing object.
| Billing | $billing | The Billing object containing billing information. |
| setCartCurrency | ( | CurrencyCodes | $currency | ) |
Sets the currency for the cart.
| CurrencyCodes | $currency | The currency code. |
| InvalidFieldException | If the currency code is invalid. |
| setCartReference | ( | int | $reference | ) |
Sets a reference number or identifier for the cart.
| int | $reference | A unique reference number for the cart. |
| setCartTotalPriceWithTax | ( | float | $totalPrice | ) |
Sets the total price of the cart, including tax.
| float | $totalPrice | The total price of all items in the cart including tax. |
| setConfirmationCartData | ( | string | $confirmationCartDataUrl | ) |
Set the URL for confirmation cart data.
| string | $confirmationCartDataUrl | The URL for confirmation cart data. |
| setCustomerDocumentExpirationDate | ( | string | $documentExpirationDate | ) |
Sets the document expiration date for the customer.
| string | $documentExpirationDate | The expiration date of the customer's identification document. |
| setCustomerLocale | ( | LanguageCodes | $locale | ) |
Sets the customer's locale.
| LanguageCodes | $locale | The login status of the customer (e.g., 'es' or 'en'). |
| setCustomerLoggedIn | ( | bool | $loggedIn | ) |
Sets the customer's login status.
| bool | $loggedIn | The login status of the customer (e.g., 'true' or 'false'). |
| setCustomerTitle | ( | string | $title | ) |
Sets the title of the customer.
| string | $title | The title of the customer (e.g., Mr., Ms., Dr.). |
| setCustomerUserAgent | ( | string | $userAgent | ) |
Sets the customer's user agent information.
| string | $userAgent | The user agent of the customer. |
| setDisableFormEdition | ( | bool | $value | ) |
| setProduct | ( | string | $product | ) |
Sets the product information for the transaction.
| string | $product | The product identifier. |
| setShippingCompany | ( | string | $company | ) |
Sets the company name associated with the shipping address.
| string | $company | The company name for the shipping address. |
| setShippingEmail | ( | string | ) |
Sets the email address for shipping notifications.
| string | The email address for shipping updates. |
| setShippingFirstName | ( | string | $firstName | ) |
Sets the first name of the shipping recipient.
| string | $firstName | The first name of the recipient. |
| setShippingLastName | ( | string | $lastName | ) |
Sets the last name of the shipping recipient.
| string | $lastName | The last name of the recipient. |
| setShippingMethod | ( | string | $method | ) |
Sets the shipping method for the transaction.
| string | $method | The shipping method (e.g., 'Standard', 'Express'). |
| setShippingName | ( | string | $name | ) |
Sets the shipping name, typically the name of the shipping service.
| string | $name | The name of the shipping service. |
| setShippingPhoneNumber | ( | string | $phoneNumber | ) |
Sets the phone number for shipping contact.
| string | $phoneNumber | The phone number for shipping communications. |
| validate | ( | ) |
|
protected |