New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@angular_faruk/paypal

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular_faruk/paypal - npm Package Compare versions

Comparing version

to
3.9.9

2

package.json
{
"name": "@angular_faruk/paypal",
"version": "2.9.9",
"version": "3.9.9",
"description": "this is new package with api ",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -47,2 +47,8 @@ # Paypal

{ provide: IS_TESTING_MODE, useValue: true }
<!--useValue: true FOR testing -->
<!--useValue: false FOR live -->
]

@@ -69,14 +75,9 @@ })

})
export class LandingPageCoffeeComponent {
export class LandingPageCoffeeComponent {
constructor( private PaypalComponent:PaypalComponent ,
private paypalService: PaypalService,@Inject(IS_TESTING_MODE)
private isTestingMode: boolean ) {}
constructor( private PaypalComponent:PaypalComponent , private paypalService: PaypalService,@Inject(IS_TESTING_MODE) private isTestingMode: boolean ) {
}
}

@@ -97,3 +98,4 @@

console.error('Error:', error);
// You can display a notification to the user or perform any other error handling logic here
// You can display a notification to the
// user or perform any other error handling logic here
});

@@ -103,3 +105,3 @@

// START**************************create_order payload for single items
// START*********create_order payload for single items

@@ -115,10 +117,25 @@ let OrderformData:any= {

}
// =============================== CAPTURE==================================
let intent: string = 'CAPTURE';// The merchant intends to capture payment immediately after the customer makes a payment.
//=================================CAPTURE =====================================
// =============================== CAPTURE==================
let intent: string = 'CAPTURE';// The merchant intends to
// capture payment immediately after
// the customer makes a payment.
//========================CAPTURE ==========
// ===================================== AUTHORIZE BOX READ =============
// ============ AUTHORIZE BOX READ ==
let intent: string = 'AUTHORIZE';
// The merchant intends to authorize a payment and place funds on hold after the customer makes a payment. Authorized payments are best captured within three days of authorization but are available to capture for up to 29 days. After the three-day honor period, the original authorized payment expires and you must re-authorize the payment. You must make a separate request to capture payments on demand. This intent is not supported when you have more than one purchase_unit within your order.
// ===================================== AUTHORIZE BOX READ =============
// The merchant intends to authorize a
// payment and place funds on hold after
// the customer makes a payment.
// Authorized payments are best captured
// within three days of authorization but are
// available to capture for up to 29 days.
// After the three-day honor period,
// the original authorized payment expires and
// you must re-authorize the payment.
// You must make a separate request
// to capture payments on demand.
// This intent is not supported
// when you have more than
// one purchase_unit within your order.
// ======================== AUTHORIZE BOX READ =============

@@ -132,3 +149,3 @@ // End**************************

// START #################################create_order payload for multiple items
// START ######create_order payload for multiple items

@@ -154,3 +171,4 @@ let OrderformData:any= {

// =============================== CAPTURE==================================
let intent: string = 'CAPTURE'; // The merchant intends to capture payment immediately after the customer makes a payment.
let intent: string = 'CAPTURE'; // The merchant intends to capture payment
// immediately after the customer makes a payment.
//=================================CAPTURE =====================================

@@ -161,3 +179,11 @@

// The merchant intends to authorize a payment
// and place funds on hold after the customer makes a payment. Authorized payments are best captured within three days of authorization but are available to capture for up to 29 days. After the three-day honor period, the original authorized payment expires and you must re-authorize the payment. You must make a separate request to capture payments on demand. This intent is not supported when you have more than one purchase_unit within your order.
// and place funds on hold after the customer makes a payment. Authorized
// payments are best captured within three days of authorization
// but are available to capture for up to 29 days.
// After the three-day honor period,
// the original authorized payment expires and
// you must re-authorize the payment.
// You must make a separate request to capture payments on demand.
// This intent is not supported when
// you have more than one purchase_unit within your order.
// ===================================== AUTHORIZE BOX READ =============

@@ -174,7 +200,9 @@

// this.order = response.orderss.id
// localStorage.setItem("order", this.order) You can use localStorage
// localStorage.setItem("order", this.order)
// You can use localStorage
// Handle successful response here
}).catch((error) => {
// You can display a notification to the user or perform any other error handling logic here
// You can display a notification to the
// user or perform any other error handling logic here
});

@@ -191,3 +219,4 @@

}).catch((error) => {
// You can display a notification to the user or perform any other error handling logic here
// You can display a notification
// to the user or perform any other error handling logic here
});

@@ -203,3 +232,4 @@ // END======================

}).catch((error) => {
// You can display a notification to the user or perform any other error handling logic here
// You can display a notification to the user or
// perform any other error handling logic here
});

@@ -214,3 +244,4 @@ // END======================

}).catch((error) => {
// You can display a notification to the user or perform any other error handling logic here
// You can display a notification to the
// user or perform any other error handling logic here
});

@@ -238,3 +269,5 @@

// Voids, or cancels, an authorized payment, by ID. You cannot void an authorized payment that has been fully captured.
// Voids, or cancels, an authorized payment, by ID.
// You cannot void an authorized payment
// that has been fully captured.

@@ -244,3 +277,4 @@ this.PaypalComponent.Void_authorized_payment(authorization_id: string).then((response) => {

}).catch((error) => {
// You can display a notification to the user or perform any other error handling logic here
// You can display a notification to
// the user or perform any other error handling logic here
});

@@ -258,3 +292,4 @@

}).catch((error) => {
// You can display a notification to the user or perform any other error handling logic here
// You can display a notification to
// the user or perform any other error handling logic here
});

@@ -270,3 +305,4 @@ // END======================

}).catch((error) => {
// You can display a notification to the user or perform any other error handling logic here
// You can display a notification to
// the user or perform any other error handling logic here
});

@@ -283,3 +319,4 @@ // END======================

}).catch((error) => {
// You can display a notification to the user or perform any other error handling logic here
// You can display a notification to
// the user or perform any other error handling logic here
});

@@ -290,3 +327,3 @@ // END======================

// start===============You can hit within this function ============
// start=======You can hit within this function ============

@@ -296,3 +333,4 @@ this.PaypalComponent.Show_refund_details(capture_id).then((response) => {

}).catch((error) => {
// You can display a notification to the user or perform any other error handling logic here
// You can display a notification to the user or
// perform any other error handling logic here
});

@@ -299,0 +337,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