File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99namespace Bluem \BluemPHP \Requests ;
1010
1111use Bluem \BluemPHP \Contexts \PaymentsContext ;
12+ use Bluem \BluemPHP \Helpers \BluemConfiguration ;
1213
1314class PaymentStatusBluemRequest extends BluemRequest
1415{
@@ -25,12 +26,17 @@ public function __construct(
2526 ) {
2627 parent ::__construct ($ config , $ entranceCode , $ expected_return );
2728
28- if (isset ($ config ->paymentBrandID )
29- && $ config ->paymentBrandID !== ""
30- ) {
31- $ config ->setBrandID ($ config ->paymentBrandID );
32- } else {
33- $ config ->setBrandID ($ config ->brandID );
29+ if ($ config instanceof BluemConfiguration) {
30+ if (isset ($ config ->paymentBrandID )
31+ && $ config ->paymentBrandID !== ""
32+ ) {
33+ $ config ->setBrandID ($ config ->paymentBrandID );
34+ } else {
35+ $ config ->setBrandID ($ config ->brandID );
36+ }
37+ } elseif ($ config instanceof \stdClass && isset ($ config ->paymentBrandID )
38+ && $ config ->paymentBrandID !== "" ) {
39+ $ config ->brandID = $ config ->paymentBrandID ;
3440 }
3541
3642 $ this ->transactionID = $ transactionID ;
You can’t perform that action at this time.
0 commit comments