BlinkReceipt / blinkreceipt-android

MIT License
49 stars 16 forks source link

Blink receipt SDK fails to collect information from pdf receipts #79

Open vtn-dev-manish opened 7 months ago

vtn-dev-manish commented 7 months ago

We are using the demo app to scan a pdf and getting same results for different pdfs with just new blinkReceiptId. We have just added the LicenseKey and ProductIntelligence Key and rest of the implementation is exactly the same. Please let me know if we are missing anything

ScanResults{receiptDate=null, receiptTime=null, retailerId=UNKNOWN, products=[], coupons=null, total=null, tip=null, subtotal=null, taxes=null, storeNumber=null, merchantName=null, storeAddress=null, storeCity=null, blinkReceiptId='b0dc7068-c779-4e40-9116-4e8747178386', storeState=null, storeZip=null, storeCountry=null, storePhone=null, cashierId=null, transactionId=null, registerId=null, paymentMethods=null, taxId=null, mallName=null, last4Digits=null, ocrConfidence=-1.0, merchantSource='null', foundTopEdge=false, foundBottomEdge=false, eReceiptOrderNumber='null', eReceiptOrderStatus='null', eReceiptRawHtml='null', eReceiptShippingAddress='null', shipments=null, longTransactionId=null, subtotalMatches=false, eReceiptEmailProvider='null', eReceiptEmailId='null', eReceiptAuthenticated=false, instacartShopper=false, eReceipt=false, eReceiptComponentEmails=null, duplicate=false, fraudulent=false, receiptDateTime=null, duplicateBlinkReceiptIds=null, merchantMatchGuess=null, productsPendingLookup=0, qualifiedPromotions=null, unqualifiedPromotions=null, extendedFields=null, eReceiptAdditionalFees=null, purchaseType=null, loyaltyForBanner=false, channel=null, submissionDate=null, eReceiptFulfilledBy='null', eReceiptShippingStatus='null', eReceiptPOSSystem='null', eReceiptSubMerchant='null', _receiptDate=null, qualifiedSurveys=null, barcode='null', eReceiptMerchantEmail='null', eReceiptEmailSubject='null', eReceiptShippingCosts=0.0, currencyCode='null', clientMerchantName='null', loyaltyProgram=false, merchantSources=null, paymentTerminalId=null, paymentTransactionId=null, combinedRawText=null, rawBasket='null', rawTripHeader='null', rawTripFooter='null', cashback='-1.0', memberNumber='null'}

Also suggest how to get receipt raw json from the same.

acparisi commented 3 months ago

@vtn-dev-manish are you able to share sample of PDFs that are failing? and impacted blinkReceiptId?

vtn-dev-manish commented 3 months ago

lidl lidl.pdf

Hi @acparisi Sharing the receipt pdf that we have used

acparisi commented 3 months ago

hi @vtn-dev-manish can you try to reproduce the issue with this PDF? I believe the issue is current support only applies for text-based PDFs vs image-based PDFS (images converted to PDF format). Do we expect users to upload images converted to PDFs as well? REWE-eBon.pdf

vtn-dev-manish commented 3 months ago

Hi @acparisi, I am still getting similar response when scanning pdf shared by You

ScanResults{receiptDate=null, receiptTime=null, retailerId=UNKNOWN, products=[], coupons=null, total=FloatType{confidence=-1.0, value=0.0}, tip=null, subtotal=FloatType{confidence=-1.0, value=0.0}, taxes=FloatType{confidence=-1.0, value=0.0}, storeNumber=null, merchantName=null, storeAddress=null, storeCity=null, blinkReceiptId='343f01a0-17ad-44b5-9434-fb9e95f54325', storeState=null, storeZip=null, storeCountry=null, storePhone=null, cashierId=null, transactionId=null, registerId=null, paymentMethods=null, taxId=null, mallName=null, last4Digits=null, ocrConfidence=0.0, merchantSource='null', foundTopEdge=false, foundBottomEdge=false, eReceiptOrderNumber='null', eReceiptOrderStatus='null', eReceiptRawHtml='null', eReceiptShippingAddress='null', shipments=null, longTransactionId=null, subtotalMatches=false, eReceiptEmailProvider='null', eReceiptEmailId='null', eReceiptAuthenticated=false, instacartShopper=false, eReceipt=false, eReceiptComponentEmails=null, duplicate=false, fraudulent=false, receiptDateTime=null, duplicateBlinkReceiptIds=null, merchantMatchGuess=null, productsPendingLookup=0, qualifiedPromotions=null, unqualifiedPromotions=null, extendedFields=null, eReceiptAdditionalFees=null, purchaseType=null, loyaltyForBanner=false, channel=null, submissionDate=null, eReceiptFulfilledBy='null', eReceiptShippingStatus='null', eReceiptPOSSystem='null', eReceiptSubMerchant='null', _receiptDate=null, qualifiedSurveys=null, barcode='null', eReceiptMerchantEmail='null', eReceiptEmailSubject='null', eReceiptShippingCosts=0.0, currencyCode='null', clientMerchantName='null', loyaltyProgram=false, merchantSources=null, paymentTerminalId=null, paymentTransactionId=null, combinedRawText=null, rawBasket='null', rawTripHeader='null', rawTripFooter='null', cashback='-1.0', memberNumber='null'}

acparisi commented 3 months ago

@vtn-dev-manish since we are unable to reproduce it in our internal dev app, we’d like to request a sample project with the same exact SDK implementation which we can reproduce the issue. are you able to provide this?

vtn-dev-manish commented 3 months ago

Hi @acparisi we have used the exact same code that you have published here, just replaced the keys and package name. https://github.com/BlinkReceipt/blinkreceipt-android/tree/master/blinkreceipt-demo/BlinkReceiptScanPdf

vtn-dev-manish commented 1 month ago

Hi @acparisi @pequots34 any update on this?