Charge Transaction (J4)
POST
https://restapidev.payplus.co.il/api/v1.0/Transactions/ChargeEnvironment
Headers
stringrequired
API Key
stringrequired
Secret Key
Request body
| Field | Type | Description |
|---|---|---|
id | string | Payer credit card holder identification number |
token | string | Required only if use_token is true |
amountrequired | number | |
add_data | string | SHOULD BE SENT JUST IF YOUR CREDIT CARD COMPANY OPENED THIS OPTION !!! |
customer | object | |
customer.city | string | |
customer.emailrequired | string | By this field we will search for a customer and allocate the payment under the client |
customer.phone | string | |
customer.address | string | |
customer.full_name | string | In case the customer is a company, contact personal name can be sent using this field |
customer.cell_phone | string | |
customer.vat_number | string | In case email are not sent, we will search for a customer by this field |
customer.country_ISO | string | Example: IL |
customer.customer_namerequired | string | Important in case you working with invoicing company |
payments | object | Optional |
payments.numberrequired | integer (int) | Number of payments |
payments.first_amount | integer (int) | First Payment |
payments.nonfirst_amount | integer (int) | Remaining payments |
products | object[] | Optional ,Array of objects |
products[].name | string | |
products[].price | string | product price |
products[].quantity | string | product quantity. Example: 1 |
products[].vat_type | string | 'vat included' OR 1-'vat not included' OR 2- 'exempt vat' |
products[].product_uid | string | Unique identifier for product. Example: de11bca8-416e-4b47-9e5a-0040e21b0b3f |
products[].currency_code | string | EX: ILS |
products[].discount_type | string | amount OR percentage |
products[].discount_value | integer | |
products[].product_invoice_extra_details | string | Example: some text |
use_tokenrequired | boolean | If true , token is required |
extra_info | string | |
cashier_uidrequired | string | Unique identifier for cashier |
credit_card | object | Required if use token is false |
credit_card.cvv | string | |
credit_card.exp_mm | string | required if send credit card |
credit_card.exp_yy | string | required if send credit card |
credit_card.number | string | required if send credit card |
credit_card.auth_number | string | authorization number from credit company |
deferMonths | integer (int) | nullable (If you are using Club Codes [Kod Moadon] send the code in this field) |
more_info_1 | string | nullable (Additional Information) |
more_info_2 | string | nullable (Additional Information) |
more_info_3 | string | nullable (Additional Information) |
more_info_4 | string | nullable (Additional Information) |
more_info_5 | string | nullable (Additional Information) |
create_token | boolean | nullable (In case you have tokenization permission, you can decide if you would like to return the token of the customer for future charges) |
credit_termsrequired | integer (int) | 1-regular OR 6-credit OR 8-payment |
customer_uid | string | Mandatory if use_token is true, customer object can be used instead |
terminal_uidrequired | string | Unique identifier for terminal |
currency_coderequired | string | |
initial_invoice | boolean | If sent the transactions will consider if to initial invoice or not, if not sent then will take the default setting |
self_secure_3ds | object | |
self_secure_3ds.eci | string | eci returned from the 3DSecure provider. Only 02, 05 will be sent to the 3D Secure provider, otherwise will be as regular transaction. |
self_secure_3ds.cavv_ucaf | string | UCAF returned from the 3DSecure provider. "MTIzNDU2Nzg5MDA5ODc2NTQzMjE=" |
self_secure_3ds.external_uid | string | zdfe-4bd0-b698-2bb64996cdf9" (string) - External 3D Secure UID |
self_secure_3ds.external_trans_uid | string | ea0e-4bd0-b7be-2bb64996cdf3" (string) - External 3D Secure Result Transaction UID |
customer_name_invoice | string | Required only if customer_uid is null and have integrated invoice system |
original_terminal_uid | string | In case you charging J5 transaction in another terminal, provide the original terminal of the original J5 tranasaction. |
Edit the request body
Responses
200 200
| Field | Type | Description |
|---|---|---|
data | object | |
data.data | object | |
data.data.items | object[] | |
data.data.items[].name | string | |
data.data.items[].quantity | string | |
data.data.items[].amount_pay | integer | |
data.data.items[].product_uid | string | |
data.data.items[].discount_type | string | |
data.data.items[].discount_value | integer | |
data.data.items[].quantity_price | number | |
data.data.items[].discount_amount | integer | |
data.data.cashier_uid | string | |
data.data.customer_uid | string | |
data.data.terminal_uid | string | |
data.data.card_information | object | |
data.data.card_information.brand_id | integer | |
data.data.card_information.issuer_id | integer | |
data.data.card_information.clearing_id | integer | |
data.data.card_information.expiry_year | string | |
data.data.card_information.four_digits | string | |
data.data.card_information.expiry_month | string | |
data.transaction | object | |
data.transaction.uid | string | |
data.transaction.date | string | |
data.transaction.type | string | |
data.transaction.amount | number | |
data.transaction.number | string | |
data.transaction.currency | string | |
data.transaction.payments | object | |
data.transaction.payments.number_of_payments | integer | |
data.transaction.payments.first_payment_amount | integer | |
data.transaction.payments.rest_payments_amount | integer | |
data.transaction.secure3D | object | |
data.transaction.secure3D.status | boolean | |
data.transaction.secure3D.tracking | any | |
data.transaction.more_info | string | |
data.transaction.more_info_1 | string | |
data.transaction.more_info_2 | string | |
data.transaction.more_info_3 | string | |
data.transaction.more_info_4 | string | |
data.transaction.more_info_5 | string | |
data.transaction.status_code | string | |
data.transaction.credit_terms | string | |
data.transaction.voucher_number | string | |
data.transaction.approval_number | string | |
results | object | |
results.code | integer | |
results.status | string | |
results.description | string |