get
Get the current payment data for the order.
An example of how to use this function can be found here
- Endpoint
/public/ajax.php?get
- Method
POST
Request
Property | Type | Description |
---|---|---|
hash | string | The hash for the order. |
Repsonse
Property | Type | Description |
---|---|---|
PaymentData | object | The payment data for the order. |
apiClient | string | The client used for the request. |
Customer | object | The customer data for the order. |
PaymentInfo | object | The payment information for the order. |
Cart | object | The cart data for the order. |
Articles | array | The articles in the cart. |
CheckoutData | object | The checkout data for the order. |
PaymentData
The payment data object contains the payment data for the order.
Property | Type | Description |
---|---|---|
method | string | The payment method used for the purchase. |
number | string | The payments number |
paymentplanid | string | The payment plan id |
currency | string | The currency used for the purchase. |
language | string | The language used for the purchase. |
country | string | The country used for the purchase. |
method_name | string | The name of the payment method. |
status | string | The current status of the checkout. |
alladdresses | array | All addresses used in the checkout. |
autoactivate | string | Auto activate the payment. |
orderid | string | The orderid supplied in the payload. |
logo | string | The logo used for this payment. |
accepturl | string | The url for the accept url. |
cancelurl | string | The url for the cancel url. |
returnmethod | string | The method used for the return. |
callbackurl | string | The url for the callback. |
url | string | The url for this checkout. |
invoice | array | The invoice data. |
accountinfo | object | The account information. |
meta | object | Meta data for the payment. |
Customer
The customer object contains the customer data for the order.
Property | Type | Description |
---|---|---|
pno | string | The personal number for the customer. |
Billing | object | The billing address for the customer. |
Shipping | object | The shipping address for the customer. |
PaymentInfo
The payment info object contains the payment information for the order.
Property | Type | Description |
---|---|---|
paymentdate | string | The payment date for the order. |
yourreference | string | The reference for the purchaser. |
ourreference | string | The reference for the seller. |
projectname | string | The project name for the order. |
deliverymethod | string | The delivery method for the order. |
deliveryterms | string | The delivery terms for the order. |
autocredit | string | Auto credit the payment. |
Cart
The cart object contains the cart data for the order.
Property | Type | Description |
---|---|---|
Handling | object | The handling data for the order. |
Shipping | object | The shipping data for the order. |
Total | object | The total data for the order. |
Articles
The articles array contains the articles in the cart.
Property | Type | Description |
---|---|---|
artnr | string | The article number. |
title | string | The article title. |
quantity | string | The article quantity. |
aprice | string | The article price. |
discount | string | The article discount. |
withouttax | string | The article price without tax. |
taxrate | string | The article tax rate. |
CheckoutData
The checkout data object contains the checkout data for the order.
Property | Type | Description |
---|---|---|
terms | string | Link to the terms for the order. |
privacyPolicy | string | Link to the privacy policy. |
companyview | string | Show company view. |
showPhoneOnDelivery | string | Show phone on delivery. |
redirectOnSuccess | string | Redirect on success. |
Cart | object | The cart data for the order. |
client | string | The client used for the request. |
topayData | object | Data for the topay. |
accountinfo
The account info object contains the account information for the order.
Property | Type | Description |
---|---|---|
company | string | The company name. |
address | string | The company address. |
zip | string | The company zip code. |
city | string | The company city. |
country | string | The company country. |
phone | string | The company phone number. |
string | The company email. | |
orgregnr | string | The company organization number. |
vatregnr | string | The company vat number. |
language | string | The company language. |
paymentoptions | array | The payment options for the company. |
defaultpaymentterms_company | string | The default payment terms for the company. |
defaultpaymentterms_private | string | The default payment terms for the private person. |
checkout | string | Checkout enabled. |
force2have18years | string | Force to have 18 years. |
force2havepno | string | Force to have personal number. |
force2havephonenumber | string | Force to have phone number. |
locknameforshipping | string | Lock name for shipping. |
showPf2Fee | string | Show PF2 fee. |
parkrightCustomerService | string | Parkright customer service. |
enableparkright | string | Enable parkright. |
enableTestModeCheckout | string | Enable test mode checkout. |
allow2When1FailsInCheckout | string | Allow 2 when 1 fails in checkout. |
enableSpecificationInPayLink | string | Enable specification in pay link. |
continueWithoutPnoInPF2 | string | Continue without personal number in PF2. |
enablerequirephonenumber | string | Enable require phone number. |
checkoutAvailableCustomerTypes | array | The available customer types for the checkout. |
logo | string | The company logo. |
paymentoptions
The payment options array contains the payment options for the company.
Property | Type | Description |
---|---|---|
method | string | The payment method used for the purchase. |
currency | string | The currency used for the purchase. |
language | string | The language used for the purchase. |
minAmount | string | The minimum amount for the purchase. |
customertypes | array | The customer types for the purchase. |
companySigning | string | The company signing. |
mode | string | The mode for the purchase. |
cards | object | The cards available for the purchase. |
consumerFee | string | The consumer fee for the purchase. |
quickpayment | string | Quick payment for the purchase. |
customertypes
The customertypes array contains the customer types for the purchase.
company
person
cards
The cards object contains the cards available for the purchase.
DISPLAY_AMEX - Show Amex card
DISPLAY_DINERS - Show Diners card
DISPLAY_MASTERCARD - Show Mastercard
DISPLAY_VISA - Show Visa card
Currently, the checkout supports DISPLAY_MASTERCARD and DISPLAY_VISA.
Billing (address)
The billing object contains the billing address for the customer.
Property | Type | Description |
---|---|---|
firstname | string | The first name of the customer. |
lastname | string | The last name of the customer. |
street | string | The street address of the customer. |
zip | string | The zip code of the customer. |
city | string | The city of the customer. |
country | string | The country of the customer. |
phone | string | The phone number of the customer. |
string | The email of the customer. | |
type | string | The type of the customer. |
Shipping (address)
The shipping object contains the shipping address for the customer.
Property | Type | Description |
---|---|---|
firstname | string | The first name of the customer. |
lastname | string | The last name of the customer. |
street | string | The street address of the customer. |
zip | string | The zip code of the customer. |
city | string | The city of the customer. |
country | string | The country of the customer. |
phone | string | The phone number of the customer. |
string | The email of the customer. | |
type | string | The type of the customer. |
Handling (fee)
The handling object contains the handling fee for the order.
Property | Type | Description |
---|---|---|
withouttax | string | The handling price without tax. |
taxrate | string | The handling tax rate. |
Shipping (fee)
The shipping object contains the shipping fee for the order.
Property | Type | Description |
---|---|---|
withouttax | string | The shipping price without tax. |
taxrate | string | The shipping tax rate. |
Total
The total object contains the total data for the order.
Property | Type | Description |
---|---|---|
withouttax | string | The total price without tax. |
tax | string | The total tax for the order. |
rounding | string | The rounding for the order. |
withtax | string | The total price with tax. |
topayData
The topayData object contains the data for the topay.
Property | Type | Description |
---|---|---|
totalWithHandling | string | The total price with handling. |
totalWithoutHandling | string | The total price without handling. |
totalWithHandlingFormatted | string | The total price with handling formatted. |
totalWithoutHandlingFormatted | string | The total price without handling formatted. |
handling | string | The handling price. |
handlingFormatted | string | The handling price formatted. |