UNPKG
legendaryjs
Version:
latest (4.1.4)
4.1.4
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
3.8.2
3.8.1
3.8.0
3.7.13
3.7.12
3.7.11
3.7.10
3.7.9
3.6.9
3.0.7
3.0.6
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
2.0.0
1.0.1
1.0.0
LegendaryJS – The ultimate backend framework for speed, power, and simplicity.
legendaryjs
/
payments
/
providers
/
local.js
14 lines
(12 loc)
•
323 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
async
function
localHandler
(
action, details
) {
switch
(action) {
case
'simulate-payment'
:
return
{
status
:
'success'
,
gateway
:
'ME-Payment'
,
amount
: details.
amount
,
message
:
'Simulated payment success (local gateway)'
, }; } }
module
.
exports
= localHandler;