2017 © Pedro Peláez
 

library payapi-sdk-php

PayApi SDK for PHP

image

payapi/payapi-sdk-php

PayApi SDK for PHP

  • Thursday, June 14, 2018
  • by payapi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 200 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 26 Versions
  • 14 % Grown

The README.md

PayApi Payments PHP SDK, (*1)

@NOTE, (*2)

    - 1. to log into sdk thought :
          $sdk -> settings ( $payapi_public_id , $payapi_api_enc_key ) ;
           this returns merchantSettings payload if valid
            and creates an encrypted cache for both:
            payapi/cache/<instanceKey>/account
            payapi/cache/<instanceKey>/settings

    - 2. commands :
          $sdk -> instantPayment ( $data ) ;                     //-> validate/sanitize/cache product/payment data
                                                                      returns array ( "metadata" , "endPointPayment" , "endPointProductPayment" ) ;
          $sdk -> brand () ;                                     //-> gets brand/partner info
          $sdk -> callback () ;                                  //-> gets/cache callback decoded transaction
          $sdk -> localize () ;                                  //-> gets/cache ip decoded localization (plugin adds adapt country and zone ids)
          $sdk -> localize ( true ) ;                            //-> gets & refresh ip decoded localization cache (plugin adds adapt country and zone ids)
          $sdk -> settings ( 'public_id' , 'api_key' , true ) ;  //-> verify account & gets/cache instance merchantSettings, also refresh account data
          $sdk -> settings ( false , false , true ) ;            //-> refresh & gets instance merchantSettings
          $sdk -> settings () ;                                  //-> gets instance cached merchantSettings
          $sdk -> partialPayment ( $totalInCents , $currency ) ; //-> calculate partialPayment from merchantSettings
          $sdk -> response ( <standard_response_code_int> ) ;    //-> get response info
          $sdk -> info () ;                                      //-> gets sdk debug info

@return, (*3)

    - success :
          array (
            "code"  =>    ( int )            200 ,
            "data"  =>  ( array ) <expectedData>
          ) ;

    - error :
          array (
            "code"  =>    ( int )    <errorCode> ,
            "error" => ( string )    <errorData>
          ) ;

@NOTE to debug, in payapi folder:, (*4)

    $ tail -f -n300 debug/debug.payapi.log | perl colored.pl

@NOTE check 'test' folder out, (*5)

The Versions

14/06 2018

dev-master

9999999-dev

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

14/06 2018

dev-staging

dev-staging

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

14/06 2018

4.0.7

4.0.7.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

13/06 2018

4.0.6

4.0.6.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

07/06 2018

4.0.5

4.0.5.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

04/06 2018

4.0.4

4.0.4.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

18/04 2018

4.0.3

4.0.3.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

18/04 2018

4.0.2

4.0.2.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

18/04 2018

4.0.1

4.0.1.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

18/04 2018

4.0.0

4.0.0.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

11/04 2018

3.0.9

3.0.9.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

03/04 2018

3.0.8

3.0.8.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

22/03 2018

3.0.7

3.0.7.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

16/03 2018

3.0.6

3.0.6.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

14/03 2018

3.0.5

3.0.5.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

14/03 2018

3.0.4

3.0.4.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

13/03 2018

3.0.2

3.0.2.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

22/02 2018

3.0.1

3.0.1.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

10/01 2018

3.0.0

3.0.0.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

14/12 2017

2.0.5

2.0.5.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

25/10 2017

2.0.4

2.0.4.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

25/10 2017

2.0.3

2.0.3.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

21/10 2017

2.0.2

2.0.2.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

20/10 2017

2.0.1

2.0.1.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

19/10 2017

2.0.0

2.0.0.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

03/10 2017

1.0.0

1.0.0.0

PayApi SDK for PHP

  Sources   Download

Apache-2.0

The Requires