Jump to content

ldavies283

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by ldavies283

  1. Update for this thread - in Version 4.0.1 the line has moved to the function getPackagePricing and constructed in a slightly different way:

    Before: 

        private function getPackagePricing($package_id)
        {
            $fields = ['package_pricing.id', 'package_pricing.pricing_id', 'package_pricing.package_id', 'pricings.term',
                'pricings.period', 'pricings.price', 'pricings.setup_fee',
                'pricings.cancel_fee', 'pricings.currency'];
            return $this->Record->select($fields)->from('package_pricing')->
                innerJoin('pricings', 'pricings.id', '=', 'package_pricing.pricing_id', false)->
                where('package_pricing.package_id', '=', $package_id)->
                order(['period' => 'ASC', 'term' => 'ASC'])->fetchAll();
        }

    After:

        private function getPackagePricing($package_id)
        {
            $fields = ['package_pricing.id', 'package_pricing.pricing_id', 'package_pricing.package_id', 'pricings.term',
                'pricings.period', 'pricings.price', 'pricings.setup_fee',
                'pricings.cancel_fee', 'pricings.currency'];
            return $this->Record->select($fields)->from('package_pricing')->
                innerJoin('pricings', 'pricings.id', '=', 'package_pricing.pricing_id', false)->
                where('package_pricing.package_id', '=', $package_id)->
                order(['period' => 'DESC', 'term' => 'DESC'])->fetchAll();
        }

    So change the Order clause to DESC instead of ASC (y)

  2. Hi there - 

     

    I've recently had a problem with the Stripe module (running v1.3.1) on 3.6.1 patched and a client has attempted to pay by credit card and I'm receiving  this error from stripe: 

     

    •  
    • error type: "invalid_request_error"
    • message: "The provided key 'pk_live_********************2nh5' does not have the required permissions for this endpoint on account 'acct_*******************'. Having more permission would allow this request to continue."

     

     

     

    The key is correct, there is only one user on the account (the administrator) but I cant see a means to be able to specify a user on the payment module in any case. I'm confused! 

     

    Has there been an API change? or is my account incorrectly configured?

     

    Thanks,

     

  3. (Wales)

     

    Clwyd

    Dyfed

    Gwent

    Gwynedd

    Mid Glamorgan

    South Glamorgan

    Powys

    West Glamorgan

     

    For the record - even this is not correct - the ISO standard is: IE: 

     

    Blaenau Gwent
    Bridgend
    Caerphilly
    Cardiff
    Carmarthenshire
    Ceredigion
    Conwy
    Denbighshire
    Flintshire
    Gwynedd
    Isle of Anglesey
    Merthyr Tydfil
    Monmouthshire
    Neath Port Talbot
    Newport
    Pembrokeshire
    Powys
    Rhondda Cynon Taf 
    Swansea
    Torfaen
    Vale of Glamorgan
    Wrexham
     
    If you mentioned I lived in Dyfed - that would have been 23 Years ago! Hurrah for standards :D
     
    The only certainty is nothing is perfect so the ability to edit the Counties/States would be ideal and the ability to have a >3 char limit for the state is a bit odd 
×
×
  • Create New...