Hello all.

I have a "Credit Card" entity that I reference on the Customer Profiles in Drupal Commerce. I'm using entity reference with the Views: filter by Entity Reference mode and a View Argument to filter the "Credit Card" displayed to be just that Customer's.

Now, I want to create a custom payment module where I can pick from that customer's "credit cards" on file. What I need help with is two steps: provide a list of "Credit Cards" for the the customer who the order is attached to, and allow me to select which "credit card" to use to pay for that order.

EDIT: I found this topic https://drupal.org/node/1678412 and using Entity Reference Autocomplete https://drupal.org/project/entityreference_autocomplete I was able to add the field to my payment module. The issue I have now is that I need to be able to filter it for just that customer. Right now it shows all credit cards.

Comments

ashzade’s picture

Issue summary: View changes