Skip to content

Is there any way to send payment messages using this library? #53

Closed Answered by filipporomani
terrarishabh asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! First of all, sorry for my late answer.
I looked this up on the Facebook docs.
I think that just to send the payment message you need to have the payment methods etc set up, however i'm not sure about it.
However this is an issue in the library, as i just found out.

As you can see in the whatsapp/ext/_buttons.py on line 49, the dictionary you are inserting is getting parsed by the create_button() internal function on line 15, which only takes the button components and removes all the other keys:

    data = {"type": "list", "action": button.get("action")}
    if button.get("header"):
        data["header"] = {"type": "text", "text": button.get("header")}
    if button.get("body"):
 …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by filipporomani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants