Skip to content

Commit

Permalink
Merge pull request #2 from danirock99/master
Browse files Browse the repository at this point in the history
Updated in order to be used with NS7
  • Loading branch information
nericode authored Dec 3, 2020
2 parents 6771f8f + f3b213e commit 7b04974
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/paypal-checkout.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import * as app from "tns-core-modules/application";
declare const com: any;

export class PaypalCheckout extends Common {

constructor(){
super();
}
paypalRequest(options: PaypalOptions): Promise<any> {
return new Promise(function (resolve, reject) {
let braintree = null;
Expand Down
6 changes: 5 additions & 1 deletion src/paypal-checkout.common.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import { Observable } from 'tns-core-modules/data/observable';

export class Common extends Observable { }
export class Common extends Observable {
constructor(){
super();
}
}
4 changes: 3 additions & 1 deletion src/paypal-checkout.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { Common } from './paypal-checkout.common';
declare const BTAPIClient: any, BTPayPalDriver: any, BTPayPalRequest: any;

export class PaypalCheckout extends Common {

constructor(){
super();
}
paypalRequest(options: PaypalOptions): Promise<any> {
return new Promise(function (resolve, reject) {
var context = this;
Expand Down
2 changes: 1 addition & 1 deletion src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es5",
"target": "es6",
"module": "commonjs",
"declaration": true,
"removeComments": true,
Expand Down

0 comments on commit 7b04974

Please sign in to comment.