Rest API

Getting Started

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.

                                        
                                            $ npm install escaroo.1.0.1
                                            
                                            $ gem install escaroo -v 1.0.1
                                        
                                    
Download

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Setup and Installation

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

                                                    
                                                        // Private key
                                                        var privateKey = get('BQokikJOvBiI2HlWgH4olfQ2');

                                                        // Create a payment
                                                        var payment = charge({
                                                          key: privateKey,
                                                          amount: 599,
                                                          currency: 'ETH',
                                                          source: 'eth',
                                                          description: 'My first payment'
                                                        });
                                                    
                                                
                                                    
                                                          //  Authorize Payment
                                                          @IBAction func authorizePayment(_ sender: AnyObject) {
                                                            let paymentViewController = paymentViewController(configuration: paymentConfig, delegate: self)
                                                            present(paymentViewController!, animated: true, completion: nil)
                                                          }

                                                          // Cancel Payment
                                                          func paymentDidCancel(_ paymentViewController: PaymentViewController) {
                                                            print("Payment Cancelled")
                                                            resultText = ""
                                                            successView.isHidden = true
                                                            paymentViewController.dismiss(animated: true, completion: nil)
                                                          }
                                                    
                                                
                                                    
                                                          // Private key
                                                          PaymentsApi.PRIVATE_KEY = "BQokikJOvBiI2HlWgH4olfQ2";

                                                          // Create a payment
                                                          Payment payment = Payment.create(new PaymentsMap()
                                                            .set("currency", "ETH")
                                                            .set("token", "f21da65e-f0ab-45cb-b8e6-40b493c3671f")
                                                            .set("amount", 599)
                                                            .set("description", "My first payment")
                                                          );
                                                    
                                                
                                                    
                                                        // Open Payment Screen
                                                        - (IBAction)btnStripeTapped:(id)sender{
                                                            PaymentViewController *paymentViewController = [[PaymentViewController alloc] initWithNibName:nil bundle:nil];
                                                            paymentViewController.amount = [NSDecimalNumber decimalNumberWithString:@"1.50"];
                                                            paymentViewController.delegate = self;

                                                            UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:paymentViewController]; 
                                                            [self presentViewController:navController animated:YES completion:nil];
                                                        }
                                                    
                                                

Plugins

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Wordpress Plugin

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod.

WooCommerce Plugin

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod.

Code Example

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

                                        
                                           //  Authorize Payment
                                           @IBAction func authorizePayment(_ sender: AnyObject) {
                                             let paymentViewController = paymentViewController(configuration: paymentConfig, delegate: self)
                                             present(paymentViewController!, animated: true, completion: nil)
                                           }

                                           // Cancel Payment
                                           func paymentDidCancel(_ paymentViewController: PaymentViewController) {
                                             print("Payment Cancelled")
                                             resultText = ""
                                             successView.isHidden = true
                                             paymentViewController.dismiss(animated: true, completion: nil)
                                           }
                                        
                                    

Important Notice

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.

Remember!

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

What's next

Far far away, behind the word mountains.