| Type | Name and description |
|---|---|
grails.core.GrailsApplication |
grailsApplication |
| Type | Name and description |
|---|---|
java.util.Map |
createCustomer(java.lang.Object params)Create a customer |
java.util.Map |
createPlan(java.lang.Object params)Create plan @return |
java.util.Map |
createSubscription(java.lang.Object params)Create a payment subscription |
java.util.Map |
disableSubscription(java.lang.Object params)Disable subscription using code and token |
java.util.Map |
enableSubscription(java.lang.Object params)Enable a user subscription using code and token |
java.util.Map |
exportTransaction(java.lang.Object params)Export transaction |
java.util.Map |
fetchCustomer(java.lang.Object customerId)Return a single customer given its id |
java.util.Map |
fetchPlan(java.lang.Object planId)Get a particular plan given the plan id |
java.util.Map |
fetchTransaction(int id)Fetch a particular transaction |
java.lang.String |
generateTrxnRef()Generate a Unique Transaction reference this is used to verify the transaction @return |
java.util.Map |
getAllCustomers()List all customers on your Paystack account @return |
java.util.Map |
getAllPlans()Return all plans on your paystack account @return |
java.util.Map |
getAllTransactions()Return all transactions on you paystack account @return |
java.lang.Object |
getAuthUrl(java.lang.Object params)Get authorization url from paystack The authorization url is to redirect to paystack for payment
|
java.lang.String |
getEndPoint()get PAYSTACK endpoint |
org.apache.http.client.methods.HttpGet |
getHttpGet(java.lang.String url) |
org.apache.http.client.methods.HttpPost |
getHttpPost(java.lang.String url) |
groovy.json.JsonBuilder |
getJsonBuilder(java.util.Map data) |
groovy.json.JsonSlurper |
getJsonSlurper() |
java.util.Map |
getPaymentData(java.lang.Object params)Get the payment data from paystack after verification |
java.lang.String |
getPublicKey()get the public key for the API Request When app in dev, use the testPublicKey else use the livePublicKey |
java.util.Map |
getRequest(java.lang.String url, java.lang.String authString)Make A get request to the specified resource(url) |
java.lang.String |
getSecretKey()get the secret used for API Request When app in dev, use the testSecretKey else use the liveSecretKey |
org.apache.http.entity.StringEntity |
getStringEntity(java.lang.Object postParams, java.lang.Object contentType) |
java.util.Map |
listTransactions()List All Transactions @return |
java.lang.Object |
makePaymentRequest(java.lang.Object params)Make Request to paystack This returns the authorization url |
java.util.Map |
postRequest(java.lang.String url, java.util.Map data, java.lang.String authString)Make a post request the the specified resource(url) |
java.lang.Object |
validate(java.util.Map params)Validate params being sent to paystack |
java.util.Map |
verify(java.lang.String reference)Verify a transaction |
boolean |
verifyPlanInterval(java.lang.String interval)Verify the plan interval for plan creation |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a customer
Create plan
Create a payment subscription
Disable subscription using code and token
Enable a user subscription using code and token
Export transaction
Return a single customer given its id
Get a particular plan given the plan id
Fetch a particular transaction
id - : identifier of transaction to fetchGenerate a Unique Transaction reference this is used to verify the transaction
List all customers on your Paystack account
Return all plans on your paystack account
Return all transactions on you paystack account
Get authorization url from paystack The authorization url is to redirect to paystack for payment
get PAYSTACK endpoint
Get the payment data from paystack after verification
get the public key for the API Request When app in dev, use the testPublicKey else use the livePublicKey
Make A get request to the specified resource(url)
get the secret used for API Request When app in dev, use the testSecretKey else use the liveSecretKey
List All Transactions
Make Request to paystack This returns the authorization url
params - : THis contains info to be sent PAYSTACK(email,amount,...)Make a post request the the specified resource(url)
Validate params being sent to paystack
Verify a transaction
reference - : transaction referenceVerify the plan interval for plan creation