Skip to content

Latest commit

 

History

History
45 lines (40 loc) · 1.18 KB

README.md

File metadata and controls

45 lines (40 loc) · 1.18 KB

PayMee Brasil PHP SDK

Installation and Usage

Install composer dependencies

composer require paymeebrasil/paymee-php-sdk

Use the corresponding classes

use PayMee\Enums\CheckoutType;
use PayMee\Helpers\PayMeeCheckout;
use PayMee\Model\Shopper;

Instantiate the Shopper class with custom values

$shopper = new Shopper();
$shopper
        ->withEmail('foo@bar.com')
        ->withPhone('(31)99938-0586')
        ->withFullName('Foo bar')
        ->withCpf('015.680.186-81')
        ->withBranch('XXXX')
        ->withAccount('XXXXXXX-X');

Instantiate the PayMeeCheckout class with config values

$paymeeCheckout = new PayMeeCheckout(X_API_KEY, X_API_TOKEN, IS_SANDBOX);
$response = $paymeeCheckout
            ->withCurrency('BRL')
            ->withAmount(100.00)
            ->withReferenceCode('XXXXXX')
            ->withMaxAge(1880)
            ->withPaymentMethod("BB_TRANSFER")
            ->withCallbackURL('http://foo.callback')
            ->withShopper($shopper)
            ->create(CheckoutType::SEMI_TRANSPARENT, true);

Current version: 0.0.1-snapshot

For more informations, please access: https://www.paymee.com.br