There are multiple "pain clearing" techniques, that have a meditative and Buddhist foundation.
First, I'll summarize a few high points (see (1) thru (3) below), then I'll give abbreviated steps for the technique I most often use (see (a) thru (i) below). For whatever understanding is worth (sometimes understanding is the booby prize ;) here's the few high points:
Play with the point of view, that pain and suffering are distinct, and that suffering is all about resistance. (You can see the Buddhist roots of this.) So... for this: EMBRACE your right-now experience (if you have resistance, embrace that too), the "suffering" aspect decreases... and as you continue to embrace, not only can the suffering decrease... you can even see the pain disappear.
Pain may initially be a natural response, but very quickly (seconds), you can end up experiencing the memory of a pain, as much or more than the actual right-now sensations. So, for this: BE PRESENT. For example be aware, and then notice who is the one being aware.
(Afternote: also, suffering can be our emotional recoil from the pain... which the "welcoming" steps below will help with.)
Also helpful: bring something that is "present energy" for you, to the pain. Examples: spaciousness, love, presence, relatedness.
Ok, an example of using the technique below: the day after I learned the below Sedona Method's pain-clearing technique (from a group phone conference, facilitated by Hale Dwoskin)... I slammed my fingers, while closing a window using one hand... so hard, that I had to drop what I had in my free hand, so I could pound the window, to get it open. Long story short: about 5-10 minutes later, I still had bloody fingers, but no pain... using that technique.
The technique: (a) experience the right-now sensations (not just the pain -- ALL sensations); (b) experience the spaciousness, that surrounds and inter-penetrates that; (c) go back to the right-now sensations; (d) spaciousness again; (e) back and forth -- sensations, spaciousness... maybe 10 times... (f) ask yourself: would I be open to seeing this experience as a memory?; (g) COULD I let that memory go?; (h) WOULD i let that memory go?; (i) and When?
Repeat (a) - (i) above if helpful.
Note the Buddhist elements: the now, the non-resistance, and the spaciousness.
I've taken probably 10 people thru that technique, and consistently had them report pain decrease... sometimes complete disappearance.
Another modality with a good pain-clearing meditation is Brandon Bays' modality "The Journey"... but while a lot she does includes a Buddhist flavor, her pain-clearing technique is more NLP / visualization.
Another example that is very Buddhist is from a tape (I think it was "The Art of Happiness") that I heard, by Ken Keyes Jr., who wrote "The Handbook to Higher Consciousness" (again, some very Buddhist roots), and who himself was a Polio victim confined to a wheelchair. He had an entire group raise their hands if they had chronic pain (it sounded like some did), then TRACE IN THE AIR an outline of their pain, going around and around the outline, constantly updating it as he continued to lecture... then at his next break in his train of thought, he asked them to share if their pain had decreased... and for some, their chronic pain had actually disappeared. Again, notice the Buddhist elements: being present, staying where we are, welcoming what's here... or simply "being with" it in a way that has us get related to how it really is, right now.
Of course, it also helps to have someone else take us thru steps like this, especially the first time we're doing it... but I disappeared that window-slam pain facilitating myself.
Hope that helps.