wmk

Yes, payments worked in test env, but the user puts in his CC details on the shop and not offsite like with PayPal

wmk

Do I have to check "Process payments unsafely" in my stripe config with omipay/stripe?

wmk

Anyone added stripe to silvershop/omnipay? I'm a bit stuck with configuring it correctly.

wmk

ah, ElementalArea, not WidgetArea

wmk

well, it also needs to be published. If you visit the page in "Stage/preview" mode, you will see your blocks...

wmk

BaseElement is, yes. Do you have a direct relation or do you use a WidgetArea for that?

wmk

Blocks as Elemental or what kind of Blocks? Are the blocks versioned? Then you need to "own" them, which will publish the blocks

wmk

As you already have an ArrayList, why not search the ArrayList by callback?

Philipp

So you mean i should use the filterByCallback Method?

wmk

yes. I dunno if search filters work with ArrayLists.

wmk

ArrayListTest doesn't use search filter modifiers.. https://github.com/silverstripe/silverstripe-framework/blob/4/tests/php/ORM/ArrayListTest.php

Show 1 attachment(s)
GitHub  
silverstripe/silverstripe-framework

SilverStripe Framework, the MVC framework that powers SilverStripe CMS - silverstripe/silverstripe-framework

Hide attachment content
wmk

DataListTest does, so it doesn't seem to be supported

wmk

Good catch, I thought it should work

wmk

And the related issue: https://github.com/silverstripe/silverstripe-framework/issues/5911

Show 1 attachment(s)
GitHub  
ArrayList's and comparison filters · Issue #5911 · silverstripe/silverstripe-framework

Request for enhancement to ArrayList originally discussed in (and subsequently taken from) core dev DL and setup as an issue here for tracking. It appears that array lists do not actually utilize f...

Hide attachment content
Philipp

Hmm okay, it seems that this solution have a lower performance. I’m doing some code optimizations, so i will try to filter the companies in my API call first.

Thanks for help 🙂


Show less replies
wmk

It seems, that PartialMatch is for Like '%Foo' DB queries, so it won't work on ArrayLists?