Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comKuink...
PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comMikä ...
PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comThurs...
PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comREST ...
PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comManda...
PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comPOST ...
PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comConfi...
PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comCharg...
PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comDeliv...
PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comDelet...
PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comDokum...
PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comKiito...
Upcoming SlideShare
Loading in …5
×

Webinaari: Kuinka integroida Paytrail Connect API?

710 views

Published on

Tässä Kuinka integroida Paytrail Connect API? -webinaarin materiaali. Olkaa hyvä!

Published in: Business
  • Be the first to comment

  • Be the first to like this

Webinaari: Kuinka integroida Paytrail Connect API?

  1. 1. PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comKuinka integroidaPaytrail Connect APIWebinaari 19.6.2013Kaisa KiviluotoThursday, June 20, 13
  2. 2. PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comMikä se on?‣ Paytrail Connect API:a käytetään Paytrail-tilintietojen hyödyntämiseen ja veloittamiseen ilman,että siirrytään maksutavan valintasivulle‣ Paytrail-tili: Maksamista yhdellä klikkauksella.‣ Paytrail Connect API tulee tutun maksupalvelunrinnalle, ei korvaamaan sitä.‣ Tilitysviive 10 pankkipäivää, transaktiohinnat samatkuin luottokorttimaksuissa.Thursday, June 20, 13
  3. 3. PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comThursday, June 20, 13
  4. 4. PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comREST Authentication(tunnistautuminen)Shared secret in this example: "6pKF4jkv97zmqBJ3ZL8gUw5DfT2NMQ"sbase64_encode( hash_hmac("SHA256","POST" . "n" ."/authorizations" . "n" ."PaytrailConnectAPI 13466" . "n" . // apikey is merchant id"2012-12-31T12:00:00+0200" . "n" . // date(c)"ubewX5M7uzz64zskr7FThQ==", // base64_encode(hash(md5,http_get_request_body(), true))"6pKF4jkv97zmqBJ3ZL8gUw5DfT2NMQ", // Merchant secrettrue //Binary output));Thursday, June 20, 13
  5. 5. PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comMandatory headersPOST /authorizations HTTP/1.1Timestamp: 2012-12-31T12:00:00+0200Content-MD5: ubewX5M7uzz64zskr7FThQ==Authorization: PaytrailConnectAPI13466:NDMzNDA2OTA4NWVmYTRiMDUyMWI4OGNkNjkxNzBhYjBmNDE0ZjNiMmMwODkwY2ZiYjJlNTU4NGI1NmUyMjM4ZQ==Thursday, June 20, 13
  6. 6. PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comPOST /authorizations(Pyydetään lupa käyttää tiliä)POST /authorizations HTTP/1.1Timestamp: 2012-12-31T12:00:00+0200Content-MD5: ubewX5M7uzz64zskr7FThQ==Authorization: PaytrailConnectAPI13466:NDMzNDA2OTA4NWVmYTRiMDUyMWI4OGNkNjkxNzBhYjBmNDE0ZjNiMmMwODkwY2ZiYjJlNTU4NGI1NmUyMjM4ZQ=={"authType": "email+smspin","authKey": "john.doe@address.com","access": ["deliveryAddress", "charge"],"validity": "once","locale": "fi_FI","signupOkUrl": "http://www.webshop.com/ok""signupCancelUrl": "http://www.webshop.com/Cancel"}Response:HTTP/1.1 201 CreatedLocation: /authorizations/AXJD28237XSDHJS18928Thursday, June 20, 13
  7. 7. PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comConfirming authorization(Vahvistetaan lupa asiakkaanPIN-koodilla)POST /authorizations/AXJD28237XSDHJS18928/confirmationHTTP/1.1Timestamp: 2012-12-31T12:00:00+0200Content-MD5: ubewX5M7uzz64zskr7FThQ==Authorization: PaytrailConnectAPI 13466:/YT5YGOUA17wK6qSeyQyrLqcGsUKflRkeWu/2q7NI2g={"authSecret": "9AE2DZ"}Response:HTTP/1.1 201 CreatedLocation: /authorizations/AXJD28237XSDHJS18928/confirmation/FF1236757632ASDFThursday, June 20, 13
  8. 8. PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comCharging a payment(Veloitetaan maksu kortilta)POST /authorizations/AXJD28237XSDHJS18928/charges HTTP/1.1Timestamp: 2012-12-31T12:00:00+0200Content-MD5: ubewX5M7uzz64zskr7FThQ==Authorization: PaytrailConnectAPI13466:NDMzNDA2OTA4NWVmYTRiMDUyMWI4OGNkNjkxNzBhYjBmNDE0ZjNiMmMwODkwY2ZiYjJlNTU4NGI1NmUyMjM4ZQ=={"payment": {"paymentAmount": 10,"currency": "EUR","orderNumber": "ORD12345","urlSet": {"successUrl": "https://www.examplewebshop.com/success","cancelUrl": "https://www.examplewebshop.com/cancel","notifyUrl": "https://www.examplewebshop.com/notify"},"locale": "en_US"}}Thursday, June 20, 13
  9. 9. PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comDelivery address(Pyydetään osoitetiedot)GET /authorizations/{id}/deliveryAddresses HTTP/1.1Timestamp: 2012-12-31T12:00:00+0200Content-MD5: ubewX5M7uzz64zskr7FThQ==Authorization: PaytrailConnectAPI13466:NDMzNDA2OTA4NWVmYTRiMDUyMWI4OGNkNjkxNzBhYjBmNDE0ZjNiMmMwODkwY2ZiYjJlNTU4NGI1NmUyMjM4ZQ==Response:HTTP/1.1 200 OK{"deliveryAddresses": [{"firstName": "John","lastName": "Doe","street": "Downing Street 10","postalCode": "40100","postalOffice": "Helsinki","country": "FI"}]}Thursday, June 20, 13
  10. 10. PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comDeleting an authorization(Poistetaan luotu lupa)DELETE /authorizations/AXJD28237XSDHJS18928 HTTP/1.1Timestamp: 2012-12-31T12:00:00+0200Content-MD5: ubewX5M7uzz64zskr7FThQ==Authorization: PaytrailConnectAPI13466:NDMzNDA2OTA4NWVmYTRiMDUyMWI4OGNkNjkxNzBhYjBmNDE0ZjNiMmMwODkwY2ZiYjJlNTU4NGI1NmUyMjM4ZQ==Thursday, June 20, 13
  11. 11. PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comDokumentaatio‣ Tarkempi rajapintakuvaus:‣ docs.paytrail.comThursday, June 20, 13
  12. 12. PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comKiitos!Thursday, June 20, 13

×