Crediflow search party
This is the example for crediflowSearchParty. The documentation for can be found here
{
"credentials": {
"id": "12345",
"hash": "37f6956dc2b9182128cd9458992de0382de833bcafb16e8bb2912b33a4e1693d6708bad2513c5f1697738eba9ec26f390f06531784b98593d9735c187b7c020e",
"version": "2.5.0",
"client": "Pluginname:Qvickly:1.0",
"language": "sv",
"time": 1714941716.363403
},
"data": {
"orgnum": "5566779988"
},
"function": "crediflowSearchParty"
}
<?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" => "5501011018",
]
);
$parties = $paymentAPI->crediflowSearchParty($data);
print_r($parties);
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();
echo json_encode($api->crediflowSearchParty($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 parties = await paymentAPI.call("crediflowSearchParty", {
orgnum: "5566779988",
});
console.log(parties);
Full example can be found here
import {QvicklyPaymentAPI, env} from "../../PaymentAPI.ts";
const paymentAPI = new QvicklyPaymentAPI(env["EID"], env["SECRET"]);
const parties = await paymentAPI.call("crediflowSearchParty", {
orgnum: "5566779988",
});
console.log(parties);
Full example can be found here
import QvicklyPaymentAPI from "../../PaymentAPI";
const paymentAPI = new QvicklyPaymentAPI(Bun.env.EID, Bun.env.SECRET);
const parties = await paymentAPI.call("crediflowSearchParty", {
orgnum: "5566779988",
});
console.log(parties);
Full example can be found here
from PaymentAPI import PaymentAPI
# Create a PaymentAPI object
api = PaymentAPI(eid, secret)
parties = api.call(function="crediflowSearchParty", data={"orgnum":"5566779988"})
print(json.dumps(parties, 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" => "5566779988",
};
print(Dumper($api->call("crediflowSearchParty", $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