Skip to content

Can't render multiple PayButtons #26

@StarpTech

Description

@StarpTech

Hello
I can't create multiple payButtons via an Angular directive because all buttons will be append to the latest form and I can just buy the latest product. Do you know anything about it?

Directive template:

<form method="post" ng-submit="submit($event)">
    <script
        src="https://button.paymill.com/v1/"
        id="button-{{product.id}}"
        data-title="{{ product.title }}"
        data-description="{{ product.description }}"
        data-amount="{{ product.amount }}"

        data-elv="{{ config.elv }}"
        data-label="{{ config.label }}"
        data-submit-button="{{ config.submitBtnText }}"
        data-inline="{{ config.submitBtnInline }}"

        data-public-key="{{ paymill.publicKey }}"
        data-lang="{{ paymill.language }}"
        data-logo="{{ paymill.logoUrl }}"
        data-currency="{{ paymill.currency }}"
        >
    </script>
</form>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions