Placér dit indhold fhgfvhbher

Get transaction list

Get transaction list

You might wish to get a list of transactions within a certain interval and state. We have our function ‘transaction_list’ for this purpose. Look at the code example here.

When you run the code by uploading it to your server and navigating to it, you’re presented with the following form:

transaction_list_form.PNG

For a table explaining how to fill in each input field, look below:

The request parameters are written in italic

TIP  You can open the file with notepad, if you do not have an editor for viewing source code.
NameDescription
Merchant token (token)You can get this token by logging into our admin portal at admin.yourpay.io and look under integration settings.
List type (listtype)This defines which type of payment are shown in the list. 0 = new payments, 1 = captured payments, 2 = deleted payments, 3 = refunded payments.
Time from (time_from)Optional: Unix timestamp of the moment the list should begin from.
Time until (time_until)Optional: Unix timestamp of the moment the list should end.
Limit (litmit)Optional: How many transactions you want to list at a time within your set interval. Useful if you have alot of transactions in the time interval set above.
From (from)

Optional: Within your interval defines

from which element first transaction should be shown.
If you have 100 payments in your interval and limit is ’10’ and from is ’20’, you would see from 20th payment to 30th payment.

When you submit, you will get a list in JSON of the payments belonging to the defined list type. The information in the JSON response includes the following:

NameDescription
testtransWill be ‘1’ if the payment is a test ‘0’ otherwise.
cardtypeThe cardtype that was used to process the payment with e.g. VISA, MasterCard etc.
currencyThe ISO-4217 code for the currency used in the transaction.
resttimestampUnix timestamp of the moment of the transaction.
req_capture‘1’ if the transaction have been captured, ‘0’ otherwise.
req_capture_timeUnix timestamp of the moment the payment was captured
PaymentIDThe id used to identify the payment.
TransIDThe id used to retrive information about the payment.
orderIDThe order id set when the payment was made.
amountThe total amount of the payment.
dateidThis is the unique identifier for the date. This is needed for our function ‘transactions_outgoing_specified’.
trans_feeDeprecated.
cardholderThe name of the owner of the credit card.
ccrgThis is an id we use to retrive a customers saved card data.
attached_ccrgIf you processed the payment with a existing ccrg and have not set ccrg = 1 when you processed it, then the ccrg you used for processing will be here.
Was this article helpful?
Dislike 0
Views: 9
Close Menu
×
×

Cart