scala-mollie


License

License

Categories

Categories

Scala Languages
GroupId

GroupId

com.github.benniekrijger
ArtifactId

ArtifactId

scala-mollie_2.11
Last Version

Last Version

0.15
Release Date

Release Date

Type

Type

jar
Description

Description

scala-mollie
scala-mollie
Project URL

Project URL

https://github.com/benniekrijger/scala-mollie
Project Organization

Project Organization

com.github.benniekrijger
Source Code Management

Source Code Management

https://github.com/benniekrijger/scala-mollie

Download scala-mollie_2.11

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.benniekrijger/scala-mollie_2.11/ -->
<dependency>
    <groupId>com.github.benniekrijger</groupId>
    <artifactId>scala-mollie_2.11</artifactId>
    <version>0.15</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.benniekrijger/scala-mollie_2.11/
implementation 'com.github.benniekrijger:scala-mollie_2.11:0.15'
// https://jarcasting.com/artifacts/com.github.benniekrijger/scala-mollie_2.11/
implementation ("com.github.benniekrijger:scala-mollie_2.11:0.15")
'com.github.benniekrijger:scala-mollie_2.11:jar:0.15'
<dependency org="com.github.benniekrijger" name="scala-mollie_2.11" rev="0.15">
  <artifact name="scala-mollie_2.11" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.benniekrijger', module='scala-mollie_2.11', version='0.15')
)
libraryDependencies += "com.github.benniekrijger" % "scala-mollie_2.11" % "0.15"
[com.github.benniekrijger/scala-mollie_2.11 "0.15"]

Dependencies

compile (10)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.8
com.typesafe.akka : akka-actor_2.11 jar 2.5.0
com.typesafe.akka : akka-slf4j_2.11 jar 2.5.0
com.typesafe.akka : akka-http_2.11 jar 10.0.5
de.heikoseeberger : akka-http-json4s_2.11 jar 1.15.0
org.json4s : json4s-native_2.11 jar 3.5.1
org.json4s : json4s-jackson_2.11 jar 3.5.1
joda-time : joda-time jar 2.9.9
org.joda : joda-convert jar 1.8.1
ch.qos.logback : logback-classic jar 1.2.3

test (2)

Group / Artifact Type Version
com.typesafe.akka : akka-testkit_2.11 jar 2.5.0
org.scalatest : scalatest_2.11 jar 3.0.1

Project Modules

There are no modules declared in this project.

Scala Mollie

Build Status Maven Central License

Scala client to connect to the Mollie payment provider API

Dependencies

To include the latest release of the Mollie client into your sbt project, add the following lines to your build.sbt file:

   libraryDependencies += "com.github.benniekrijger" %% "scala-mollie" % "0.15"

This version of scala-mollie depends on Akka 2.4.14 and Scala 2.12.0.

Sample usage

     val mollieConfig = MollieConfig(
       apiHost = "api.mollie.nl",
       apiBasePath = "v1",
       apiKey = Some("liveApiKey"),
       testApiKey = "testApiKey",
       testMode = true
     )
   
     val mollieClient = system.actorOf(
       MollieClientActor.props(mollieConfig),
       MollieClientActor.name
     )
   
     (mollieClient ? GetPayment("some-payment-id")).map {
       case resp: PaymentResponse =>
       case _ => // failure
     }
   
     (mollieClient ? ListPaymentIssuers()).map {
       case resp: PaymentIssuers =>
       case _ => // failure
     }
   
     (mollieClient ? ListPaymentMethods()).map {
       case resp: PaymentMethods =>
       case _ => // failure
     }
     
     (mollieClient ? CreatePaymentIdeal(
        issuer = "ideal_RABONL",
        amount = 10.5,
        description = "Test payment",
        redirectUrl = "http://example.nl/return-url.html",
        webhookUrl = Some("http://example.nl/webhook.html"),
        locale = Some("nl"),
        metadata = Map("orderId" -> "1234")
     )).map {
       case resp: PaymentResponse =>
       case _ => // failure
     }
     

Versions

Version
0.15
0.14
0.13
0.12
0.11
0.10
0.9
0.8
0.6
0.5
0.4
0.3
0.2
0.1