@angular_faruk/paypal
Advanced tools
Comparing version
@@ -0,18 +1,35 @@ | ||
import { OnInit } from '@angular/core'; | ||
import { PaypalService } from './paypal.service'; | ||
import { Orderinterface } from '../lib/interface'; | ||
import * as i0 from "@angular/core"; | ||
export declare class PaypalComponent { | ||
export declare class PaypalComponent implements OnInit { | ||
private PaypalService; | ||
token: any; | ||
capturedetails: any; | ||
refund: any; | ||
order: any; | ||
orderss: any; | ||
refund_details: any; | ||
captured_payment_details: any; | ||
_id: any; | ||
authorization_id: any; | ||
Authorizes_payment: any; | ||
reauthorize_payment: any; | ||
authorized_capture: any; | ||
ApiUrl: any; | ||
constructor(PaypalService: PaypalService); | ||
ngOnInit(): void; | ||
Access_token(ClientID: string, Secret_id: string): Promise<any>; | ||
create_order(OrderformData: Orderinterface): Promise<any>; | ||
create_order(OrderformData: Orderinterface, intent: string): Promise<any>; | ||
capturePayment(order_id: string): Promise<any>; | ||
Authorize_payment(order_id: string): Promise<any>; | ||
Show_details_authorized_payments(authorization_id: string): Promise<any>; | ||
Reauthorize_authorized_payment(authorization_id: string): Promise<any>; | ||
Capture_authorized_payment(authorization_id: string): Promise<any>; | ||
Show_captured_payment_details(capture_id: string): Promise<any>; | ||
Refund_captured_payment(capture_id: string): Promise<any>; | ||
Show_refund_details(refund_id: string): Promise<any>; | ||
order_details(order_id: string): Promise<any>; | ||
capturePayment(order_id: string): Promise<any>; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<PaypalComponent, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<PaypalComponent, "app-paypal", never, {}, {}, never, never, false, never>; | ||
} |
@@ -25,4 +25,11 @@ import { HttpClient, HttpParams } from '@angular/common/http'; | ||
getAccessToken_order_details(): string | null; | ||
set_order_id(capture: string): void; | ||
get_order_id(): string | null; | ||
setintent_CAPTURE(intent: string): void; | ||
getintent__CAPTURE(): string | null; | ||
setintent_AUTHORIZE(intent: string): void; | ||
getintent__AUTHORIZE(): string | null; | ||
set_authorization_id(intent: string): void; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<PaypalService, never>; | ||
static ɵprov: i0.ɵɵInjectableDeclaration<PaypalService>; | ||
} |
{ | ||
"name": "@angular_faruk/paypal", | ||
"version": "1.2.2", | ||
"version": "2.0.0", | ||
"description": "this is new package with api ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -36,3 +36,3 @@ # Paypal | ||
import { IS_TESTING_MODE } from '@angular_faruk/paypal'; | ||
import { PaypalComponent } from '@angular_faruk/paypal'; | ||
@NgModule({ | ||
@@ -46,5 +46,5 @@ declarations: [ | ||
bootstrap: [AppComponent], | ||
providers: [ | ||
{ provide: IS_TESTING_MODE, useValue: true } | ||
] | ||
providers: [PaypalComponent, | ||
{ provide: IS_TESTING_MODE, useValue: true } | ||
] | ||
}) | ||
@@ -112,2 +112,3 @@ export class AppModule {} | ||
} | ||
const intent = 'CAPTURE'; // This can be 'CAPTURE' or any other value you want | ||
@@ -136,2 +137,3 @@ | ||
} | ||
const intent = 'CAPTURE'; // This can be 'CAPTURE' or any other value you want | ||
@@ -138,0 +140,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
187375
91.99%1613
93.17%184
1.1%