Please enable JavaScript.
Coggle requires JavaScript to display documents.
E-Wallet, Influencer Subscribe, POST API for content purchase transaction,…
E-Wallet
Service
POST /ewallet
GET /ewallet
GET /ewallet/id
PATCH /ewallet/id
model
amount
userId
transactions[]
token
Influencer Subscribe
Recurring Payment setup Page
POST API for payment
create a user profile for the recurring
payment with Authorize.net api
success response
save the details in DB
success response to the
mobile app
Failure response
Failure response to the
mobile app
POST API for content purchase transaction
check the user data
if user is
Purchasing content
checkout button
if user is influencer,
check for the available balance
in the wallet
if amount is sufficient,
have an option for payment
through wallet
if user declines to use the
wallet and use the default
payment instead, continue here
if user selects for payment through wallet,
continue with a wallet transaction by
setting the transactionType option as wallet
set the transactionType option as card
POST transaction api
check transactionType
card
call the Authorization.net api for making the payment
success
save the transaction in DB
failure
response with failure status
wallet
make the transaction with using
the wallet service ( will update
the database for transactions)
success
callback function for success
for calling an api in Emabassy Social
respond with success message
1 more item...
Frontend
Backend
Purchasing content
checkout button
backend
frontend