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: 390
        
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:
- User gets to payment page
- User clicks on "Pay using paypal button"
- API query PayPal for redirect url
- API returns redirect url in response. Client side redirect goes here.
- User does PayPal routine and returns with token
- User query API with token
- API do token check and adds money
Is this scenario complex for REST architecture?
© Programmers or respective owner