Code Monkey home page Code Monkey logo

transcript's Introduction

Midtrans Status Helper

Java helper for Midtrans status

Install

Add the following line to build.gradle dependencies.

implementation 'com.gopay:midtrans-status-mapper:0.0.6-RELEASE'

call map method

MidtransStatusMapper.map(order);

MERCHANT_TRANSACTION mapping

OMS State Callback Status
order.status in (“created”) AND (qris OR is PaymentReference) isQRIS = order.payer.payment_instruction_details.length = 0, isPaymentReference = order.payer.payment_instruction_details[0].instruction_type="PAYMENT_REFERENCE" pending
order.status in (“rejected”) deny
order.status in (“expired”) expire
order.status in (“cancelled”) cancel
order.status in (“queued”) settlement
order.status in (“cancelled”) cancel
order.status in (“created”) AND order.payer.payment_instructions[].reservation_status = RESERVED authorized
order.status in (“created”) AND order.payer.payment_instructions.length>0 AND order.payer.payment_instructions.each(status IN (“void”)) failure

CASHBACK mapping

OMS State Callback Status
order.status in (“queued”) promo_settlement

REFUND/REVERT mapping

OMS State Callback Status
order.status in (“queued”) refund, refund_to_bank
order.status in (“fulfilled”) refund, refund_to_bank

FRAUD STATUS mapping

Gopay Status Midtrans Fraud Status
REJECTED DENY
others ACCEPT

transcript's People

Contributors

if414013 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.