canadasatellite-ca / bambora

The Bambora North America (Beamstream) payment module for canadasatellite.ca (Magento 2)
https://upwork.com/fl/mage2pro
0 stars 0 forks source link

Prevent fraud payments #6

Open dmitrii-fediuk opened 3 years ago

dmitrii-fediuk commented 3 years ago

upwork.com/messages/rooms/room_7725f00c5ed18ba32b7c46f038311707/story_d9f9347a384dabbfafcde5c51c82cfd4

dmitrii-fediuk commented 3 years ago

An example of a spam order is 169709: scam2

Payment attempt 1:

{
    "Mage2.PRO": [
        {
            "mage2pro/core": "7.2.2",
            "Magento": "2.3.5-p2",
            "PHP": "7.2.34-8+ubuntu16.04.1+deb.sury.org+1",
            "Post": [],
            "Referer": "https://www.canadasatellite.ca/checkout/",
            "URL": "https://www.canadasatellite.ca/rest/en/V1/guest-carts/8UYJKrD0ZXoICjaDAJDdi3LXEyzFIMQI/payment-information"
        }
    ],
    "request": "requestType=BACKEND&merchant_id=181670138&
        username=CanadaSatellite&
        password=TRIDENT10&
        trnType=P&
        trnAmount=51.61&
        trnOrderNumber=169709&
        trnCardOwner=Wally+Bayola&
        trnCardNumber=4594130042056480&
        trnExpMonth=05&
        trnExpYear=26&
        trnCardCvd=285&
        customerIp=216.151.184.152&
        ordEmailAddress=wallybayola2612@gmail.com&
        ordName=Wally+Bayola&
        ordPhoneNumber=7789491622&
        ordAddress1=1523++Nelson+Street&
        ordAddress2=&ordCity=Nestor+Falls&
        ordProvince=ON&
        ordPostalCode=P0X+1K0&
        ordCountry=CA",
    "response parsed": {
        " <font face": "\"Arial\" size"
    },
    "response raw": " <font face=\"Arial\" size=2>error '80070008'</font>
<p>
<font face=\"Arial\" size=2>/errorpages/500.asp</font><font face=\"Arial\" size=2>, line 555</font> "
}
Location:    app/code/Schogini/Beanstream/Model/Beanstream.php:670
Callee:      df_log_l
*****************1******************
Location:    app/code/Schogini/Beanstream/Model/Beanstream.php:445
Callee:      Schogini\Beanstream\Model\Beanstream::_beanstreamapi
*****************2******************
Location:    app/code/Schogini/Beanstream/Model/Beanstream.php:135
Callee:      Schogini\Beanstream\Model\Beanstream::_postRequest
*****************3******************
Location:    vendor/magento/module-sales/Model/Order/Payment/Operations/CaptureOperation.php:82
Callee:      Schogini\Beanstream\Model\Beanstream::capture
*****************4******************
Location:    vendor/magento/module-sales/Model/Order/Payment/Processor.php:85
Callee:      Magento\Sales\Model\Order\Payment\Operations\CaptureOperation::capture
*****************5******************
Location:    vendor/magento/module-sales/Model/Order/Payment.php:473
Callee:      Magento\Sales\Model\Order\Payment\Processor::capture

Payment attempt 2:

{
    "Mage2.PRO": [
        {
            "mage2pro/core": "7.2.2",
            "Magento": "2.3.5-p2",
            "PHP": "7.2.34-8+ubuntu16.04.1+deb.sury.org+1",
            "Post": [],
            "Referer": "https://www.canadasatellite.ca/checkout/",
            "URL": "https://www.canadasatellite.ca/rest/en/V1/guest-carts/8UYJKrD0ZXoICjaDAJDdi3LXEyzFIMQI/payment-information"
        }
    ],
    "request": "requestType=BACKEND&merchant_id=181670138&
        username=CanadaSatellite&
        password=TRIDENT10&
        trnType=P&
        trnAmount=51.61&
        trnOrderNumber=169709&
        trnCardOwner=Wally+Bayola&
        trnCardNumber=4594130042045327&
        trnExpMonth=05&
        trnExpYear=26&
        trnCardCvd=187&
        customerIp=178.171.47.179&
        ordEmailAddress=wallybayola2612@gmail.com&
        ordName=Wally+Bayola&
        ordPhoneNumber=7789491622&
        ordAddress1=1523++Nelson+Street&
        ordAddress2=&ordCity=Nestor+Falls&
        ordProvince=ON&
        ordPostalCode=P0X+1K0&
        ordCountry=CA",
    "response parsed": {
        " <font face": "\"Arial\" size"
    },
    "response raw": " <font face=\"Arial\" size=2>error '80070008'</font>
<p>
<font face=\"Arial\" size=2>/errorpages/500.asp</font><font face=\"Arial\" size=2>, line 555</font> "
}
Location:    app/code/Schogini/Beanstream/Model/Beanstream.php:670
Callee:      df_log_l
*****************1******************
Location:    app/code/Schogini/Beanstream/Model/Beanstream.php:445
Callee:      Schogini\Beanstream\Model\Beanstream::_beanstreamapi
*****************2******************
Location:    app/code/Schogini/Beanstream/Model/Beanstream.php:135
Callee:      Schogini\Beanstream\Model\Beanstream::_postRequest
*****************3******************
Location:    vendor/magento/module-sales/Model/Order/Payment/Operations/CaptureOperation.php:82
Callee:      Schogini\Beanstream\Model\Beanstream::capture
*****************4******************
Location:    vendor/magento/module-sales/Model/Order/Payment/Processor.php:85
Callee:      Magento\Sales\Model\Order\Payment\Operations\CaptureOperation::capture
*****************5******************
Location:    vendor/magento/module-sales/Model/Order/Payment.php:473
Callee:      Magento\Sales\Model\Order\Payment\Processor::capture
dmitrii-fediuk commented 3 years ago
{
    "Mage2.PRO": [
        {
            "IP Address": "45.131.212.69",
            "mage2pro/core": "7.6.1",
            "Magento": "2.3.5-p2",
            "PHP": "7.2.34-8+ubuntu16.04.1+deb.sury.org+1",
            "Post": [],
            "Referer": "https://www.canadasatellite.ca/checkout/",
            "Request Method": "POST",
            "URL": "https://www.canadasatellite.ca/rest/en/V1/guest-carts/Vy4hcQ4kP0I4uPNn8geZkaAKxQ183uRS/payment-information",
            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/187.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/557.36"
        }
    ],
    "request": {
        "x_address": "2807 W Magnolia Blvd",
        "x_amount": "19.47",
        "x_card_code": "021",
        "x_card_name": null,
        "x_card_num": "5307723303463414",
        "x_city": "BURBANK",
        "x_company": "adasd",
        "x_country": "CA",
        "x_currency_code": "CAD",
        "x_cust_id": null,
        "x_customer_ip": "45.131.212.69",
        "x_customer_tax_id": null,
        "x_email": "AnneEspinoza660834@hotmail.com",
        "x_email_customer": null,
        "x_exp_date": "12-2021",
        "x_fax": null,
        "x_first_name": "Anne",
        "x_freight": 17.79,
        "x_invoice_num": "190585",
        "x_last_name": "Espinoza",
        "x_login": null,
        "x_merchant_email": null,
        "x_method": null,
        "x_phone": "67256235648",
        "x_po_num": null,
        "x_ship_to_address": "2807 W Magnolia Blvd",
        "x_ship_to_city": "BURBANK",
        "x_ship_to_company": "adasd",
        "x_ship_to_country": null,
        "x_ship_to_first_name": "Alexa",
        "x_ship_to_last_name": "Finel",
        "x_ship_to_state": "Alberta",
        "x_ship_to_zip": "A1A 1A1",
        "x_state": "Alberta",
        "x_subtotal": 0.75,
        "x_tax": 0.93,
        "x_test_request": "FALSE",
        "x_tran_key": null,
        "x_type": "AUTH_CAPTURE",
        "x_zip": "A1A 1A1"
    },
    "response": {
        "amount": "19.47",
        "approval_code": "000000",
        "avs_result_code": "P",
        "card_code_response_code": "",
        "customer_id": null,
        "description": "",
        "invoice_number": "190585",
        "md_5_hash": "382065EC3B4C2F5CDC424A730393D2DF",
        "method": null,
        "response_code": 0,
        "response_reason_code": 0,
        "response_reason_text": "Decline-Transaction has been DECLINED.",
        "response_subcode": 0,
        "transaction_id": "0",
        "transaction_type": "AUTH_CAPTURE"
    }
}
Location:    vendor/mage2pro/core/Payment/lib/qa.php:47
Callee:      df_log_l
*****************1******************
Location:    app/code/Schogini/Beanstream/Model/Beanstream.php:154
Callee:      dfp_report
*****************2******************
Location:    vendor/magento/module-sales/Model/Order/Payment/Operations/CaptureOperation.php:82
Callee:      Schogini\Beanstream\Model\Beanstream::capture
*****************3******************
Location:    vendor/magento/module-sales/Model/Order/Payment/Processor.php:85
Callee:      Magento\Sales\Model\Order\Payment\Operations\CaptureOperation::capture
*****************4******************
Location:    vendor/magento/module-sales/Model/Order/Payment.php:473
Callee:      Magento\Sales\Model\Order\Payment\Processor::capture
*****************5******************
Location:    vendor/magento/module-sales/Model/Order/Invoice.php:346
Callee:      Magento\Sales\Model\Order\Payment::capture
*****************6******************
Location:    vendor/magento/module-sales/Model/Order/Payment/Operations/AbstractOperation.php:73
Callee:      Magento\Sales\Model\Order\Invoice::capture
*****************7******************
Location:    vendor/magento/module-sales/Model/Order/Payment/Operations/CaptureOperation.php:30
Callee:      Magento\Sales\Model\Order\Payment\Operations\AbstractOperation::invoice
*****************8******************
Location:    vendor/magento/module-sales/Model/Order/Payment/Processor.php:85
Callee:      Magento\Sales\Model\Order\Payment\Operations\CaptureOperation::capture
*****************9******************
Location:    vendor/magento/module-sales/Model/Order/Payment.php:473
Callee:      Magento\Sales\Model\Order\Payment\Processor::capture
*****************10*****************
Location:    vendor/magento/module-sales/Model/Order/Payment.php:454
Callee:      Magento\Sales\Model\Order\Payment::capture
*****************11*****************
Location:    vendor/magento/module-sales/Model/Order/Payment.php:374
Callee:      Magento\Sales\Model\Order\Payment::processAction
*****************12*****************
Location:    vendor/magento/module-sales/Model/Order.php:968
Callee:      Magento\Sales\Model\Order\Payment::place
*****************13*****************
Location:    vendor/magento/module-sales/Model/Order.php:1190
Callee:      Magento\Sales\Model\Order::_placePayment
*****************14*****************
Location:    vendor/magento/module-sales/Model/Service/OrderService.php:209
Callee:      Magento\Sales\Model\Order::place
*****************15*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:58
Callee:      Magento\Sales\Model\Service\OrderService::place
*****************16*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:138
Callee:      Magento\Sales\Model\Service\OrderService::___callParent
*****************17*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:153
Callee:      Magento\Sales\Model\Service\OrderService::Magento\Framework\Interception\{closure}
*****************18*****************
Location:    generated/code/Magento/Sales/Model/Service/OrderService/Interceptor.php:39
Callee:      Magento\Sales\Model\Service\OrderService::___callPlugins
*****************19*****************
Location:    vendor/magento/module-quote/Model/QuoteManagement.php:563
Callee:      Magento\Sales\Model\Service\OrderService::place
*****************20*****************
Location:    vendor/magento/module-quote/Model/QuoteManagement.php:453
Callee:      Magento\Quote\Model\QuoteManagement::submitQuote
*****************21*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:58
Callee:      Magento\Quote\Model\QuoteManagement::submit
*****************22*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:138
Callee:      Magento\Quote\Model\QuoteManagement::___callParent
*****************23*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:153
Callee:      Magento\Quote\Model\QuoteManagement::Magento\Framework\Interception\{closure}
*****************24*****************
Location:    generated/code/Magento/Quote/Model/QuoteManagement/Interceptor.php:26
Callee:      Magento\Quote\Model\QuoteManagement::___callPlugins
*****************25*****************
Location:    vendor/magento/module-quote/Model/QuoteManagement.php:411
Callee:      Magento\Quote\Model\QuoteManagement::submit
*****************26*****************
Location:    vendor/magento/module-quote/Model/GuestCart/GuestCartManagement.php:87
Callee:      Magento\Quote\Model\QuoteManagement::placeOrder
*****************27*****************
Location:    app/code/Schogini/Beanstream/Model/GuestPaymentManagement.php:2
Callee:      Magento\Quote\Model\GuestCart\GuestCartManagement::placeOrder
*****************28*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:58
Callee:      Schogini\Beanstream\Model\GuestPaymentManagement::savePaymentInformationAndPlaceOrder
*****************29*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:138
Callee:      Schogini\Beanstream\Model\GuestPaymentManagement::___callParent
*****************30*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:153
Callee:      Schogini\Beanstream\Model\GuestPaymentManagement::Magento\Framework\Interception\{closure}
*****************31*****************
Location:    generated/code/Schogini/Beanstream/Model/GuestPaymentManagement/Interceptor.php:26
Callee:      Schogini\Beanstream\Model\GuestPaymentManagement::___callPlugins
*****************32*****************
Location:    :
Callee:      Schogini\Beanstream\Model\GuestPaymentManagement::savePaymentInformationAndPlaceOrder
*****************33*****************
Location:    vendor/magento/module-webapi/Controller/Rest/SynchronousRequestProcessor.php:95
Callee:      call_user_func_array
*****************34*****************
Location:    vendor/magento/module-webapi/Controller/Rest.php:188
Callee:      Magento\Webapi\Controller\Rest\SynchronousRequestProcessor::process
*****************35*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:58
Callee:      Magento\Webapi\Controller\Rest::dispatch
*****************36*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:138
Callee:      Magento\Webapi\Controller\Rest::___callParent
*****************37*****************
Location:    app/code/Cart2Quote/Features/Feature/ApiAccess/Rest.php:2
Callee:      Magento\Webapi\Controller\Rest::Magento\Framework\Interception\{closure}
*****************38*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:135
Callee:      Cart2Quote\Features\Feature\ApiAccess\Rest::aroundDispatch
*****************39*****************
Location:    app/code/Cart2Quote/Features/Feature/ApiAccess/Rest.php:2
Callee:      Magento\Webapi\Controller\Rest::Magento\Framework\Interception\{closure}
*****************40*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:135
Callee:      Cart2Quote\Features\Feature\ApiAccess\Rest::aroundDispatch
*****************41*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:153
Callee:      Magento\Webapi\Controller\Rest::Magento\Framework\Interception\{closure}
*****************42*****************
Location:    generated/code/Magento/Webapi/Controller/Rest/Interceptor.php:26
Callee:      Magento\Webapi\Controller\Rest::___callPlugins
*****************43*****************
Location:    vendor/magento/framework/App/Http.php:124
Callee:      Magento\Webapi\Controller\Rest::dispatch
*****************44*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:58
Callee:      Magento\Framework\App\Http::launch
*****************45*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:138
Callee:      Magento\Framework\App\Http::___callParent
*****************46*****************
Location:    vendor/canadasatellite/core/Plugin/Magento/Framework/App/Http.php:18
Callee:      Magento\Framework\App\Http::Magento\Framework\Interception\{closure}
*****************47*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:135
Callee:      CanadaSatellite\Core\Plugin\Magento\Framework\App\Http::aroundLaunch
*****************48*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:153
Callee:      Magento\Framework\App\Http::Magento\Framework\Interception\{closure}
*****************49*****************
Location:    generated/code/Magento/Framework/App/Http/Interceptor.php:26
Callee:      Magento\Framework\App\Http::___callPlugins
*****************50*****************
Location:    vendor/magento/framework/App/Bootstrap.php:261
Callee:      Magento\Framework\App\Http::launch
*****************51*****************
Location:    pub/index.php:40
Callee:      Magento\Framework\App\Bootstrap::run