@rnw-community/react-native-payments
Version:
Accept Payments with Apple Pay and Android Pay using the Payment Request API.
18 lines • 1.04 kB
TypeScript
import type { PaymentValidationErrors } from '../../@standard/w3c/payment-validation-errors.js';
import type { PaymentComplete } from '../../enum/payment-complete.enum.js';
import type { PaymentResponseDetailsInterface } from '../../interface/payment-response-details.interface.js';
import type { PaymentResponseJsonInterface } from '../../interface/payment-response-json.interface.js';
import type { Maybe } from '@rnw-community/shared';
export declare class PaymentResponse {
readonly requestId: string;
readonly methodName: string;
readonly details: PaymentResponseDetailsInterface;
readonly shippingOption: Maybe<string>;
private completeCalled;
private retryCalled;
constructor(requestId: string, methodName: string, details: PaymentResponseDetailsInterface, shippingOption?: Maybe<string>);
complete(result: PaymentComplete): Promise<void>;
retry(errorFields?: PaymentValidationErrors): Promise<undefined>;
toJSON(): PaymentResponseJsonInterface;
}
//# sourceMappingURL=payment-response.d.ts.map