diff --git a/CHANGELOG.md b/CHANGELOG.md index 2623f3f..301ed5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.2.0] + +### Added + +- Optional `iframe` builder on `CreateInvoiceParams` (`.iframe(true)`) for embedded + checkout. Like `payment_mode`, it is sent in the request body but excluded from the + HMAC signature. + ## [0.1.0] ### Added diff --git a/README.md b/README.md index ed9ea4c..6d94ad9 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Ships a **Spring Boot starter** for one-line dependency injection. com.getpayin.paylink paylink-core - 0.1.0 + 0.2.0 ``` @@ -43,16 +43,16 @@ Spring Boot apps — use the starter instead (it pulls in the core): com.getpayin.paylink paylink-spring-boot-starter - 0.1.0 + 0.2.0 ``` **Gradle**: ```groovy -implementation 'com.getpayin.paylink:paylink-core:0.1.0' +implementation 'com.getpayin.paylink:paylink-core:0.2.0' // or, for Spring Boot: -implementation 'com.getpayin.paylink:paylink-spring-boot-starter:0.1.0' +implementation 'com.getpayin.paylink:paylink-spring-boot-starter:0.2.0' ``` ## Quick start @@ -78,6 +78,17 @@ CreateInvoiceResult checkout = paylink.invoices().create( response.sendRedirect(checkout.checkoutUrl()); ``` +For an **embedded checkout**, pass `.iframe(true)` and render `checkout.checkoutUrl()` +inside an `