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

pinter

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pinter

  • 0.2.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Pinter

The Ruby PintPay API Gem. PintPay helps collect payments for your app. Now with a Ruby wrapper.

Install

gem install pinter

Usage

Get your API key and API secret from your API page.

Pinter.api_key = "25fdbd9bs0f3sa00f0ecg3e20bja1fag"
Pinter.api_secret = "93a76x73afhe4hgbeqd2720e7eetfu19"
Pinter.subdomain = "your-subdomain"

List all subscriptions

Returns an array of your subscriptions.

Pinter::Subscription.all

Find specific subscription

Returns the hash of one subscription. Use the subscription's "secret" attribute to find it.

Pinter::Subscription.find "23862dc3979f365d"

You can also find the subscription by your custom identifier.

Pinter::Subscription.find_by_identifier "231"

See your page's URL

Returns the URL to your PintPay page.

Pinter.url

You can also supply the parameters, like the user's email and identifier.

Pinter.url :email => "user@domain.com", :identifier => "1"

Todo

  • Tests.
  • Throw an exception when you forget to set your API key and secret.
  • Refactor the Pinter::Subscription default_params.
  • More tests.
  • Support PintPay's webhooks.

Copyright (c) 2011 Nathan Borgo. See License for details.

FAQs

Package last updated on 27 May 2011

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