REST and PayPal

Posted by Nikolay Fominyh on Programmers See other posts from Programmers or by Nikolay Fominyh
Published on 2012-09-03T09:35:48Z Indexed on 2012/09/03 9:48 UTC
Read the original article Hit count: 308

Filed under:
|
|

Is it ok to query REST API and get redirect to third party from it, or it is only about resources?

Let's look at following scenario:

  1. User gets to payment page
  2. User clicks on "Pay using paypal button"
  3. API query PayPal for redirect url
  4. API returns redirect url in response. Client side redirect goes here.
  5. User does PayPal routine and returns with token
  6. User query API with token
  7. API do token check and adds money

Is this scenario complex for REST architecture?

© Programmers or respective owner

Related posts about architecture

Related posts about rest