Przelewy24 WebServices



Similar documents
MERCHANT INTEGRATION GUIDE. Version 2.8

Web Services Credit Card Errors A Troubleshooter

Web Services Credit Card Errors A Troubleshooter

GetLibraryUserOrderList

Web Services Credit Card Errors A Troubleshooter

SVEA HOSTED SERVICE SPECIFICATION V1.13

Server and Direct Shared Protocols

Easy CollECt and the transaction ManagEr interface

ipayment Gateway API (IPG API)

Secure XML API Integration Guide. (with FraudGuard add in)

Bank and SecurePay Response Codes

GestPay Technical Specifications iframe Payment Page

REST Webservices API Reference Manual

SSL API Documentation. Version 1.2.1

This Annex uses the definitions set out in the Agreement on service of payment cards on the Internet (hereinafter the Agreement).

Magensa Services. Administrative Account Services API Documentation for Informational Purposes Only. September Manual Part Number:

When a variable is assigned as a Process Initialization variable its value is provided at the beginning of the process.

Overview of Web Services API

Batch Processing. Specification. Version SIX Payment Services

Batch Processing Version 2.0 Revision Date: April 29, 2014

How to configure your client

e-filing Secure Web Service User Manual

Self Service User Authentication Service Usage Guidelines. Copyright 2013, CionSystems Inc.

Hosted Credit Card Forms Implementation Guide

PayPal Usage Document

How to move to your account with MAC Mail

Blackbaud Merchant Services Web Portal Guide

Software Support Registration

Software Support Registration workflow

Buckaroo Payment Engine 3.0 Implementation Manual HTML gateway

ADFS Integration Guidelines

xstation API Communication Protocol Documentation v. 2.2

ipko biznes Administrator s Guide

Technical Specification Premium SMS gateway

Transaction Details Guide

Credit Card Advantage Build 26 - Release Notes (version 9.0 and 10.0)

Direct Payment Protocol Errors A Troubleshooter

Paynow 3rd Party Shopping Cart or Link Integration Guide

int_adyen Version

VoIP Integration. Contents CHAPTER

Google Content Extension

RevTrak Software Training Guide

Platform Error Messages

MasterCard In tern et Gatew ay Service (MIGS)

Example for Using the PrestaShop Web Service : CRUD

ColdFusion Adwords API Library

CyberSource EBC for MIT Clubs Transcript

Directories Web Services

GTPayment Merchant Integration Manual

Web Development using PHP (WD_PHP) Duration 1.5 months

Phone Check. Reference Guide

Nokia for Business. Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation

Authorization Interface

SRFax Fax API Web Services Documentation

Address Phone & Fax Internet

Merchant Application Form

10 Class: Icepay_Result - Handling the error and success page Methods Example Class: Icepay_Postback - Handling the

ACCREDITATION COUNCIL FOR PHARMACY EDUCATION. CPE Monitor. Technical Specifications

Saferpay Implementation Guide

How To Use Blackberry Web Services On A Blackberry Device

WebsitePanel Integration API

WHMCS Integration Manual

WEB TERMINAL AND RECURRING BILLING

Sage Pay User Guide for Sage 200

ObserveIT Ticketing Integration Guide

OMA SAVINGS BANK S ONLINE PAYMENT SERVICE

Parallels Plesk Control Panel

PHP Language Binding Guide For The Connection Cloud Web Services

Authorization Interface

Nokia for Business. Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation

The Wells Fargo Payment Gateway Business Center. User Guide

Global Transport Secure ecommerce. Web Service Implementation Guide

Once form has been completed by one or more employees the information can be entered on the employees direct deposit screen.

Merchant Administration

SUMMARY. e-soft s.r.l.

Twinfield Single Sign On

The #1 Fastest Growing Customer Service Software. Comm100 Marketing API Guide. Copyright 2011 Comm100. All Rights Reserved.

To configure Outlook Express for your InfoMetrics address:

Notification messages

USER MANUAL DOCUMENT SHARING SYSTEM FOR AIMS. VERSION 1.0 (03-Dec-2014) Prepared By

PROCESS TRANSACTION API

Supply Chain Finance WinFinance

e-ambiz User Guide N A V I G A T I O N INTRODUCTION Page 1 from 35

Credomatic Integration Resources. Browser Redirect API Documentation June 2007

WORKING WITH WEB SERVICES. Rob Richards

Pervasive Data Integrator. Oracle CRM On Demand Connector Guide

Parallels Plesk Panel

Process Transaction API

PayEx Merchant Administrator Manual

How To Reverse A Credit Card Transaction On A Credit Cards Card On A Microsoft Card (Iota) On A Pc Or Macbook (Macro) On An Iphone Or Ipad (Macromax) On The Pc Or Ip

Wires. z Go to z From the Secure login to drop-down, select Business Online Banking z Enter Username and Password

Guide to BBPS and BBMS Blackbaud Payment Services and Blackbaud Merchant Services explained.

PayWay. API Developer's Guide

FILES FORMATS USED IN ING ONLINE

Configuring User Identification via Active Directory

Table of Contents. User Request for Access User Login Upload a Data File... 4

Managed Rebill web services

Transcription:

Przelewy24 WebServices service@przelewy24.pl Version: 2.5.0, Date: 2012-11-29 1. Configuration To activate access to the Service: a. Send your IP address (your server s address) to service@przelewy24.pl b. Retrieve an access-key from Przelewy24 2. Endpoint of the WebService: https://secure.przelewy24.pl/external/wsdl/service.php?wsdl (type: encoded) https://secure.przelewy24.pl/external/wsdl/services.php?wsdl (type: literal) Strona 1 z 18

3. Available methods: TestAccess TrnRefund TrnBySessionId TrnListByDate TrnListByBatch RefundById TrnRegister PaymentMethods CurrencyExchange BatchList VerifyTransaction DenyTransaction Strona 2 z 18

General types GeneralError SingleRefund Transaction An object with two fields: errorcode int an unique ID of an error errormessage string An object of single refund, with fields: orderid (int), sessionid (string), status (bool), error (string) Note: an error field contains message related to the single one refund An object of single transaction, with fields: orderid (int), orderidfull (int), sessionid (string), status (int), amount (int), date (string YYYYMMDDHHMM), dateoftransaction (string) clientemail (string), accountmd5 (string / empty), paymentmethod (int) status: 0 not paid, 1 prepayment, 2 completed, 3 refunded RefundInfo TransactionDataIn TransactionDataOut PaymentMethod Currency Batch An object of single refund information, with fields: orderid (int), orderidfull (int), sessionid (string), batchid (int), date (string), status (int), amount (int) An input object with data: amount (int), email (string), sessionid (string), methodid (int), client (string), street (string), city (string), zip (string), country (string), description (string) An output object with data: orderid (int), orderidfull (int), sessionid (string), ban (string), banowner (string), banowneraddress (string), amount (int) An object of single payment method, with fields: name (string), id (int), status (bool) An object of single exchange rate, with fields: code (string), exchng (float) An object of single batch (outgoing transfer), with fields: batchid (int), datein (string), dateout (string) Strona 3 z 18

Error codes 1 Access denied Occurs if login and/or password are incorrect, or IP address hasn t been sent to Przelewy24 10 Transaction not found 11 Empty transaction list 100 Repeated batch number 101 Empty refund list 102 Incorrect batchid. The number is too big. Max: 2147483647 120 Empty list 199 Errors in refund list. Refunds rejected. Occurs when there is an error in single refund (for example wrong amount, wrong orderid, etc.) 200 Empty list 300 Incorrect amount 301 Incorrect email address 302 Client rejected 701 Transaction verification error (error code and message included) 10000 Unknown error Strona 4 z 18

Description TestAccess method Method allows to test if access data are correct return bool true if given data are correct, false otherwise $soap = new SoapClient( https://secure.przelewy24.pl/external/wsdl/service.php?wsdl ); $test = $soap->testaccess( 9999, anuniquekeyretrievedfromprzelewy24 ); if ($test) echo Access granted ; else echo Access denied ; Strona 5 z 18

TrnRefund method Method sends a refund request to Przelewy24. Notice: The refunded transaction must be Completed batch int Unique batch ID list ArrayOfRefund List of transactions to be refunded Input type ArrayOfRefund An array of single refund array, with fields: orderid (int), sessionid (string), amount (int) return TrnRefundResult Two fields: error (GeneralError) and result (an array of SingleRefund) Strona 6 z 18

$refunds = array( 0=> array( 'sessionid' => 'na39asdfghvb54f5g6y7lrjc0', 'orderid' => 919018, 'amount' => 9000 ), 1=>array( 'sessionid' => 'fff46yugr9037d92b54tg60e77', 'orderid' => 819179, 'amount' => 2000 )); $res = $soap->trnrefund('9999', 'anuniquekeyretrievedfromprzelewy24', time(), $refunds); if ($res->error->errorcode > 0) { // something went wrong echo 'An error occurred: '. $res->error->errormessage; foreach ($res->result as $refund) { if ($refund->status) echo 'Transaction: '. $refund->orderid. ' OK.'; else echo 'Transaction: '. $refund->orderid. ' ERROR: '. $refund->error; else { echo 'Refunds accepted.'; Strona 7 z 18

TrnBySessionId method Method returns an information about transaction. sessionid string SessionID field of transaction return TransactionResult Two fields: error (GeneralError) and result (an array of Transaction) $res = $soap->trnbysessionid('9999', 'anuniquekeyretrievedfromprzelewy24', 'f3958fjsxndri'); // $res->result contains data about transaction, or object with empty field in case of error else { echo 'Transaction: '; $transaction = $res->result; // data of transaction: $transaction->orderid, $transaction->amount, $transaction->date Strona 8 z 18

TrnListByDate method Method returns a list of transactions made on given date. date string Date in format: YYYYMMDD return TransactionsResult Two fields: error (GeneralError) and result (an array of Transaction) $res = $soap->trnlistbydate('9999', 'anuniquekeyretrievedfromprzelewy24', '20110610'); // $res->result contains data about transactions, or object with empty field in case of error else { echo 'Transaction: '; $LIST = $res->result; foreach ($LIST as $transaction) { // data of transaction: $transaction->orderid, $transaction->amount, $transaction->date //... Strona 9 z 18

TrnListByBatch method Method returns a list of transactions transferred to Merchant in a single batch batch int An uniqe batch ID return TransactionsResult Two fields: error (GeneralError) and result (an array of Transaction) $res = $soap->trnlistbybatch('9999', 'anuniquekeyretrievedfromprzelewy24', '123456'); // $res->result contains data about transactions, or object with empty field in case of error else { echo 'Transaction: '; $LIST = $res->result; foreach ($LIST as $transaction) { // data of transaction: $transaction->orderid, $transaction->amount, $transaction->date //... Strona 10 z 18

RefundById method Method returns an information about single refund orderid int An orderid (6 digits) return RefundByIdResult Two fields: error (GeneralError) and result (an array of RefundInfo) $res = $soap->refundbyid('9999', 'anuniquekeyretrievedfromprzelewy24', '123456'); // $res->result contains data about refunds, or object with empty field in case of error else { echo 'Refund(s): '; $LIST = $res->result; foreach ($LIST as $refund) { // data of refund: $refund->orderid, $refund->amount, $refund->date //... Strona 11 z 18

TrnRegister method Method registers transaction in the system and returns payment information (title, IBAN, etc.) details TransactionDataIn An object with data to register transaction return TrnRegisterResult Two fields: error (GeneralError) and result (TransactionDataOut) Strona 12 z 18

$transaction = array( 'sessionid' => '2b50516e440e77', 'email' => 'jan@kowalski.pl', 'amount' => 2000, 'methodid' => 0, 'client' => 'Jan Kowalski', 'street' => 'Warszawska 111', 'city' => 'Poznan', 'zip' => '60-000', 'country' => 'Poland', 'description' => 'Test transaction' ); $res = $soap->trnregister('9999', 'anuniquekeyretrievedfromprzelewy24', $transaction); // $res->result contains data about transaction, or object with empty field in case of error else { echo 'Transaction data: '; $T = $res->result; $orderid = $T->orderId; // or $T->orderIdFull $IBAN = $T->ban; echo 'You should pay to: '. $IBAN. ', with title: p24-'. $orderid; Strona 13 z 18

PaymentMethods method Method returns a list of payment methods lang string(2) A language code. One of these: pl, en return PaymentMethodsResult Two fields: error (GeneralError) and result (an array of PaymentMethod) $res = $soap->paymentmethods('9999', 'anuniquekeyretrievedfromprzelewy24', 'en'); // $res->result contains data about payment methods else { echo 'Payment methods: '; $LIST = $res->result; foreach ($LIST as $pm) { // data of payment method: $pm->name, $pm->id, $pm->status //... Strona 14 z 18

CurrencyExchange method Method returns a list of four currency exchanges (rate is lower than average from NBP) return CurrencyExchangeResult Two fields: error (GeneralError) and result (an array of CurrencyExchange) $res = $soap-> CurrencyExchange('9999', 'anuniquekeyretrievedfromprzelewy24'); // $res->result contains data about rates else { echo 'Exchange rates: '; $LIST = $res->result; foreach ($LIST as $rate) { // data: $rate->code, $rate->exchng Strona 15 z 18

BatchList method Method returns a list of batches (outgoing transfers from System last 90 days) return BatchListResult Two fields: error (GeneralError) and result (an array of Batch) $res = $soap-> BatchList('9999', 'anuniquekeyretrievedfromprzelewy24'); else { echo 'Batch list: '; $LIST = $res->result; foreach ($LIST as $batch) { // data: $batch->batchid, $batch->datein, // $batch->dateout (if empty transfer is pending) Strona 16 z 18

VerifyTransaction method Method for verifying transactions orderid int P24 OrderID (6 digits) sessionid string Session ID amount int Amount in Polish Grosz (PLN/100) return VerifyTransactionResult Two fields: error (GeneralError) and result (bool true if transaction is OK, otherwise false an errormessage is returned then) $res = $soap-> VerifyTransaction('9999', 'keyfromprzelewy24', 123456, 'abcdef', 1000); else { echo 'Transaction OK'; Strona 17 z 18

DenyTransaction method Method for denying transactions orderid int P24 OrderID (6 digits) sessionid string Session ID return DenyTransactionResult Two fields: error (GeneralError) and result (bool true if transaction is denied, otherwise false an errormessage is returned then) $res = $soap-> DenyTransaction('9999', 'keyfromprzelewy24', 123456, 'abcdef'); else { echo 'Transaction OK'; Strona 18 z 18