Skip to content

financialplugins/omnipay-solana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Omnipay: Solana gateway

Solscan.io driver for the Omnipay PHP payment processing library.

Installation

composer require financialplugins/omnipay-solana

Usage

Initialize

This step is required before using other methods.

$gateway = Omnipay::create('Solana');
   
$gateway->initialize();

Fetch Address Balance

Fetch address balance in lamports.

$response = $gateway->fetchBalance(['address' => '8Jd4NUfJJB4bXYEx36ZrEF7hxKqYyxh1cBkrspAJxDAw'])->send();

if ($response->isSuccessful()) {
    $data = $response->getData();
} else {
    $errorMessage = $response->getMessage();
}

Fetch Transaction

$response = $gateway->fetchTransaction(['transactionReference' => '5vF7STm7q1v84THiJhL6BdvvYs9u2YvjwX5MjSmqJVdmu4x5SKsrc1QXveZREA7TaCnvrU96Ndc9Uxn3rVwwoemD'])->send();

if ($response->isSuccessful()) {
    $data = $response->getData();
} else {
    $errorMessage = $response->getMessage();
}

Support

If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag so it can be easily found.

If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a mailing list which you can subscribe to.

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages