Ir para o conteúdo

Pix API


One way to integrate with Phoebus' Pix application is through IPC (Communication between Law Suit). For this, the library phastpay-sdk-x.x.x.x.aar is available, containing all the code necessary to make these calls.

Here is the detailed specification of the operations available for integration with the Pix API, using the PixClient interface provided by the library.

Methods

Subscription Description
void bind(bindCallBack: BindCallback) Performs integration between the integration app and the pix app.
void unbind() Closes the connection between the integration app and the pix app.
void startPixPayment(request: String, callback: StartPixPaymentCallback) Performs the billing generation process.
void consult(request, callback) Perform the query of all PIX transactions made by pix_client.
void consultByTxId(request: String, callback: ConsultPixPaymentCallback) Perform a query using the billing Tx-Id.
void consultByPixClientId(request: String, callback: ConsultByPixClientIdCallback) Performs a query using the billing pix_client_id.
void listPixPayment(request: String, callback: ListPixPaymentCallback) Lists all charges made, canceled or returned.
void refund(request: String, callback: RefundPixPaymentCallback) List the charges made and when selecting one, the associated amount is returned.
void refundPixPayment(request: String, callback: RefundPixPaymentCallback) Refund a charge made.
isAppPixInstalled(): Boolean Checks whether or not the Pix application is installed on the terminal.
void synchronize(callback:SyncDataCallback) Synchronizes local data with the server.
void getReports(callback: GetReportsCallback) Performs the transaction reports over a specified period.