# @types/react-native-paypal-lib

> TypeScript definitions for react-native-paypal-lib

Latest version **1.0.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-native-paypal-lib
pnpm add @types/react-native-paypal-lib
yarn add @types/react-native-paypal-lib
bun add @types/react-native-paypal-lib
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2023-11-07 |
| First published | 2020-10-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-native-paypal-lib
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-paypal-lib
- npm.io page: https://npm.io/package/@types/react-native-paypal-lib

## Recent versions

- 1.0.3 (latest) — 2023-11-07
- 1.0.0 (ts3.2) — 2020-10-13
- 1.0.2 — 2023-10-18
- 1.0.1 — 2023-09-27

## README

# Installation
> `npm install --save @types/react-native-paypal-lib`

# Summary
This package contains type definitions for react-native-paypal-lib (https://github.com/zeddz92/react-native-paypal#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-paypal-lib.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-paypal-lib/index.d.ts)
````ts
export type ENVIRONMENT = "NO_NETWORK" | "SANDBOX" | "PRODUCTION";
export type INTENT = "SALE" | "AUTHORIZE" | "ORDER";

export type CURRENCIES =
    | "AUD"
    | "BRL"
    | "CAD"
    | "CNY"
    | "CZK"
    | "DKK"
    | "EUR"
    | "HKD"
    | "HUF"
    | "INR"
    | "ILS"
    | "JPY"
    | "MYR"
    | "MXN"
    | "TWD"
    | "NZD"
    | "NOK"
    | "PHP"
    | "PLN"
    | "GBP"
    | "RUB"
    | "SGD"
    | "SEK"
    | "CHF"
    | "THB"
    | "USD";

export interface EnvironmentParam {
    NO_NETWORK: "NO_NETWORK";
    SANDBOX: "SANDBOX";
    PRODUCTION: "PRODUCTION";
}

export interface IntentParam {
    SALE: "SALE";
    AUTHORIZE: "AUTHORIZE";
    ORDER: "ORDER";
}

export interface PayPalPayment {
    environment: string;
    paypal_sdk_version: string;
    platform: string;
    product_name: string;
}

export interface ProofOfPayment {
    create_time: string;
    id: string;
    intent: string;
    state: string;
}

export interface PaymentConfirmation {
    client: PayPalPayment;
    response: ProofOfPayment;
    response_type: string;
}

export interface PaymentParams {
    clientId: string;
    environment: ENVIRONMENT;
    intent: INTENT;
    price: number;
    currency: CURRENCIES;
    description: string;
    acceptCreditCards: boolean;
}

declare const RNPaypal: {
    paymentRequest(params: PaymentParams): Promise<PaymentConfirmation>;
    readonly ENVIRONMENT: EnvironmentParam;
    readonly INTENT: IntentParam;
};

export default RNPaypal;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Gustavo Silva](https://github.com/gstvds).

---
_Source: https://npm.io/package/@types/react-native-paypal-lib · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
