Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/globee-official/payment-api-php
- Owner: GloBee-Official
- License: other
- Created: 2018-03-19T12:10:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-09T13:09:40.000Z (over 3 years ago)
- Last Synced: 2024-10-14T04:21:06.153Z (about 1 month ago)
- Topics: bitcoin, cryptocurrency, globee, monero, payment-gateway, sdk
- Language: PHP
- Homepage: https://globee.com
- Size: 113 KB
- Stars: 5
- Watchers: 6
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: COPYING
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