Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
console log
Got the catalog! [{"catalogId":1,"name":"PCSB Online Catalog","status":"ACTIVE","segment":"CONSUMER","description":"The Progresif online Catalog for consumers","validFromDate":null,"category":"MASTER","operator":"PCSB"}]
paybutton.js:formatted:168 Got the product! [{"productId":101,"productLegacyId":"PCSB-ETICKET","catalog":{"catalogId":1,"name":"PCSB Online Catalog","status":"ACTIVE","segment":"CONSUMER","description":"The Progresif online Catalog for consumers","validFromDate":null,"category":"MASTER","operator":"PCSB"},"subCatalog":{"catalogId":3,"name":"A360-CATALOG","status":"ACTIVE","description":"A360 (ARIS) catalog","validFromDate":null,"category":"OSS-BSS","operator":"PCSB"},"productName":"eTicket","upfrontCost":0,"upfrontVat":0,"recurringVat":0,"costUnit":"cents","currency":"BND","recurring":false,"description":"eTicket technical offer","rank":6,"billingMode":"PREPAID","category":"TechnicalOffer","subCategory":"ETicket","localizedCategory":"Technical Offer","saleExpiryDate":null,"navigable":true,"tags":[{"tag":"e-ticket"}]}]
paybutton.js:formatted:183 Created the Basket! {"basketId":30,"status":"shopping","creationDate":null,"userId":82,"accountItems":[],"serviceItems":[],"accountDelItems":[],"serviceDelItems":[],"_links":[]}
paybutton.js:formatted:219 What does the basket look like before submission? {"basketId":30,"status":"shopping","creationDate":1554814669389,"userId":82,"accountItems":[],"serviceItems":[{"productId":101,"catalogId":1,"subTotal":0,"total":0,"unit":"cents","currency":"BND","category":"TechnicalOffer","accountId":10006,"serviceId":35,"extendedData":"{\"price\":1000,\"currency\":\"BND\"}"}],"accountDelItems":[],"serviceDelItems":[],"_links":[],"customerId":5012,"subTotal":0,"total":0,"currency":"BND","unit":"cents","message":"e-ticket","channel":"PROG-ETICKET"}
paybutton.js:formatted:222 Updated the basket! {"basketId":30,"status":"shopping","creationDate":null,"userId":82,"customerId":5012,"subTotal":0,"total":0,"currency":"BND","unit":"cents","message":"e-ticket","channel":"PROG-ETICKET","accountItems":[],"serviceItems":[{"basketItemId":14,"catalogId":1,"productId":101,"subTotal":0,"vat":null,"total":0,"currency":"BND","unit":"cents","category":"AddToService","extendedData":"{\"price\":1000,\"currency\":\"BND\"}","effectiveFromDate":null,"links":[],"accountId":10006,"serviceId":35}],"accountDelItems":[],"serviceDelItems":[],"_links":[]}
paybutton.js:formatted:235 Got the confirmed basket! {"basketId":31,"creationDate":null,"userId":82,"customerId":5012,"subTotal":0,"total":0,"currency":"BND","message":"e-ticket","channel":"PROG-ETICKET","basketRefId":"CB.1e.16a03ca0c96","accountItems":[],"serviceItems":[{"basketItemId":14,"catalogId":1,"productId":101,"subTotal":0,"vat":null,"total":0,"currency":"BND","unit":"cents","category":"AddToService","extendedData":"{\"price\":1000,\"currency\":\"BND\"}","effectiveFromDate":null,"links":[],"accountId":10006,"serviceId":35}],"accountDelItems":[],"serviceDelItems":[],"_links":[{"rel":"payment-option","method":"GET","name":"create a payment authorization","href":"http://prod.selfcareapp.progresif.com:8080/mock-payment/mockPayment.html"}]}
paybutton.js:formatted:57 Setting up the message listener!
mockPayment.html:70 got a token! {"tokenid":"eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiI2MSIsImlhdCI6MTU1NDg0MTc4NSwic3ViIjoiU1NCIiwiaXNzIjoiUFNDQiIsImV4cCI6MTU1NDg0NTM4NX0.1HIhD3NK5rHFFaT-1ZkyhQ0WvihWx8aOT4WG-OQJqjU","userId":61}
mockPayment.html:95 Got a confirmed basket! {"basketId":31,"status":"confirmed","creationDate":1554814669389,"userId":82,"customerId":5012,"subTotal":0,"total":0,"currency":"BND","message":"e-ticket","channel":"PROG-ETICKET","basketRefId":"CB.1e.16a03ca0c96","accountItems":[],"serviceItems":[{"basketItemId":14,"catalogId":1,"productId":101,"subTotal":0,"vat":null,"total":0,"currency":"BND","unit":"cents","category":"AddToService","extendedData":"{\"price\":1000,\"currency\":\"BND\"}","effectiveFromDate":null,"links":[],"accountId":10006,"serviceId":35}],"accountDelItems":[],"serviceDelItems":[],"processingStatus":"awaiting-processing","_links":[{"rel":"payment-option","method":"GET","name":"create a payment authorization","href":"http://prod.selfcareapp.progresif.com:8080/mock-payment/mockPayment.html"}]}
mockPayment.html:147 Passing back to the Pay Button
mockPayment.html:148 The payment looks like this: {"basketId":31,"status":"confirmed","creationDate":1554814669389,"userId":82,"customerId":5012,"subTotal":0,"total":0,"currency":"BND","message":"e-ticket","channel":"PROG-ETICKET","basketRefId":"CB.1e.16a03ca0c96","accountItems":[],"serviceItems":[{"basketItemId":14,"catalogId":1,"productId":101,"subTotal":0,"vat":null,"total":0,"currency":"BND","unit":"cents","category":"AddToService","extendedData":"{\"price\":1000,\"currency\":\"BND\"}","effectiveFromDate":null,"links":[],"accountId":10006,"serviceId":35}],"accountDelItems":[],"serviceDelItems":[],"processingStatus":"awaiting-processing","_links":[{"rel":"payment-option","method":"GET","name":"create a payment authorization","href":"http://prod.selfcareapp.progresif.com:8080/mock-payment/mockPayment.html"}]}
paybutton.js:formatted:60 Got a message from the iframe! {"isTrusted":true}
paybutton.js:formatted:61 Does the data look different? paymentAccepted=true&paymentMethod=mobileWallet&reference=12345678&walletId=69lol
paybutton.js:formatted:69 paymentMethod set and payment accepted, go and do the order
paybutton.js:formatted:81 The defHeaders look like: {"Authorization":"Basic UFJPR1JFU0lGLUVUSUNLRVQ6UGFzc3cwMDE="}
paybutton.js:formatted:84 Got a token! {"tokenid":"eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiI4MiIsImlhdCI6MTU1NDg0MTgxMiwic3ViIjoiU1NCIiwiaXNzIjoiUFNDQiIsImV4cCI6MTU1NDg0NTQxMn0.tBE_SRw7LWsdSq1Ymk9Wm8TF927x0I0z0FSD0Jg_D68","userId":82}
paybutton.js:formatted:92 Came in with payment authorisation, go to confirming the basket flow
paybutton.js:formatted:250 Got the confirmed basket! {"basketId":31,"status":"confirmed","creationDate":null,"userId":82,"customerId":5012,"subTotal":0,"total":0,"currency":"BND","message":"e-ticket","channel":"PROG-ETICKET","basketRefId":"CB.1e.16a03ca0c96","accountItems":[],"serviceItems":[{"basketItemId":14,"catalogId":1,"productId":101,"subTotal":0,"vat":null,"total":0,"currency":"BND","unit":"cents","category":"AddToService","extendedData":"{\"price\":1000,\"currency\":\"BND\"}","effectiveFromDate":null,"links":[],"accountId":10006,"serviceId":35}],"accountDelItems":[],"serviceDelItems":[],"processingStatus":"awaiting-processing","_links":[{"rel":"payment-option","method":"GET","name":"create a payment authorization","href":"http://prod.selfcareapp.progresif.com:8080/mock-payment/mockPayment.html"}]}
paybutton.js:formatted:252 What is the basketRefId? CB.1e.16a03ca0c96
paybutton.js:formatted:265 Created Mobile Wallet Payment! {"paymentId":31,"basketId":31,"mobileWalletDetails":{}}
paybutton.js:formatted:283 confirmed payment: {"orderId":21,"status":"submitting","customerId":5012,"accountAddItems":[],"serviceAddItems":[],"accountDelItems":[],"serviceDelItems":[],"_links":[{"rel":"self","method":"GET","name":"full data","href":"http://prod.selfcareapp.progresif.com:8080/ssb-jaxrs-server/progresif/ssb/v2.0/customers/5012/orders/21"}]}
paybutton.js:formatted:44 [{"orderId":21,"orderRefId":"1f.16a03cb40e4","basketRefId":"CB.1e.16a03ca0c96","status":"successful","creationDate":null,"userId":82,"customerId":5012,"category":"Parent","subTotal":0,"total":0,"currency":"BND","channel":"PROG-ETICKET","paymentAuthorization":{"authorizationId":9,"approved":true,"customerId":5012,"orderId":21,"orderRefId":"1f.16a03cb40e4","transactionNo":"1f.16a03cb40e4-1554841813331","authorizationCode":"1f.16a03cb40e4-1554841813331","card":false,"amountApproved":0,"amountUnits":"cents","amountCurrency":"BND","date":null},"accountAddItems":[],"serviceAddItems":[{"orderId":22,"status":"successful","creationDate":null,"userId":82,"customerId":5012,"category":"AddToService","extendedData":"{\"price\":1000,\"currency\":\"BND\"}","subTotal":0,"total":0,"currency":"BND","account":{"accountId":10006,"customerId":5012,"accountLegacyId":"101000009020645","billCycleDay":1,"billingMode":"PREPAID"},"service":{"serviceLegacyId":"104000009020647","accountId":10006,"status":"ACTIVE","startDate":null,"lineIdentifier":"8310003","serviceType":"Mobile","billingMode":"PREPAID","serviceId":35,"billCycleDay":1}}],"accountDelItems":[],"serviceDelItems":[],"_links":[]}]
payButton.html:73 SUCCESS!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment