Flutterwave's Rave payment gateway PHP SDK
author |
Olufemi Olanipekun iolufemi@ymail.com |
---|---|
version | 1.0 |
package |
Default |
__construct(string $publicKey, string $secretKey, string $prefix, string $env = 'staging', boolean $overrideRefWithPrefix = false) : object
string
Your Rave publicKey. Sign up on https://rave.flutterwave.com to get one from your settings page
string
Your Rave secretKey. Sign up on https://rave.flutterwave.com to get one from your settings page
string
This is added to the front of your transaction reference numbers
string
This can either be 'staging' or 'live'
boolean
Set this parameter to true to use your prefix as the transaction reference
object
createCheckSum() : object
object
createReferenceNumber() : object
object
eventHandler(object $handler) : object
object
This is a class that implements the Event Handler Interface
object
getAmount() : string
string
getCountry() : string
string
getCurrency() : string
string
getDescription() : string
string
getEmail() : string
string
getFirstname() : string
string
getLastname() : string
string
getLogo() : string
string
getMetaData() : string
string
getPayButtonText() : string
string
getPaymentMethod() : string
string
getPhoneNumber() : string
string
getRedirectUrl() : string
string
getReferenceNumber() : string
string
getTitle() : string
string
initialize() : string
string
paymentCanceled(string $referenceNumber) : object
string
This should be the reference number of the transaction that was canceled
object
requeryTransaction(string $referenceNumber) : object
string
This should be the reference number of the transaction you want to requery
object
setAmount(integer $amount) : object
integer
Transaction amount
object
setCountry(string $country) : object
string
The transaction country. Can be NG, US, KE, GH and ZA
object
setCurrency(string $currency) : object
string
The transaction currency. Can be NGN, GHS, KES, ZAR, USD, EUR and GBP
object
setDescription(string $customDescription) : object
string
The description of the transaction
object
setEmail(string $customerEmail) : object
string
This is the paying customer's email
object
setFirstname(string $customerFirstname) : object
string
This is the paying customer's firstname
object
setLastname(string $customerLastname) : object
string
This is the paying customer's lastname
object
setLogo(string $customLogo) : object
string
Your Logo
object
setMetaData(array $meta) : object
array
This are the other information you will like to store with the transaction. It is a key => value array. eg. PNR for airlines, product colour or attributes. Example. array('name' => 'femi')
object
setPayButtonText(string $payButtonText) : object
string
This is the text that should appear on the payment button on the Rave payment gateway.
object
setPaymentMethod(string $paymentMethod) : object
string
The allowed payment methods. Can be card, account or both
object
setPhoneNumber(string $customerPhone) : object
string
This is the paying customer's phonenumber
object
setRedirectUrl(string $redirectUrl) : object
string
This is where the Rave payment gateway will redirect to after completing a payment
object
setTitle(string $customTitle) : object
string
A title for the payment. It can be the product name, your business name or anything short and descriptive
object
publicKey :
secretKey :
amount :
paymentMethod :
customDescription :
customLogo :
customTitle :
country :
currency :
customerEmail :
customerFirstname :
customerLastname :
customerPhone :
txref :
integrityHash :
payButtonText :
redirectUrl :
env :
transactionPrefix :
logger :
handler :
stagingUrl :
liveUrl :
baseUrl :
transactionData :
overrideTransactionReference :
requeryCount :