Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPrivateKey = errors.New("invalid private key")
Functions ¶
This section is empty.
Types ¶
type Bni ¶
type Bni struct { Host string Username string Password string ClientID string ClientSecret string HmacKey string MerchantID string TerminalID string }
func (Bni) CheckStatusTransaction ¶
example request
{ "request_id": "XwVjF5zfuHhrDZuw", "bill_number": "12345678901234567890", "mid": "008800223497" }
example response
{ "code": "00", "message": "success", "request_id": "XwVjF5zfuHhrDZuw", "customer_pan": "9360001110000000019", "amount": "10000.00", "transaction_datetime": "2021-02-25T13:36:13", "amount_fee": "1000.00", "rrn": "123456789012", "bill_number": "12345678901234567890", "issuer_code": "93600013", "customer_name": "John Doe", "terminal_id": "00005771", "merchant_id": "008800223497", "stan": "210226", "merchant_name": "Sukses Makmur Bendungan Hilir", "approval_code": "00", "merchant_pan": "936000131600000003", "mcc": "5814", "merchant_city": "Jakarta Pusat", "merchant_country": "ID", "currency_code": "360", "payment_status": "00", "payment_description": "Payment Success" }
func (Bni) GenerateQRCode ¶
example request:
{ "request_id": "10009121031000912103", "amount": "15001.00" "merchant_id": "1234567890", "terminal_id": "10049258", "qr_expired": "2022-06-23T15:01:28" }
example response:
{ "code": "00", "message": "success", "bill_number": "C000011957", "nmid": "ID220614113906351", "qr_string": "00020101021226590013ID.CO.BNI.WWW011893600009150002344302096579089700303UBE51470015ID.OR.GPNQR.WWW0217ID2206141139063510303UBE5204762353033605406100.005802ID5925PT Logika Garis Elektroni6007GIANYAR61058057162180110C00001195707006304709E", "qr_expired": "2022-06-23T15:01:28" }
type BniCheckStatusTransactionRequest ¶
func (BniCheckStatusTransactionRequest) Payload ¶
func (r BniCheckStatusTransactionRequest) Payload() M
type BniGenerateQRCodeRequest ¶
func (BniGenerateQRCodeRequest) Payload ¶
func (r BniGenerateQRCodeRequest) Payload() M
type BriMpmDynamic ¶
type BriMpmDynamic struct { Host string ClientID string ClientSecret string PartnerID string PrivateKey string // can be filename OR content of file MerchantID string TerminalID string ChannelID string Timezone string }
func (BriMpmDynamic) CheckStatusTransaction ¶
func (mpm BriMpmDynamic) CheckStatusTransaction(r IRequest) (M, error)
example request:
{ "originalReferenceNo": "000008526955", "serviceCode": "17", "additionalInfo": { "terminalId": "10049258" } }
example response:
{ "responseCode": "2005100", "responseMessage": "Successful", "originalReferenceNo": "000008526955", "serviceCode": "17", "latestTransactionStatus": "00", "transactionStatusDesc": "Successfully", "amount": { "value": "15001.00", "currency": "IDR" }, "terminalId": "10049258", "additionalInfo": { "customerName": "John Doe", "customerNumber": "9360015723456789", "invoiceNumber": "10009121031000912103", "issuerName": "Finnet 2", "mpan": "9360000201102921379" } }
func (BriMpmDynamic) GenerateQRCode ¶
func (mpm BriMpmDynamic) GenerateQRCode(r IRequest) (M, error)
example request:
{ "partnerReferenceNo": "10009121031000912103", "amount": { "value": "15001.00", "currency": "IDR" }, "merchantId": "1234567890", "terminalId": "10049258" }
example response:
{ "responseCode": "2004700", "responseMessage": "Successful", "referenceNo": "000008526955", "partnerReferenceNo": "10009121031000912103", "qrContent": "00020101021226650013ID.CO.BRI.WWW011893600002021046147202150000010190000140303UME520451115303360540450005802ID5919Ritual Kopi Bandung6005BERAU6105773126222011812606343410585824163049C2F" }
type BriMpmDynamicCheckStatusTransactionRequest ¶
type BriMpmDynamicCheckStatusTransactionRequest struct { OriginalReferenceNo string ServiceCode string }
func (BriMpmDynamicCheckStatusTransactionRequest) Payload ¶
func (r BriMpmDynamicCheckStatusTransactionRequest) Payload() M
type BriMpmDynamicGenerateQRCodeRequest ¶
type BriMpmDynamicGenerateQRCodeRequest struct { PartnerReferenceNo string Amount string Currency string }
func (BriMpmDynamicGenerateQRCodeRequest) Payload ¶
func (r BriMpmDynamicGenerateQRCodeRequest) Payload() M
type M ¶
func (M) ServiceCode ¶
func (M) SetValueIfEmpty ¶
func (M) SuccessfulGenerate ¶
func (M) SuccessfulPaid ¶
Click to show internal directories.
Click to hide internal directories.