Skip to content

Commit 1e691ba

Browse files
committed
AC-2901:AC-2901:Vault/Stored Payment Methods are not saved per store
1 parent be99728 commit 1e691ba

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

app/code/Magento/Vault/Api/Data/PaymentTokenInterface.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,43 +19,43 @@ interface PaymentTokenInterface
1919
/*
2020
* Entity ID.
2121
*/
22-
const ENTITY_ID = 'entity_id';
22+
public const ENTITY_ID = 'entity_id';
2323
/*
2424
* Customer ID.
2525
*/
26-
const CUSTOMER_ID = 'customer_id';
26+
public const CUSTOMER_ID = 'customer_id';
2727
/*
2828
* Unique hash for frontend.
2929
*/
30-
const PUBLIC_HASH = 'public_hash';
30+
public const PUBLIC_HASH = 'public_hash';
3131
/*
3232
* Payment method code.
3333
*/
34-
const PAYMENT_METHOD_CODE = 'payment_method_code';
34+
public const PAYMENT_METHOD_CODE = 'payment_method_code';
3535
/*
3636
* Token type.
3737
*/
38-
const TYPE = 'type';
38+
public const TYPE = 'type';
3939
/*
4040
* Token creation timestamp.
4141
*/
42-
const CREATED_AT = 'created_at';
42+
public const CREATED_AT = 'created_at';
4343
/*
4444
* Token expiration timestamp.
4545
*/
46-
const EXPIRES_AT = 'expires_at';
46+
public const EXPIRES_AT = 'expires_at';
4747
/*
4848
* Gateway token ID.
4949
*/
50-
const GATEWAY_TOKEN = 'gateway_token';
50+
public const GATEWAY_TOKEN = 'gateway_token';
5151
/*
5252
* Additional details.
5353
*/
54-
const DETAILS = 'details';
54+
public const DETAILS = 'details';
5555
/*
5656
* Is vault payment record active.
5757
*/
58-
const IS_ACTIVE = 'is_active';
58+
public const IS_ACTIVE = 'is_active';
5959
/*
6060
* Is vault payment token visible.
6161
*/
@@ -64,7 +64,7 @@ interface PaymentTokenInterface
6464
/*
6565
* Vault website id
6666
*/
67-
const WEBSITE_ID = 'website_id';
67+
public const WEBSITE_ID = 'website_id';
6868

6969
/**
7070
* Gets the entity ID.

app/code/Magento/Vault/Model/Ui/Adminhtml/TokensConfigProvider.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ private function getOrderPaymentEntityId()
282282
*
283283
* @return Data
284284
* @deprecated 100.1.0
285+
* @see MAGETWO-71174
285286
*/
286287
private function getPaymentDataHelper()
287288
{
@@ -296,6 +297,7 @@ private function getPaymentDataHelper()
296297
*
297298
* @return OrderRepositoryInterface
298299
* @deprecated 100.2.0
300+
* @see MAGETWO-71174
299301
*/
300302
private function getOrderRepository()
301303
{
@@ -312,6 +314,7 @@ private function getOrderRepository()
312314
*
313315
* @return PaymentTokenManagementInterface
314316
* @deprecated 100.2.0
317+
* @see MAGETWO-71174
315318
*/
316319
private function getPaymentTokenManagement()
317320
{

app/code/Magento/Vault/Observer/AfterPaymentSaveObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
class AfterPaymentSaveObserver implements ObserverInterface
2222
{
23-
const PAYMENT_OBJECT_DATA_KEY = 'payment';
23+
public const PAYMENT_OBJECT_DATA_KEY = 'payment';
2424

2525
/**
2626
* @var PaymentTokenManagementInterface

0 commit comments

Comments
 (0)