SDK Integration
  • Getting Started
  • Onboarding Requirements
  • Hash Generation
  • Test Merchant list
  • Android
    • Android SDK Offering
    • PayUCheckoutPro
      • Integration
      • Build the Payment Params
        • Additional Params
      • Hash Generation
      • Set up the payment hashes
      • Initiate the Payment
      • Customized Integration
        • Set Webview Properties
        • SDK Configuration
        • Additional Offerings
      • Offers Integration
      • Convenience Fee Integration
      • Custom Note Integration
      • MCP Integration
    • Core
      • Supported Payment Types
      • TPV Integration
      • Merchant Web Services
        • Getting Enabled Payment Options
        • GetCheckoutDetails API
        • Lookup API
    • Custom Browser
      • Integration
        • CustomBrowser Config
        • CustomBrowserCallback
        • Supporting below Lollipop Versions
        • Third-Party Payments Support
      • Sample App
      • Change Logs
    • Native OTP Assist
      • Integration
      • Customization
      • Change Logs
    • UPI
      • Integration
      • TPV Integration in UPI
      • Sample App
      • Change Logs
    • Google Pay™
      • Integration
      • Sample App
    • PhonePe
      • Integration
      • Sample App
      • Change Logs
    • OlaMoney
    • PayU OTP Parser
      • Integration
    • FAQ Android
  • iOS
    • PayUCheckoutPro
      • Integration
      • Advanced Integration
      • Set up the payment hashes
      • Convenience Fee Integration
      • MCP Integration
      • Custom Note Integration
    • Core
      • POD Integration
      • Seamless
      • Web Services
      • Objective C-Non-Seamless
      • Standing Instructions
      • TPV Integration
      • Sample App
    • Custom Browser
      • Sample App
    • OlaMoney
    • Native OTP Assist
      • Integration
      • Customization
    • UPI
      • Integration
      • Sample App
    • PayUParams
      • PayUSIParams
      • PayUBeneficiaryParams
  • Releasing to Apple
  • React-Native
    • PayUCheckoutPro
      • Integration
      • Set up the payment hashes
      • Advanced Integration
      • Change Logs
    • Core
    • Non-Seamless Wrapper
    • TPV (beta)
      • Integration
  • FAQ iOS
Powered by GitBook
On this page
  • Initialise MerchantWebService.
  • Create Merchant Web Service PostData.
  • Apis Commands supported

Was this helpful?

  1. Android
  2. Core

Merchant Web Services

This page describes how to make api calls from SDK.

PreviousTPV IntegrationNextGetting Enabled Payment Options

Last updated 3 years ago

Was this helpful?

Initialise MerchantWebService.

Create an object of MerchantWebService with any of the supported api commands.

MerchantWebService merchantWebService = new MerchantWebService();
merchantWebService.setKey(merchantKey); // Merchant key
merchantWebService.setCommand(<Api Commands>); // Command for fetching payment related details
merchantWebService.setVar1(userCredential) // User Credential of the merchant
merchantWebService.setHash(<Api Command Hash>) //Hash for fetching payment related details such as payment options

For web service hash generation visit .

Create Merchant Web Service PostData.

PostData postData = new MerchantWebServicePostParams(merchantWebService).getMerchantWebServicePostParams();
 if (postData.getCode() == PayuErrors.NO_ERROR) {
   payuConfig.setData(postData.getResult());
 }

If PostData has no error - you are good to go else please check the data point set in merchantWebService

Apis Commands supported

Below api commands are present in PayUConstants class.

Commands

Description

​Task

Listener

PAYMENT_RELATED_DETAILS_FOR_MOBILE_SDK

To get all enabled payment options

GetPaymentRelatedDetailsTask payuTask = GetPaymentRelatedDetailsTask(this); payuTask.execute(payuConfig);

PaymentRelatedDetailsListener

VAS_FOR_MOBILE_SDK

To get health status of payment options

ValueAddedServiceTask payuTask = ValueAddedServiceTask(this); payuTask.execute(payuConfig);

ValueAddedServiceApiListener

SAVE_USER_CARD (Deprecated)

Save User CC/DC

SaveCardTask payuTask = SaveCardTask(this); payuTask.execute(payuConfig);

SaveCardApiListener

EDIT_USER_CARD (Deprecated)

Edit stored user card

EditCardTask payuTask = EditCardTask(this); payuTask.execute(payuConfig);

EditCardApiListener

DELETE_USER_CARD (Deprecated)

Delete stored user card

DeleteCardTask payuTask = DeleteCardTask(this); payuTask.execute(payuConfig);

DeleteCardApiListener

GET_USER_CARDS (Deprecated)

Get stored user cards

GetStoredCardTask payuTask = GetStoredCardTask(this); payuTask.execute(payuConfig);

GetStoredCardApiListener

CHECK_IS_DOMESTIC

Get Bin information of CC/DC

GetCardInformationTask payuTask = GetCardInformationTask(this); payuTask.execute(payuConfig);

GetCardInformationApiListener

GET_TRANSACTION_INFO

Getting Transaction information

GetTransactionInfoTask payuTask = GetTransactionInfoTask(this); payuTask.execute(payuConfig);

GetTransactionInfoApiListener

VERIFY_PAYMENT

Verify Payment Status

VerifyPaymentTask payuTask = VerifyPaymentTask(this); payuTask.execute(payuConfig);

VerifyPaymentApiListener

CHECK_OFFER_DETAILS

To get the offer details.

CheckOfferDetailsTask payuTask = CheckOfferDetailsTask(this); payuTask.execute(payuConfig);

CheckOfferDetailsApiListener

API_GET_EMI_AMOUNT_ACCORDING_INTEREST

To get the emi amount according to interest.

GetEmiAmountAccordingToInterestTask payuTask = GetEmiAmountAccordingToInterestTask(this); payuTask.execute(payuConfig);

GetEmiAmountAccordingToInterestApiListener

CHECK_OFFER_STATUS

To check the status of offe

GetOfferStatusTask payuTask = GetOfferStatusTask(this); payuTask.execute(payuConfig);

GetOfferStatusApiListener

ELIGIBLE_BINS_FOR_EMI

To check if bin is eligible for EMI

EligibleBinsForEMITask payuTask = EligibleBinsForEMITask(this); payuTask.execute(payuConfig);

EligibleBinsForEMIApiListener

GET_CHECKOUT_DETAILS

To get info about additional charges, bank down, tax info and offers

GetCheckoutDetailsTask getCheckoutDetailsTask = GetCheckoutDetailsTask(this); getCheckoutDetailsTask.execute(payuConfig);

CheckoutDetailsListener

GET_PAYMENT_INSTRUMENT

Get stored cards of user

GetTokenisedCardTask getTokenisedCardTask = GetTokenisedCardTask(this); getTokenisedCardTask.execute(payuConfig);

GetTokenisedCardApiListener

DELETE_PAYMENT_INSTRUMENT

Delete stored card of user

DeleteTokenisedCardTask deleteTokenisedCardTask = DeleteTokenisedCardTask(this); deleteTokenisedCardTask.execute(payuConfig);

DeleteTokenisedCardApiListener

GET_PAYMENT_DETAILS

Get details of stored card to make payment on another PG

GetTokenisedCardDetailsTask getTokenisedCardDetailsTask = GetTokenisedCardDetailsTask(this); getTokenisedCardDetailsTask.execute(payuConfig);

GetTokenisedCardDetailsApiListener

CHECK_BALANCE

To get info about Sodexo saved Card

CheckBalanceTask checkBalanceTask= CheckBalanceTask(this); checkBalanceTask.execute(payuConfig);

CheckBalanceListener

Hash Generation