Product Docs Help

Get merchant by orgnum

This is the example for getMerchantByOrgnum. The documentation for can be found here

{ "credentials": { "id": "12345", "hash": "f2ceb889f19943787e99b20bff5ada977b6a4c0ba7fe4e37a2f2fed75030ca173ae1e3f2ef0c3206c271b6b46d917efa9d7243b18ae93da45b12dd0edf70f168", "version": "2.5.0", "client": "Pluginname:Qvickly:1.0", "language": "sv", "time": 1714932700.2624588 }, "data": { "orgnum": "5555555555" }, "function": "getMerchantByOrgnum" }
<?php declare(strict_types=1); require '../../../vendor/autoload.php'; use Dotenv\Dotenv; $dotenv = Dotenv::createImmutable(__DIR__ . '/../../..'); $dotenv->load(); use Qvickly\Api\Payment\PaymentAPI; use Qvickly\Api\Payment\DataObjects\Data; $paymentAPI = new PaymentAPI($_ENV['EID'], $_ENV['SECRET']); $data = new Data( [ "orgnum" => "5555555555" ] ); $merchant = $paymentAPI->getMerchantByOrgnum($data); print_r($merchant);

Full example can be found here

This code requires our composer package qvickly/api

composer require qvickly/api
<?php include('../PaymentAPI.php'); $test = true; $debug = false; /* Credentials for Auth */ $id = "12345"; $key = "123451234512"; define("QVICKLY_SERVER", "2.5.0"); // API version define("QVICKLY_CLIENT", "Pluginname:Qvickly:1.0"); define("QVICKLY_LANGUAGE", "sv"); $api = new PaymentAPI($id, $key, $test, $debug); $values = array(); $values = array( "orgnum" => "5555555555" ); echo json_encode($api->getMerchantByOrgnum($values), JSON_PRETTY_PRINT);

Full example can be found here

import { QvicklyPaymentAPI } from "../../PaymentAPI.js"; const paymentAPI = new QvicklyPaymentAPI(process.env.EID, process.env.SECRET); const merchant = await paymentAPI.call("getMerchantByOrgnum", { orgnum: "5555555555", }); console.log(merchant);

Full example can be found here

import {QvicklyPaymentAPI, env} from "../../PaymentAPI.ts"; const paymentAPI = new QvicklyPaymentAPI(env["EID"], env["SECRET"]); const merchant = await paymentAPI.call("getMerchantByOrgnum", { orgnum: "5555555555", }); console.log(merchant);

Full example can be found here

import QvicklyPaymentAPI from "../../PaymentAPI"; const paymentAPI = new QvicklyPaymentAPI(Bun.env.EID, Bun.env.SECRET); const merchant = await paymentAPI.call("getMerchantByOrgnum", { orgnum: "5555555555", }); console.log(merchant);

Full example can be found here

from PaymentAPI import PaymentAPI # Create a PaymentAPI object api = PaymentAPI(eid, secret) merchant = api.call(function="getMerchantByOrgnum", data={"orgnum":"5555555555"}) print(json.dumps(merchant, indent=4))

Full example can be found here

#!/usr/bin/perl use strict; use warnings; use JSON::PP; use Data::Dumper; use lib '../..'; require "PaymentAPI.pl"; require "LoadEnv.pl"; LoadEnv('../../.env'); my $test = 1; my $debug = 0; # Credentials for Auth my $id = $ENV{"EID"}; my $key = $ENV{"SECRET"}; my $api = PaymentAPI->new($id, $key, $test, $debug); my $values = { "orgnum" => "5555555555", }; print(Dumper($api->call("getMerchantByOrgnum", $values))); 1;

Full example can be found here

Response from server

For information about the response from the server, please contact Qvickly Support.

Last modified: 13 September 2024