Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Square Payments can't translate Card details #33496

Closed
cse00241 opened this issue Jul 15, 2021 · 5 comments
Closed

Square Payments can't translate Card details #33496

cse00241 opened this issue Jul 15, 2021 · 5 comments
Assignees
Labels
Issue: needs update Additional information is require, waiting for response Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it

Comments

@cse00241
Copy link

Magneto 2.4.1 With Latest Version Of Square Payment, Credit card come from I-frame and Can't Translate the Card Number, CVV, and others info which come from the I-frame.

I want to translate Square Payment - Credit card data. But problem is latest magento 2.4.1 wit latest Square extension has create card with Iframe so It can't be translate with Jquery, JS, CSS anything can't work on Iframe on this Square Payment.
I also check the square payment module, connection module, square module. But changed follow there instruction which is not magento related its related to API. But nothing works.

Examples::
kfa7z
The Card number is in place holder, I want to translate it change it. Before old square it wasn't iframe so change easily by some how. But now its totally change so I can't translate it.

Solution may be::
Some where JS need to edit to create card with place holder request. Bellow method I tried.

I added latest 2021 square extension on Magneto 2. But problem is can't translate Card Number CVV etc. Also can't delete the ZIP here also. /vendor/square/module-squareup-omni/view/frontend/web/js/view/payment/method-renderer/square.js There was:

window.squareupCardOnFileUsed = false;
console.log('Initing payment');
await this.squareCard();
await this.squareApplePay();
await this.squareGooglePay();

But I added there follow there extension try to add css, try to add place holder but it not work. The card come from Iframe::
<iframe frameborder="0" height="50px" name="single-card-fdaa89d8-d4a9-f8a9-b53e-6d5931c1bed0" scrolling="no" src="https://web.squarecdn.com/0.0.25/single-card-element-iframe.html" width="100%" class="sq-card-component"></iframe>
I also use::

var tid2 = setInterval(function () {
if($('iframe.sq-card-component').length){
//console.log($('iframe.sq-card-component'));
//alert('test');
//$('input[placeholder="Card number"]').attr('placeholder','test');

var head = $("iframe.sq-card-component").contents().find("head");
var css = '<style>input{ visibility: hidden!important; }</style>';
$(head).append(css);

/*var tid3 = setInterval(function () {
//$('div#payment_form_squareup_payment form#nonce-form iframe').contents().find('input').hide();
}, 2000);*/

//alert('test');


clearInterval( tid2 );
}
}, 2000);
@cse00241 cse00241 added the Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it label Jul 15, 2021
@m2-community-project m2-community-project bot added this to Ready for Confirmation in Issue Confirmation and Triage Board Jul 15, 2021
@mrtuvn
Copy link
Contributor

mrtuvn commented Jul 16, 2021

Seem limited with external module or module not quite well support for magento. Is this open source module on github ?
Not sure but imho this is problem from module issue not from magento issue

@engcom-Lima engcom-Lima self-assigned this Aug 23, 2021
@m2-assistant
Copy link

m2-assistant bot commented Aug 23, 2021

Hi @engcom-Lima. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 4. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 5. Add label Issue: Confirmed once verification is complete.

  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@engcom-Lima
Copy link
Contributor

Hi @cse00241,

I think the issue is related to Square Payments since translation code is inside their module files. You can check its compatibility with Magento2.

If you find its Magento issue, please update on the below queries:

  1. If the issue is reproducible on 2.4-develop instance. If yes, please provide ‘Steps to reproduce’ this issue.
  2. If Square Payments module is Open Source ?

@engcom-Lima engcom-Lima added Issue: needs update Additional information is require, waiting for response and removed Issue: ready for confirmation labels Aug 24, 2021
@m2-community-project m2-community-project bot moved this from Ready for Confirmation to Needs Update in Issue Confirmation and Triage Board Aug 24, 2021
@engcom-Hotel
Copy link
Contributor

Dear @cse00241,

We have noticed that this issue has not been updated for a period of more than 14 Days. Hence we assume that this issue is fixed now, so we are closing it. Please raise a fresh ticket or reopen this ticket if you need more assistance on this.

Regards

@soundaregrove
Copy link

Hi @cse00241 Can you send ur composer.json file .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: needs update Additional information is require, waiting for response Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Projects
None yet
Development

No branches or pull requests

5 participants