Skip to content

Commit

Permalink
Update release notes for version 0.112.0 (#232)
Browse files Browse the repository at this point in the history
* Fix breaking changes for version 0.112.0

* Revert clientID and secret and append paypalpay to the return URL

* Update changelog for 0.112.0 release
  • Loading branch information
tdchow authored Apr 20, 2023
1 parent d885b34 commit 57a27a5
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 7 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# Change Log

## Version 0.112.0
**Features Updates**
* Introduced Pay Later PayPal offerings
* Added the ability for users to add an initial payment method to their PayPal account
* Updated the UI of the native add-card flow to include complete address input
* Added the ability to programmatically logout a PayPal user

**Breaking Changes**
* `Order` was renamed to `OrderRequest`
* `SettingsConfig.shouldFailEligibility` was renamed to `SettingsConfig.showWebCheckout`
* `Address` returned in the `OnShippingChange` callback was renamed to `ShippingChangeAddress`

**Non-Breaking Changes**
* Updated version to 0.112.0 to align with iOS
* Additional bugfixes

**GitHub Issues Resolved**
https://github.com/paypal/android-checkout-sdk/issues/99
https://github.com/paypal/android-checkout-sdk/issues/100
https://github.com/paypal/android-checkout-sdk/issues/104
https://github.com/paypal/android-checkout-sdk/issues/226
https://github.com/paypal/android-checkout-sdk/issues/184
https://github.com/paypal/android-checkout-sdk/issues/216

## Version 0.8.8
* Adding the `ReturnUrl` requirement back into the `CheckoutConfig`
Expand Down
2 changes: 1 addition & 1 deletion quickstart-kotlin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ android {

dependencies {
// PayPal Checkout SDK Libraries
implementation 'com.paypal.checkout:android-sdk:0.8.8'
implementation 'com.paypal.checkout:android-sdk:0.112.0'

// Other Dependencies Related To Sample App
implementation fileTree(dir: "libs", include: ["*.jar"])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class QuickStartApp : Application() {
userAction = UserAction.PAY_NOW,
settingsConfig = SettingsConfig(
loggingEnabled = true,
shouldFailEligibility = false
showWebCheckout = false
),
returnUrl = BuildConfig.LIBRARY_PACKAGE_NAME + "://paypalpay"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.paypal.checkout.createorder.OrderIntent
import com.paypal.checkout.createorder.ShippingPreference
import com.paypal.checkout.createorder.UserAction
import com.paypal.checkout.order.AppContext
import com.paypal.checkout.order.Order
import com.paypal.checkout.order.OrderRequest
import com.paypal.checkoutsamples.order.CreatedItem

/**
Expand All @@ -27,15 +27,15 @@ class CreateOrderUseCase(
private val createPurchaseUnitUseCase: CreatePurchaseUnitUseCase = CreatePurchaseUnitUseCase()
) {

fun execute(request: CreateOrderRequest): Order = with(request) {
fun execute(request: CreateOrderRequest): OrderRequest = with(request) {
val createPurchaseUnitRequest = CreatePurchaseUnitRequest(
createdItems = createdItems,
shippingPreference = shippingPreference,
currencyCode = currencyCode
)
val purchaseUnit = createPurchaseUnitUseCase.execute(createPurchaseUnitRequest)

return Order.Builder()
return OrderRequest.Builder()
.intent(orderIntent)
.purchaseUnitList(listOf(purchaseUnit))
.appContext(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import com.paypal.checkout.createorder.UserAction
import com.paypal.checkout.error.OnError
import com.paypal.checkout.order.Amount
import com.paypal.checkout.order.AppContext
import com.paypal.checkout.order.Order
import com.paypal.checkout.order.OrderRequest
import com.paypal.checkout.order.PurchaseUnit
import com.paypal.checkout.paymentbutton.PaymentButtonEligibilityStatus
import com.paypal.checkoutsamples.R
Expand All @@ -39,7 +39,7 @@ class PaymentButtonQuickStartActivity : AppCompatActivity() {
createOrder = CreateOrder { createOrderActions ->
Log.v(tag, "CreateOrder")
createOrderActions.create(
Order.Builder()
OrderRequest.Builder()
.appContext(
AppContext(
userAction = UserAction.PAY_NOW
Expand Down

0 comments on commit 57a27a5

Please sign in to comment.