UNPKG

pay-sdk-react

Version:

A cross-platform payment SDK for React, supporting Alipay, WeChat Pay, PayPal, Stripe, Payssion, and Airwallex, compatible with H5, PC, and App environments.

208 lines (207 loc) 3.54 kB
.pay-dot-loading { display: inline-block; } .pay-button { display: inline-block; padding: 7px 12px; font-size: 16px; border-radius: 4px; border: 1px solid #eee; background: #fff; color: #333; cursor: pointer; transition: all 0.2s; user-select: none; position: relative; text-align: center; } .pay-button-content { display: flex; align-items: center; justify-content: center; gap: 6px; } .pay-button-block { display: block; width: 100%; } .pay-button-disabled { opacity: 0.4; cursor: not-allowed; } .pay-button-loading { cursor: wait; } .pay-button-loading-wrapper { display: flex; align-items: center; justify-content: center; gap: 6px; } .pay-button-primary { background: #1677ff; border-color: #1677ff; color: #fff; } .pay-button-primary:hover { background: #409eff; } .pay-button-success { background: #00b578; border-color: #00b578; color: #fff; } .pay-button-danger { background: #ff3141; border-color: #ff3141; color: #fff; } .pay-button-warning { background: #ff8f1f; border-color: #ff8f1f; color: #fff; } .pay-button-default { background: #fff; border-color: #eee; color: #333; } .pay-button-fill-outline { background: transparent; color: inherit; } .pay-button-fill-none { background: transparent; border: none; color: inherit; } .pay-button-mini { font-size: 12px; padding: 2px 8px; } .pay-button-small { font-size: 14px; padding: 4px 10px; } .pay-button-large { font-size: 18px; padding: 10px 18px; } .pay-button-shape-rounded { border-radius: 1000px; } .pay-button-shape-rectangular { border-radius: 0; } .pay-mask { position: fixed; z-index: 1000; left: 0; top: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; } .pay-mask-content { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 88px; } .pay-mask-close { position: absolute; right: 12px; top: 12px; background: none; border: none; font-size: 28px; color: #fff; cursor: pointer; z-index: 1; } .pay-mask-title { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 28px; color: #fff; margin-bottom: 16px; text-shadow: 0 2px 8px #000; } .pay-mask-title > .pay-icon-paypal-white { width: 36px; height: 36px; } .pay-mask-desc { color: #fff; text-align: center; margin-bottom: 24px; line-height: 1.5; white-space: pre-line; } .pay-mask-continue { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; text-align: center; font-size: 18px; } .pay-icon { display: inline-block; color: inherit; width: 16px; vertical-align: -2px; stroke: currentColor; } .pay-icon[fill='currentColor'] { fill: currentColor; stroke: none; } .pay-icon[stroke='currentColor'] { stroke: currentColor; fill: none; } .pay-icon[fill='currentColor'][stroke='currentColor'] { fill: currentColor; stroke: currentColor; } .pay-icon-paypal-text { width: 64px; height: 26px; max-width: 72px; max-height: 32px; } .pay-icon-close { width: 18px; height: 18px; } .pay-icon-stripe-text { width: 24px; height: 24px; } .pay-icon-alipay { width: 20px; height: 20px; } .pay-icon-wechat-pay { width: 20px; height: 20px; } .pay-icon-payssion-pay { width: 36px; height: 20px; } .pay-paypal-btn.pay-button > span { display: flex; align-items: center; gap: 0.5rem; }