@zastrpay/redirect-session
v1.0.1
Published
Helper package for merchants to integrate Zastrpay payments
Downloads
2
Keywords
Readme
Helper package for merchants to integrate Zastrpay payments.
Usage
@zastrpay/redirect-session is shipped with full support for TypeScript, ESM Modules and Commonjs. This means that package can be used with import & export syntax and module.exports & require syntax.
Example usage with typescript
import { redirect } from '@zastrpay/redirect-session';
// the operation to create an redirect session which contains the token and redirect url
const redirectSession = ...
redirect({
token: redirectSession.token,
redirectUrl: redirectSession.redirectUrl,
});