amazon_iap v0.1.1 AmazonIAP
Link to this section Summary
Link to this section Functions
Link to this function
build_rvs_url(user_id, receipt_id)
Link to this function
parse_response(arg)
parse_response({:error, HTTPoison.Error.t()} | {:ok, HTTPoison.Response.t()}) :: {:ok, AmazonIAP.RVSResponse.t()} | {:error, integer()} | {:error, integer(), HTTPoison.Error.t()}
Link to this function
verify_raw_receipt(user_id, receipt)
verify_raw_receipt(binary(), binary()) :: {:ok, AmazonIAP.RVSResponse.t()} | {:error, integer()} | {:error, integer(), HTTPoison.Error.t()}
Verify encoded receipt.
Returns {:ok, response}
if the receipt is valid, {:error, status_code}
or {:error, status_code, httpoison_error_reason}
otherwise.
Link to this function
verify_receipt(user_id, receipt_id)
verify_receipt(binary(), binary()) :: {:ok, AmazonIAP.RVSResponse.t()} | {:error, integer()} | {:error, integer(), HTTPoison.Error.t()}
Verify receipt by user_id and receipt_id.
Returns {:ok, response}
if the receipt is valid, {:error, status_code}
or {:error, status_code, httpoison_error_reason}
otherwise.