que cada codigo representa.Para facilitar a vida de voces seguem os inserts para popular estas tabelas: INSERT INTO tb_payment_method_code VALUES (101, 'Cartao de credito Visa');INSERT INTO tb_payment_method_code VALUES (102, 'Cartao de credito MasterCard');INSERT INTO tb_payment_method_code VALUES (103, 'Cartao de credito American Express');INSERT INTO tb_payment_method_code VALUES (104, 'Cartao de credito Diners');INSERT INTO tb_payment_method_code VALUES (105, 'Cartao de credito Hipercard');INSERT INTO tb_payment_method_code VALUES (106, 'Cartao de credito Aura');INSERT INTO tb_payment_method_code VALUES (107, 'Cartao de credito Elo');INSERT INTO tb_payment_method_code VALUES (108, 'Cartao de credito PLENOCard');INSERT INTO tb_payment_method_code VALUES (109, 'Cartao de credito PersonalCard');INSERT INTO tb_payment_method_code VALUES (110, 'Cartao de credito JCB');INSERT INTO tb_payment_method_code VALUES (111, 'Cartao de credito Discover');INSERT INTO tb_payment_method_code VALUES (112, 'Cartao de credito BrasilCard');INSERT INTO tb_payment_method_code VALUES (113, 'Cartao de credito FORTBRASIL');INSERT INTO tb_payment_method_code VALUES (201, 'Boleto Bradesco');INSERT INTO tb_payment_method_code VALUES (202, 'Boleto Santander');INSERT INTO tb_payment_method_code VALUES (301, 'Debito online Bradesco');INSERT INTO tb_payment_method_code VALUES (302, 'Debito online Itau');INSERT INTO tb_payment_method_code VALUES (303, 'Debito online Unibanco');INSERT INTO tb_payment_method_code VALUES (304, 'Debito online Banco do Brasil');INSERT INTO tb_payment_method_code VALUES (305, 'Debito online Banco Real');INSERT INTO tb_payment_method_code VALUES (306, 'Debito online Banrisul');INSERT INTO tb_payment_method_code VALUES (307, 'Debito online HSBC');INSERT INTO tb_payment_method_code VALUES (401, 'Saldo PagSeguro');INSERT INTO tb_payment_method_code VALUES (501, 'Oi Paggo');INSERT INTO tb_payment_method_type VALUES (1, 'Cartao de credito');INSERT INTO tb_payment_method_type VALUES (2, 'Boleto');INSERT INTO tb_payment_method_type VALUES (3, 'Debito online (TEF)');INSERT INTO tb_payment_method_type VALUES (4, 'Saldo PagSeguro');INSERT INTO tb_payment_method_type VALUES (5, 'Oi Paggo');INSERT INTO tb_transaction_status VALUES (1, 'Aguardando pagamento');INSERT INTO tb_transaction_status VALUES (2, 'Em analise');INSERT INTO tb_transaction_status VALUES (3, 'Paga');INSERT INTO tb_transaction_status VALUES (4, 'Disponivel');INSERT INTO tb_transaction_status VALUES (5, 'Em disputa');INSERT INTO tb_transaction_status VALUES (6, 'Devolvida');INSERT INTO tb_transaction_status VALUES (7, 'Cancelada');Achei importante criar um tabela de historico das transacoes, pois assim eu consigo ter um detalhe de quanto tempo a transacao passou em determinado status.Preferi fazer o controle deste historico via trigger: CREATE OR REPLACE FUNCTION pague_seguro.register_tb_transaction_audit() RETURNS trigger AS$BODY$ BEGIN -- -- Registrar historico caso tenha mudado o status -- IF (TG_OP = 'INSERT') THEN UPDATE pague_seguro.tb_transaction_history set dt_end = now() where cd_transaction = NEW.cd_transaction AND dt_end is null; INSERT INTO pague_seguro.tb_transaction_history (cd_transaction, id_transaction_status, dt_begin) select NEW.cd_transaction, NEW.id_transaction_status, now(); UPDATE pague_seguro.tb_transaction set dt_status_change = now() where cd_transaction = NEW.cd_transaction; END IF; IF (TG_OP = 'UPDATE') THEN IF (NEW.id_transaction_status <> OLD.id_transaction_status) THEN UPDATE pague_seguro.tb_transaction_history set dt_end = now() where cd_transaction = NEW.cd_transaction AND dt_end is null; INSERT INTO pague_seguro.tb_transaction_history (cd_transaction, id_transaction_status, dt_begin) select NEW.cd_transaction, NEW.id_transaction_status, now(); UPDATE pague_seguro.tb_transaction set dt_status_change = now() where cd_transaction = NEW.cd_transaction; END IF; END IF; RETURN NULL; -- o resultado e ignorado uma vez que este e um gatilho AFTER END; $BODY$ LANGUAGE plpgsql VOLATILE COST 100;3. ConclusaoNeste post eu nao entrei em muitos detalhes da API, pois ela esta bem documentada. Minha intencao passar um quadro geral de como pode ser implementada a integracao em seu sistema e dar uma visao do esforco necessario.Tentei passar as informacoes que eu gostaria de ter tido conhecimento antes de ter colocado a mao na massa.Qualquer duvida eu responderei nos comentarios.