Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

com.velopayments:java-spring-resttemplate

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.velopayments:java-spring-resttemplate

Velo Payments Open API Java Spring RestTemplate Client

  • 2.32.2
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

CircleCI

The source code in this repository is generated from Velo's OpenAPI specification.

Requirements

  • Java 1.8 or higher
  • Maven 3.6 or higher

Usage

Spring Boot Properties

To utilize the SDK, you will need to set a variety of properties. Spring Boot provides a number of mechanisms for this. See the Spring Boot documentation for the available options.

Note: If using environment variables to set properties PROPERTY_NAME will map to property.name

SDK Properties

Velo API Properties

The following properties must be supplied for the SDK to function properly.

PropertyDescription
velo.api.apikeyYour API Key.
velo.api.apisecretYour API Secret.
velo.api.payoridYour Payor ID. String value, UUID.
velo.base.urlBase URL to connect to. Velo Payments Sanbdbox URL is https://api.sandbox.velopayments.com/

Apache HTTP Client Configuration Properties

Note: These properties are defaulted in the Velo SDK. Override if necessary.

PropertyDescription
velo.api.maxtotalconnectionsMaximum total connections.
velo.api.defaultmaxperrouteDefault maximum connections per route.
velo.api.connectionrequesttimeoutTimeout for establishing a connection.
velo.api.sockettimeoutTimeout for waiting to receive data (after a connection is established.

Example SDK Use

In this example, we will use the Velo SDK to obtain payouts for a payor.

Example Spring Bean using SDK

@Component
public class GetPayoutBean  {

    @Autowired
    GetPayoutApi getPayoutApi;

    @Autowired
    VeloAPIProperties veloAPIProperties;

    public GetPayoutsResponseV3 getPayoutsForPayor() {

        GetPayoutsResponseV3 getPayoutsResponseV3 = paymentAuditServiceApi.getPayoutsForPayor(veloAPIProperties.getPayorIdUuid(),
                null, null, null, null, null, null, null);

        return getPayoutsResponseV3;
    }
}

In the above example, two components are injected.

The VeloAPIProperties component is configured with your API properties.

The component GetPayoutApi is the API client for the Payout API operations. In the example, the method getPayoutsForPayor is called using the payor Id obtained from the VeloAPIProperties component.

FAQs

Package last updated on 11 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc