Create Access Token
Last updated
Was this helpful?
Was this helpful?
from hyperswitch_prism import MerchantAuthenticationClient
auth_client = MerchantAuthenticationClient(
connector='stripe',
api_key='YOUR_API_KEY',
environment='SANDBOX'
)request = {
"scope": "payment:write",
"expires_in": 3600
}
response = await auth_client.create_access_token(request){
"access_token": "sk_test_xxx",
"token_type": "Bearer",
"expires_in": 3600,
"status_code": 200
}