Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1684 from openedx/hamza/LEARNER-8810
Browse files Browse the repository at this point in the history
feat: Update the checkout endpoint to handle error cases
  • Loading branch information
HamzaIsrar12 committed Jul 22, 2022
2 parents afdf1f8 + 020fdda commit 046a027
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ import org.edx.mobile.model.iap.AddToBasketResponse
import org.edx.mobile.model.iap.CheckoutResponse
import org.edx.mobile.model.iap.ExecuteOrderResponse
import retrofit2.Call
import retrofit2.http.*
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query
import javax.inject.Singleton

interface InAppPurchasesService {
Expand All @@ -29,7 +33,7 @@ interface InAppPurchasesService {
fun addToBasket(@Query("sku") productId: String): Call<AddToBasketResponse>

@FormUrlEncoded
@POST("/api/v2/checkout/")
@POST("/api/iap/v1/checkout/")
fun proceedCheckout(
@Field("basket_id") basketId: Long,
@Field("payment_processor") paymentProcessor: String
Expand Down

0 comments on commit 046a027

Please sign in to comment.