Skip to content

Instantly share code, notes, and snippets.

View davirossini's full-sized avatar

Davi Reimann Rossini davirossini

View GitHub Profile
@davirossini
davirossini / pagseguro-assinatura.php
Created December 6, 2020 00:23 — forked from guiliredu/pagseguro-assinatura.php
Exemplo de pagamento e assinatura pelo PagSeguro com PHP e CURL
<?php
$url = 'https://ws.pagseguro.uol.com.br/v2/pre-approvals/request';
$data['email'] = '[email protected]';
$data['token'] = 'TOKEN';
$data['currency'] = 'BRL';
$data['reference'] = $id_cliente;
$data['senderName'] = $cliente['nome'];