1pay is published to maven center.
add to build.sbt:
libraryDependencies += "com.sandinh" %% "1pay" % 1payVersion
-
implement
sd.Uid2Name
,sd.pay.sms1pay.SmsAddCoin
-
set
sd.pay.sms1pay.secret
in your play'sapplication.conf
-
define
check
&charge
actions in your play's Controller
class Sms @Inject() (sms1Pay: SMS) {
def check = Action.async { implicit req =>
sms1Pay.check.map(Ok(_))
}
def charge = Action.async { implicit req =>
sms1Pay.charge.map(Ok(_))
}
}
see CHANGES.md
This software is licensed under the Apache 2 license: http://www.apache.org/licenses/LICENSE-2.0
Copyright 2015-2109 Sân Đình (https://sandinh.com)