Nenhuma descrição

index.d.ts 1.1KB

1234567891011121314151617181920212223242526272829
  1. /// <reference types="react" />
  2. type PAY_CHANNEL_VALUE = "PAYPAL_PAYPAL" | "ALI_WEB" | "ALI_WAP" | "WX_WAP" | "WX_NATIVE";
  3. type PAY_CHANNEL_CATEGORY_VALUE = "Alipay" | "Wechat" | "Paypal";
  4. interface PAY_CHANNEL_TYPE {
  5. PAYPAL: PAY_CHANNEL_VALUE;
  6. ALI_WEB: PAY_CHANNEL_VALUE;
  7. ALI_WAP: PAY_CHANNEL_VALUE;
  8. WX_WAP: PAY_CHANNEL_VALUE;
  9. WX_NATIVE: PAY_CHANNEL_VALUE;
  10. }
  11. interface PAY_CHANNEL_CATEGORY {
  12. ALI: PAY_CHANNEL_CATEGORY_VALUE;
  13. WX: PAY_CHANNEL_CATEGORY_VALUE;
  14. PAYPAL: PAY_CHANNEL_CATEGORY_VALUE;
  15. }
  16. interface Props {
  17. payChannel: PAY_CHANNEL_VALUE;
  18. onPayChannelChange: (value: PAY_CHANNEL_VALUE) => void;
  19. isMobile: boolean;
  20. size: "small" | "normal" | "large";
  21. withTitle: boolean;
  22. titleText?: string;
  23. locale: "zh" | "en";
  24. }
  25. declare const PAY_CHANNEL: PAY_CHANNEL_TYPE;
  26. declare const PAY_CHANNEL_CATEGORY$0: PAY_CHANNEL_CATEGORY;
  27. declare const PayPlatformOptions: ({ payChannel, onPayChannelChange, size, isMobile, withTitle, titleText, locale }: Props) => JSX.Element;
  28. export { PayPlatformOptions as default, PAY_CHANNEL, PAY_CHANNEL_CATEGORY$0 as PAY_CHANNEL_CATEGORY };