Get Payment Methods
curl --request GET \
--url http://staging.qshop.ng/apiv2/shops/{shopId}/paymentmethodsimport requests
url = "http://staging.qshop.ng/apiv2/shops/{shopId}/paymentmethods"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://staging.qshop.ng/apiv2/shops/{shopId}/paymentmethods', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://staging.qshop.ng/apiv2/shops/{shopId}/paymentmethods",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://staging.qshop.ng/apiv2/shops/{shopId}/paymentmethods"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://staging.qshop.ng/apiv2/shops/{shopId}/paymentmethods")
.asString();require 'uri'
require 'net/http'
url = URI("http://staging.qshop.ng/apiv2/shops/{shopId}/paymentmethods")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"msg": "<string>",
"data": [
{
"isStandAlone": true,
"_id": "<string>",
"key": "<string>",
"canUseCustomKeys": true,
"disabled": true,
"imageId": "<string>",
"imageUrl": "<string>",
"meta": {
"requiresBankAccount": true,
"supportsRecurringPayment": true,
"platformType": "<string>",
"subscription": {
"priority": 123,
"supportedCurrencies": [
"<string>"
],
"supportsRecurringPayments": true
},
"schema": [
{
"type": "<string>",
"key": "<string>",
"authType": "<string>",
"credentials": [
{
"key": "<string>",
"label": "<string>",
"type": "<string>",
"required": true,
"readonly": true,
"length": null,
"validation": "<string>"
}
]
}
],
"custom": {
"setup": [
{
"title": "<string>",
"description": "<string>"
}
]
}
},
"name": "<string>",
"plans": [
"<string>"
],
"requiresKYC": true,
"standAlone": true,
"summary": [
{
"_id": "<string>",
"title": "<string>",
"description": "<string>"
}
],
"supportedCountries": [
{
"_id": "<string>",
"name": "<string>",
"dialCode": "<string>",
"code": "<string>",
"__v": 123,
"geoId": "<string>",
"hasPostCode": true,
"postalCodeFormat": "<string>",
"currencyCode": "<string>",
"east": 123,
"north": 123,
"south": 123,
"west": 123
}
],
"supportedCurrencies": [
{
"_id": "<string>",
"code": "<string>",
"symbol": "<string>",
"nationality": "<string>",
"exchangeRate": 123,
"__v": 123,
"country": "<string>",
"name": "<string>",
"minimumProcessingAmount": 123
}
],
"type": "<string>",
"__v": 123,
"description": "<string>",
"miniImageId": "<string>",
"miniImageUrl": "<string>",
"webhookKey": "<string>",
"image": "<string>"
}
],
"success": true
}Payment Methods
Get Payment Methods
Host: http://qshop.ng
GET
/
shops
/
{shopId}
/
paymentmethods
Get Payment Methods
curl --request GET \
--url http://staging.qshop.ng/apiv2/shops/{shopId}/paymentmethodsimport requests
url = "http://staging.qshop.ng/apiv2/shops/{shopId}/paymentmethods"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://staging.qshop.ng/apiv2/shops/{shopId}/paymentmethods', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://staging.qshop.ng/apiv2/shops/{shopId}/paymentmethods",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://staging.qshop.ng/apiv2/shops/{shopId}/paymentmethods"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://staging.qshop.ng/apiv2/shops/{shopId}/paymentmethods")
.asString();require 'uri'
require 'net/http'
url = URI("http://staging.qshop.ng/apiv2/shops/{shopId}/paymentmethods")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"msg": "<string>",
"data": [
{
"isStandAlone": true,
"_id": "<string>",
"key": "<string>",
"canUseCustomKeys": true,
"disabled": true,
"imageId": "<string>",
"imageUrl": "<string>",
"meta": {
"requiresBankAccount": true,
"supportsRecurringPayment": true,
"platformType": "<string>",
"subscription": {
"priority": 123,
"supportedCurrencies": [
"<string>"
],
"supportsRecurringPayments": true
},
"schema": [
{
"type": "<string>",
"key": "<string>",
"authType": "<string>",
"credentials": [
{
"key": "<string>",
"label": "<string>",
"type": "<string>",
"required": true,
"readonly": true,
"length": null,
"validation": "<string>"
}
]
}
],
"custom": {
"setup": [
{
"title": "<string>",
"description": "<string>"
}
]
}
},
"name": "<string>",
"plans": [
"<string>"
],
"requiresKYC": true,
"standAlone": true,
"summary": [
{
"_id": "<string>",
"title": "<string>",
"description": "<string>"
}
],
"supportedCountries": [
{
"_id": "<string>",
"name": "<string>",
"dialCode": "<string>",
"code": "<string>",
"__v": 123,
"geoId": "<string>",
"hasPostCode": true,
"postalCodeFormat": "<string>",
"currencyCode": "<string>",
"east": 123,
"north": 123,
"south": 123,
"west": 123
}
],
"supportedCurrencies": [
{
"_id": "<string>",
"code": "<string>",
"symbol": "<string>",
"nationality": "<string>",
"exchangeRate": 123,
"__v": 123,
"country": "<string>",
"name": "<string>",
"minimumProcessingAmount": 123
}
],
"type": "<string>",
"__v": 123,
"description": "<string>",
"miniImageId": "<string>",
"miniImageUrl": "<string>",
"webhookKey": "<string>",
"image": "<string>"
}
],
"success": true
}Was this page helpful?
⌘I