Get Payment Data

Du er her:
Anslået læsetid: 1 min

We made it easy to get payment information through ‘payment_data’ in our API.
to get started look at the code example here.

TIP You can open the file with notepad, if you do not have an editor for viewing source code.

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

get_payment_data_form.PNG

The following table explains how to fill in the form:

The request parameters are written in italic

Name Description
Merchant ID (merchantid) The merchantid that the payment belong to.
PaymentID (paymentid) The six or ten diget id which should be in the API response from when the payment was created through process_payment or our payment window.
TimeID (timeid) The time id which should be in the API response under the key ‘time’ from when the payment was created through process_payment or our payment window.

When you submitted the form, you should get a JSON response with the following data:

Name Description
PaymentID Six diget code used to identify the payment.
TransID Ten diget code used to identify the payment.
OrdreID The order id that was specified when the payment was created.
merchantid The merchanid which the payment belongs to
cardtype An id we use to identify which type of card was used to pay with e.g. VISA, Mastercard etc.
currency The ISO-4217 code for the currency that the payment was paid in.
amount The full amount of the transaction.
amount_captured The amount captured on the payment.
amount_refunded The amount refunded on the payment.
cardno The first six & the last four digets of the card number. The rest is replaced with ‘X’.
cardprefix The last four digets of the credit card. Note: If the last four digets starts with ‘0’ then the ‘0’ is removed.
secure If the payment was processed with 3D Secure. ‘1’ for yes & ‘0’ for no.
cardholder The name of the cardholder.
platform The shop platform used to pay with Yourpay. e.g. Shopify, WooCommerce, PrestaShop etc.
completed_through If the payment was processed with 3D secure. the value will be “3D” otherwise empty.
split_payment Deprecated.
time_refunded Unix timestamp of the the moment the payment was refunded.
time_registration Unix timestamp of the the moment the payment was registered.
time_captured Unix timestamp of the the moment the payment was captured.
time_deleted Unix timestamp of the the moment the payment was deleted.