Wise-php - This library is written to accommodate the wise API's use in php projects With Wise

Overview

Wise php

This library is written to accomodate the wise API's use in php projects With Wise you can automate payments, connect your business tools, and create ways to manage your finances. You can also power your cross-border and domestic payouts. For more info have a look at https://wise.com/ and https://api-docs.wise.com/

Requirements

  • PHP 5.6.0 and later.
  • cURL

Install

To install the package use the composer command

composer require transferwise/wise-php

Sample Code

Initialing Client

"WISE_TOKEN", "profile_id" => "WISE_PROFILE_ID", "env" => "sandbox" // optional ] ); ">
$client = new \TransferWise\Client(
    [
         "token" => "WISE_TOKEN",
         "profile_id" => "WISE_PROFILE_ID",
         "env" => "sandbox" // optional
    ]
);

Creating a recipient account

"John Snow", "currency" => "EUR", "type" => "iban", "details" => [ "legalType" => "PRIVATE", "IBAN" => "GBFSDFS546S5DF46S5" ] ] ); ">
$client->recipient_accounts->create(
    [
        "accountHolderName" => "John Snow",
        "currency" => "EUR",
        "type" => "iban",
            "details" => [
                "legalType" => "PRIVATE",
                "IBAN" => "GBFSDFS546S5DF46S5"
        ]
    ]
);

Validating Iban

$client->validators->iban($iban);

Creating Quote

"EUR", "targetCurrency" => "GBP", "sourceAmount" => "100.00", "targetAmount" => null ] );">
$client->quotes->create(
    [
        "sourceCurrency" => "EUR",
        "targetCurrency" => "GBP",
        "sourceAmount" => "100.00",
        "targetAmount" => null
    ]
);

Creating transfer

"account id", "quoteUuid" => "generated quote id", "customerTransactionId" => "transaction id", "details" => [ "reference" => "Company X", "transferPurpose"=> "verification.transfers.purpose.pay.bills", "sourceOfFunds"=> "verification.source.of.funds.other" ] ] );">
$client->transfers->create(
    [
        "targetAccount" => "account id",
        "quoteUuid" => "generated quote id",
        "customerTransactionId" => "transaction id",
        "details" => [
            "reference" => "Company X",
            "transferPurpose"=> "verification.transfers.purpose.pay.bills",
            "sourceOfFunds"=> "verification.source.of.funds.other"
        ]
    ]
);
You might also like...
An asynchronous ClamAV wrapper written in PHP with amphp/socket

amphp-clamav An asynchronous ClamAV wrapper written with amphp/socket Installing composer require pato05/amphp-clamav Examples Ping and scan of a fil

BeckhoffPLCSoapClient - SoapClient to communicate with BeckHoff PLC. Library made in PHP based on TcAdsWebService JavaScript Library.

BeckhoffPLCSoapClient - SoapClient to communicate with BeckHoff PLC. Library made in PHP based on TcAdsWebService JavaScript Library.

Use Telegram on your cell phone
Use Telegram on your cell phone

Телеграмм для кнопочных телефонов! Веб-шлюз телеграмма. Пощупать в деле: http://tg.naltg.tk пароль: 123 К сайту подключен тестовый аккаунт телеграмма.

Simple papara payment api that you can use without the need for an activation key
Simple papara payment api that you can use without the need for an activation key

PaparaQrApi Papara QR Api Simple papara payment api that you can use without the need for an activation key. Explore the docs » View Demo About The Pr

Use rmccue/requests as a PSR-18 HTTP client

WordPress/Requests PSR-18 Adapter Use WordPress/Requests as a PSR-18 HTTP client adapter. Requires PHP 7.1+ Why? Requests is a HTTP library written in

Lightweight PHP library for WhatsApp API to send the whatsapp messages in PHP provided by ultramsg.com

Ultramsg.com WhatsApp API PHP SDK Lightweight PHP library for WhatsApp API to send the whatsappp messages in PHP provided by Ultramsg.com Installation

A framework agnostic PHP library to build chat bots
A framework agnostic PHP library to build chat bots

BotMan If you want to learn how to create reusable PHP packages yourself, take a look at my upcoming PHP Package Development video course. About BotMa

PHP library for the Stripe API.

Stripe PHP bindings The Stripe PHP library provides convenient access to the Stripe API from applications written in the PHP language. It includes a p

A PHP library for communicating with the Twilio REST API and generating TwiML.

twilio-php The default branch name for this repository has been changed to main as of 07/27/2020. Documentation The documentation for the Twilio API c

Comments
  • php version problem

    php version problem

    I'm trying to install this package with laravel, but I get this error: Package transferwise/wise-php has requirements incompatible with your PHP version, PHP extensions and Composer version: - transferwise/wise-php v0.2 requires ext-json ^1.6 which does not match your installed version 8.1.6.

    What should I do to fix this?

    opened by RitliRoland 1
  • Sandbox endpoint

    Sandbox endpoint

    For use in the test environment, a new optional config variable "env" with "sandbox" as an option. Changes the endpoint to "https://api.sandbox.transferwise.tech".

    opened by tobzey 1
Releases(v0.2.1)
Owner
Albert Xhani
Albert Xhani
A library written in PHP to interact with Coinbase Pro via API.

A library written in PHP to interact with Coinbase Pro via API.

Blake Hamilton 4 Mar 31, 2022
The library provides convenient access to the Epoint.az API from applications written in the PHP language.

Tural/Epoint library/SDK The library provides convenient access to the Epoint.az API from applications written in the PHP language. It includes a pre-

Tural 5 Jan 20, 2022
The library provides convenient access to the Epoint.az API from applications written in the PHP language.

Tural/Epoint library/SDK The library provides convenient access to the Epoint.az API from applications written in the PHP language. It includes a pre-

Tural 5 Jan 20, 2022
SendGrid's PHP HTTP Client for calling APIs

Quickly and easily access any RESTful or RESTful-like API. If you are looking for the SendGrid API client library, please see this repo. Announcements

Twilio SendGrid 119 Nov 25, 2022
OVHcloud APIs lightweight PHP wrapper

Lightweight PHP wrapper for OVHcloud APIs - The easiest way to use OVHcloud APIs in your PHP applications - Compatible with PHP 7.4, 8.0, 8.1 - Not affiliated with OVHcloud

Germain Carré 3 Sep 10, 2022
Laravel Package for 1APP. Learn how to integrate our APIs to build a web or mobile integration to send and accept payments for your application and businesses.

1APP Laravel Library Learn how to integrate our APIs to build a web or mobile integration to accept payments, make payment of Bills and as well custom

O'Bounce Technologies 4 Jul 25, 2022
PHP library to use IOTA REST API to help node management and tangle queries

iota.php About PHP library to use IOTA REST API to help node management and tangle queries. Please be aware that this library is in an early developme

IOTA Community 45 Dec 13, 2022
This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via PHP

This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via PHP

Twilio SendGrid 1.4k Dec 27, 2022
PHP library with ready-to-use Yunbi API implementation.

yunbi-client-php A simple PHP client for Crypto Trade Site Yunbi.com Quick example <?php require_once('lib/yunbi-client.php'); try { $client = new

null 6 Dec 2, 2019
A telegram bot to check credit cards. written in php & py

MRBANKER BOT A telegram bot to check credit cards. written in php & py. You can find me on telegram STEP1: goto botfather create a bot copy the token

Nitin1818 48 Dec 30, 2022