csob_payment_gateway 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 2d2cc49958b25cd18b72870836fdd222eb4161d0
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 42ad52cff89e4af0bc298881cdb779bc873e1101
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 4523dd96090642fed17539f41b4c198ca37533918fc2eb77a7b87f14aab403271ecbbab9e4c7f97407bc4686d842342447f295031e0d955ae8834abe53a914a6
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 23d9eda1616be1e5abc53fa4df2c7e0d664a42d1528a61c1222ac9982ad32f02011263c2c949d33145441ffe7bf47938a602c7c4b53b834ed2706de6b603d4d9
         
     | 
| 
         @@ -39,29 +39,29 @@ module CsobPaymentGateway 
     | 
|
| 
       39 
39 
     | 
    
         
             
                def payment_status
         
     | 
| 
       40 
40 
     | 
    
         
             
                  api_status_url = CsobPaymentGateway.configuration.urls["status"]
         
     | 
| 
       41 
41 
     | 
    
         | 
| 
       42 
     | 
    
         
            -
                   
     | 
| 
       43 
     | 
    
         
            -
                  JSON.parse( 
     | 
| 
      
 42 
     | 
    
         
            +
                  response = RestClient.get gateway_url + api_status_url + get_data
         
     | 
| 
      
 43 
     | 
    
         
            +
                  JSON.parse(response)
         
     | 
| 
       44 
44 
     | 
    
         
             
                end
         
     | 
| 
       45 
45 
     | 
    
         | 
| 
       46 
46 
     | 
    
         
             
                def payment_close
         
     | 
| 
       47 
47 
     | 
    
         
             
                  api_close_url = CsobPaymentGateway.configuration.urls["close"]
         
     | 
| 
       48 
48 
     | 
    
         | 
| 
       49 
     | 
    
         
            -
                   
     | 
| 
       50 
     | 
    
         
            -
                  JSON.parse( 
     | 
| 
      
 49 
     | 
    
         
            +
                  response = RestClient.put gateway_url + api_close_url, put_data.to_json, { content_type: :json, accept: :json }
         
     | 
| 
      
 50 
     | 
    
         
            +
                  JSON.parse(response)
         
     | 
| 
       51 
51 
     | 
    
         
             
                end
         
     | 
| 
       52 
52 
     | 
    
         | 
| 
       53 
53 
     | 
    
         
             
                def payment_reverse
         
     | 
| 
       54 
54 
     | 
    
         
             
                  api_reverse_url = CsobPaymentGateway.configuration.urls["reverse"]
         
     | 
| 
       55 
55 
     | 
    
         | 
| 
       56 
     | 
    
         
            -
                   
     | 
| 
       57 
     | 
    
         
            -
                  JSON.parse( 
     | 
| 
      
 56 
     | 
    
         
            +
                  response = RestClient.put gateway_url + api_reverse_url, put_data.to_json, { content_type: :json, accept: :json }
         
     | 
| 
      
 57 
     | 
    
         
            +
                  JSON.parse(response)
         
     | 
| 
       58 
58 
     | 
    
         
             
                end
         
     | 
| 
       59 
59 
     | 
    
         | 
| 
       60 
60 
     | 
    
         
             
                def payment_refund
         
     | 
| 
       61 
61 
     | 
    
         
             
                  api_refund_url = CsobPaymentGateway.configuration.urls["refund"]
         
     | 
| 
       62 
62 
     | 
    
         | 
| 
       63 
     | 
    
         
            -
                   
     | 
| 
       64 
     | 
    
         
            -
                  JSON.parse( 
     | 
| 
      
 63 
     | 
    
         
            +
                  response = RestClient.put gateway_url + api_refund_url, put_data.to_json, { content_type: :json, accept: :json }
         
     | 
| 
      
 64 
     | 
    
         
            +
                  JSON.parse(response)
         
     | 
| 
       65 
65 
     | 
    
         
             
                end
         
     | 
| 
       66 
66 
     | 
    
         | 
| 
       67 
67 
     | 
    
         
             
                def verify_response
         
     |