@2c2p/pgw-sdk-react-native
Version:
2C2P PGW SDK for react native and allows merchants to build an excellent payment experience within their mobile apps by integrating easily with 2C2P's payment gateway.
38 lines (34 loc) • 1.62 kB
JavaScript
// @flow
import type { TurboModule } from 'react-native/Libraries/TurboModule/RCTExport';
import { TurboModuleRegistry } from 'react-native';
/*
* Created by DavidBilly PK on 12/9/24.
*/
export interface Spec extends TurboModule {
//PGW
initialize(request: string): Promise<string>;
clientId(): Promise<string>;
configuration(): Promise<string>;
paymentOption(request: string): Promise<string>;
paymentOptionDetail(request: string): Promise<string>;
proceedTransaction(request: string): Promise<string>;
customerTokenInfo(request: string): Promise<string>;
exchangeRate(request: string): Promise<string>;
userPreference(request: string): Promise<string>;
transactionStatus(request: string): Promise<string>;
systemInitialization(request: string): Promise<string>;
paymentNotification(request: string): Promise<string>;
cancelTransaction(request: string): Promise<string>;
loyaltyPointInfo(request: string): Promise<string>;
paymentUI(request: string): Promise<string>;
//PGWHelper
supportApplePayPayment(request: string): Promise<string>;
proceedApplePayPayment(request: string, fx: string): Promise<string>;
supportGooglePayPayment(request: string, googlePayAPIEnvironment: number): Promise<string>;
proceedGooglePayPayment(request: string, fx: string, googlePayAPIEnvironment: number): Promise<string>;
proceedDeepLinkPayment(request: string): Promise<string>;
proceedZaloPayPayment(request: string, zaloPayAPIEnvironment: string): Promise<string>;
}
export default (TurboModuleRegistry.get<Spec>(
'RTNPGW'
): ?Spec);