Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/globee-official/payment-api-php

SDK for the GloBee Payment API
https://github.com/globee-official/payment-api-php

bitcoin cryptocurrency globee monero payment-gateway sdk

Last synced: about 1 month ago
JSON representation

SDK for the GloBee Payment API

Awesome Lists containing this project

README

        

# GloBee Payment API
[![Build Status](https://travis-ci.org/GloBee-Official/payment-api-php.svg?branch=master)](https://travis-ci.org/GloBee-Official/payment-api-php)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/GloBee-Official/payment-api-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/GloBee-Official/payment-api-php/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/GloBee-Official/payment-api-php/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/GloBee-Official/payment-api-php/?branch=master)
[![Latest Stable Version](https://img.shields.io/packagist/v/globee/payment-api.svg)](https://packagist.org/packages/globee/payment-api)

This is a library to integrate your system with the GloBee Payment API
to manage and accept crypto payments through our system.

####Note:
If using PHP 7.0 or below, use version 0.4.0 or lower.

## Installation with Composer
Run the following command in your project to add this package:
```bash
composer require globee/payment-api
```

## Authenticate with GloBee
To receive a valid X-AUTH-ID, complete the following steps:
1) Sign into GloBee, and navigate to the Payment API section on the backend panel.
2) Copy the "Payment API Key" and store it somewhere in your code.

## Usage Example
To create an invoice on GloBee and receive a redirect to a payment interstitial, you can copy and modify the below code.
### Create new Payment Request
```php
createPaymentRequest($paymentRequest);

$paymentRequestId = $response->id; // Save this ID to know when payment has been made
$redirectUrl = $response->redirectUrl; // Redirect your client to this URL to make payment
```

### Fetch existing Payment Request
```php
getPaymentRequest($paymentRequestId);
```

### Convert response from IPN into a PaymentRequest object
```php