This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var FieldCardNumber = React.createClass({ | |
| render: function() { | |
| return ( | |
| <div className="form-group"> | |
| <label htmlFor="card-number">Card Number</label> | |
| <div id="card-number" className="form-control" /> | |
| </div> | |
| ); | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% for plan in plans_created %} | |
| <li class="list-group-item"> | |
| <div class="row"> | |
| <div class="col-lg-3 col-md-3 text-center"> | |
| </div> | |
| <div class="col-lg-7 col-md-7 section-box"> | |
| <h2>{{ plan.name }}</h2> | |
| <p>{{ plan.description }}</p> | |
| </div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% for plan in plans_created %} | |
| <li class="list-group-item"> | |
| <div class="row"> | |
| <div class="col-lg-3 col-md-3 text-center"> | |
| </div> | |
| <div class="col-lg-7 col-md-7 section-box"> | |
| <h2>{{ plan.name }}</h2> | |
| <p>{{ plan.description }}</p> | |
| </div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| var express = require('express'); | |
| var router = express.Router(); | |
| var paypal = require('paypal-rest-sdk'); | |
| paypal.configure({ | |
| 'host': 'api.sandbox.paypal.com', | |
| 'client_id': 'AVweyxD7IVfkvMjVS5E0RKTgQCUX7vEWgcfMqbkuKxJdsmMa5_SqpGXlZswl', | |
| 'client_secret': 'ED8MlRD5nfwljvkobSt61E7MoIspiU1y5JWNdvK3gbPKwOqRt0X6bRNCBYyX' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Day 1 | |
| Julian Cheal | |
| Dancing with Robots | |
| ? | |
| Tero Parviainen | |
| Build Your Own AngularJS | |
| ? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| String correlationId = PayPalConfiguration.getApplicationCorrelationId(this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Override | |
| protected void onActivityResult(int requestCode, int resultCode, Intent data) { | |
| if (requestCode == REQUEST_CODE_FUTURE_PAYMENT) { | |
| if (resultCode == Activity.RESULT_OK) { | |
| PayPalAuthorization auth = data | |
| .getParcelableExtra(PayPalFuturePaymentActivity.EXTRA_RESULT_AUTHORIZATION); | |
| if (auth != null) { | |
| String authorization_code = auth.getAuthorizationCode(); | |
| // send authorization code to server to receive the access & refresh code | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Intent intent = new Intent(MyActivity.this, PayPalFuturePaymentActivity.class); | |
| startActivityForResult(intent, REQUEST_CODE_FUTURE_PAYMENT); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static PayPalConfiguration config = new PayPalConfiguration() | |
| .environment(CONFIG_ENVIRONMENT) | |
| .clientId(CONFIG_CLIENT_ID) | |
| // The following are only used in PayPalFuturePaymentActivity. | |
| .merchantName("Innovative cab app") | |
| .merchantPrivacyPolicyUri(Uri.parse("https://www.example.com/privacy")) | |
| .merchantUserAgreementUri(Uri.parse("https://www.example.com/legal")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| var request = require('request'); | |
| var querystring = require('querystring'); | |
| /* | |
| * CLIENT DETAILS | |
| */ | |
| var CLIENT_ID = "CLIENT_ID_HERE"; |