GithubHelp home page GithubHelp logo

brainblocks / brainblocks-ios-sdk Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 4.0 629 KB

iOS SDK for integrating BrainBlocks into a mobile app

License: Other

Ruby 8.96% Objective-C 1.36% Swift 89.68%

brainblocks-ios-sdk's Introduction

logo

<div id="nano-button"></div>

<script src="https://brainblocks.io/brainblocks.js"></script>

<script>
    // Render the Nano button

    brainblocks.Button.render({

        // Pass in payment options

        payment: {
            destination: 'nano_164xaa1ojy6qmq9e8t94mz8izr4mkf1sojb6xrmstru5jsif48g5kegcqg7y',
            currency:    'rai',
            amount:      1000
        },

        // Handle successful payments

        onPayment: function(data) {
            console.log('Payment successful!', data.token);
        }

    }, '#nano-button');
</script>
> curl https://brainblocks.io/api/session/<token>/verify

{
    "token": "ZXlKaGJHY...",
    "destination": "nano_164xa...",
    "currency": "rai",
    "amount": "1000",
    "amount_rai": 1000,
    "received_rai": 1000,
    "fulfilled": true,
    "send_block": "0B36663...",
    "sender": "nano_1jnat..."
}

Installation

Node module

# npm
npm install --save brainblocks

# yarn
yarn add brainblocks
import * as brainblocks from 'brainblocks'

Browser

<!-- From Brainblocks -->
<script src="https://brainblocks.io/brainblocks.js"></script>

<!-- From CDN -->
<script src="https://unpkg.com/brainblocks"></script>

<!-- Local file -->
<script src="brainblocks/dist/brainblocks.js"></script>

brainblocks-ios-sdk's People

Contributors

schenkty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

brainblocks-ios-sdk's Issues

Cannot find compatible versions?

Getting this error when I try pod install

CocoaPods could not find compatible versions for pod "BrainBlocksKit":
  In Podfile:
    BrainBlocksKit

Here's my pod file

# platform :ios, '11.0'

target 'nano' do
  
  # Pods for nano

  pod 'BrainBlocksKit'

  end

Tap on address to copy

I think a useful feature to add would be the ability to copy the address by simply tapping on it. This would allow for easier payments once we get a raiblocks app or if the user wants to send the address to another person/device. Some sort of icon to make it obvious that you can do this (along with some feedback to say that it has been copied to the clipboard) would be useful as well!

Unsupported Swift Version

Hi @schenkty. Apologies first off as my working knowledge of CocoaPods is very basic so probably something simple I'm doing wrong here.

Working on React Native library and when I do a pod install and open up the .xcworkspace in XCode9 I am presented with this error. Do you have any advice on the best way to resolve?

screen shot 2018-01-28 at 12 02 26 pm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.