pinxs v3.0.0 PINXS.Client View Source

Used for building a Tesla client for use with the Pin Payments API

Link to this section Summary

Functions

Default adapter to be used for making requests.

Default URL for communicating with Pin Payments

Create a new Tesla.Client

Test URL for communicating with Pin Payments

Link to this section Functions

Default adapter to be used for making requests.

Default URL for communicating with Pin Payments

Create a new Tesla.Client

Parameters

Create a new Tesla.Client

Parameters

  • secrets is %PINXS{} struct
  • url allows you to override the URL where requests will be sent. Useful for testing
Link to this function

new(secrets, url, adapter)

View Source

Create a new Tesla.Client

Parameters

  • secrets is %PINXS{} struct
  • url allows you to override the URL where requests will be sent. Useful for testing
  • adapter Allows you to use a different Tesla.Adapter to the default which is Tesla.Adapter.Gun

Test URL for communicating with Pin Payments