Webinaari: Kuinka integroida Paytrail Connect API?
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Webinaari: Kuinka integroida Paytrail Connect API?

  • 628 views
Uploaded on

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

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

More in: Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
628
On Slideshare
621
From Embeds
7
Number of Embeds
1

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 7

https://twitter.com 7

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 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. 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. PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comThursday, June 20, 13
  • 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. 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. 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. 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. 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. 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. 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. 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. PaytrailInnova 2 Lutakonaukio 7 | 40100 Jyväskylä | Finland | +358 207 181 824 | info@paytrail.com | www.paytrail.comKiitos!Thursday, June 20, 13